Why am I seeing "heroku-cli: This CLI is deprecated. Please reinstall" after installing the Heroku CLI?


After installing the latest Heroku CLI I am still receiving warnings about it being deprecated. The error message may also be "Install the Heroku CLI from https://cli.heroku.com"


Seeing deprecation warnings means you probably have an older install of the heroku program in your $PATH. You can check the current heroku binary from the output of the following command, when run on your (Linux or Mac) machine:

which heroku

Two possibilities are an older install via homebrew (OSX users only) or an older version of the heroku Ruby gem. You should be able to remove those with either:

brew uninstall heroku


gem uninstall heroku --all

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support