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
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
Most helpful comment
you are not using the homebrew version. Run
which herokuto see where the old version of the CLI is installed and remove it.