Cli: update warning not working

Created on 15 Aug 2017  路  2Comments  路  Source: heroku/cli

I ran heroku update and brew upgrade heroku and have latest version but am still getting a warning every time I use the CLI to upgrade my heroku version.

$ heroku update
WARNING: This is the legacy Heroku CLI with limited functionality. Please install the latest CLI.
WARNING: On MacOS this can be done with 'brew install heroku' or with the MacOS package from https://cli.heroku.com
You must reinstall the CLI to get the latest version.
heroku-cli: Updating CLI... already on latest version: 6.13.14-b187c1d
heroku-cli: Updating plugins... done
$ heroku --version     
WARNING: This is the legacy Heroku CLI with limited functionality. Please install the latest CLI.
WARNING: On MacOS this can be done with 'brew install heroku' or with the MacOS package from https://cli.heroku.com
heroku-cli/6.13.14-b187c1d (darwin-x64) node-v8.3.0

Is there anything I can do to get rid of these warnings? Thank you

Most helpful comment

you are not using the homebrew version. Run which heroku to see where the old version of the CLI is installed and remove it.

All 2 comments

you are not using the homebrew version. Run which heroku to see where the old version of the CLI is installed and remove it.

Okay got it. No more warnings!

$ which heroku
/usr/local/heroku/bin/heroku
$ sudo rm -rf /usr/local/heroku

Then it fell back to the installed homebrew version:

$ which heroku
/usr/local/bin/heroku

Thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

imujjwal96 picture imujjwal96  路  6Comments

fishcharlie picture fishcharlie  路  8Comments

rpsadarangani picture rpsadarangani  路  5Comments

sdalezman picture sdalezman  路  4Comments

dking74 picture dking74  路  7Comments