Cli: "Legacy Heroku CLI" warnings not fixed by following recommended solution

Created on 13 Jun 2017  ·  18Comments  ·  Source: heroku/cli

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.10.9-b8f5c7d (darwin-x64) node-v7.10.0

brew install heroku
Warning: heroku 6.9.3 is already installed

Most helpful comment

On OS-X I followed the heroku uninstall instructions

rm -rf /usr/local/heroku
rm -rf ~/.local/share/heroku ~/.config/heroku ~/Library/Caches/heroku

Then installed the CLI from homebrew and the warnings are gone.

All 18 comments

You still have toolbelt installed somehow. Try running brew doctor or which heroku to figure out where it is

I'm getting this too, on Windows. I updated by downloading from the web, rebooted and still getting that warning when using heroku logs. The first time after reboot, it even updated from the console, but after running the command again, the warning keeps popping up.

heroku-cli/5.11.12-8ae9780 (windows-386) go1.7.5

Any idea of how to fix this?

You need to uninstall to fully uninstall the CLI, then reinstall
On Wed, Jun 21, 2017 at 7:34 AM Gonzalo González Mora <
[email protected]> wrote:

I'm getting this too, on Windows. I updated by downloading from the web,
rebooted and still getting that warning when using heroku logs. The first
time after reboot, it even updated from the console, but after running the
command again, the warning keeps popping up.

heroku-cli/5.11.12-8ae9780 (windows-386) go1.7.5

Any idea of how to fix this?


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
https://github.com/heroku/cli/issues/495#issuecomment-310097533, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AANMfEoEjNmx_cJIjx_3WLzlPInbQbDjks5sGSmQgaJpZM4N4eqA
.

@dickeyxxx Thank you! That fixed it :) I uninstalled and deleted .config/heroku from my user folder and it worked (just an uninstall didn't work, I had to delete that folder).

from your user folder? on windows? or LOCALAPPDATA?

@dickeyxxx from User folder like this guide said: https://devcenter.heroku.com/articles/heroku-cli#uninstalling-the-heroku-cli

It also said delete from %LOCALAPPDATA%\heroku but I didn't have anything there (perhaps because I also uninstalled Toolbelt? I don't know).

that's odd. You shouldn't have that folder on windows and the CLI shouldn't look for it. I think in your case the uninstall is actually what fixed it since it deleted %LOCALAPPDATA%\heroku

@dickeyxxx That's strange, because I think I uninstalled once but it didn't seem to work. Then I uninstalled, deleted that folder, and then it took. But perhaps I'm confused about the steps I made, I wouldn't bet money on it lol Anyway, thanks for your help! :)

that does make sense actually. You probably installed the CLI long ago and you had the same uninstaller that entire time. A while ago we updated the uninstaller to delete that directory, but the version of the uninstaller you originally had probably didn't have that.

That's why I asked you to uninstall and reinstall again even though you already did it so it would clean up everything the second time with the new uninstaller.

Unfortunately there is just no way for us to fix uninstallers already installed

@dickeyxxx Oh, yeah, that makes sense, I installed it a long time ago and it auto-updated frequently from the console, but I never did it by downloading from the site.

On OS-X I followed the heroku uninstall instructions

rm -rf /usr/local/heroku
rm -rf ~/.local/share/heroku ~/.config/heroku ~/Library/Caches/heroku

Then installed the CLI from homebrew and the warnings are gone.

I had to run:
rm -rf /usr/local/heroku
rm -rf ~/.local/share/heroku ~/.config/heroku ~/Library/Caches/heroku
brew update
brew install heroku/brew/heroku

I followed the removal commands posted above this comment but also had to do brew uninstall --force heroku which removes all versions of Heroku, because when I tried to install Heroku I was getting a warning that Heroku was already installed. I then used brew install heroku/brew/heroku and everything works.

Still no success for me unfortunately

➜  my_repo git:(master) brew uninstall --force heroku
Uninstalling heroku... (7,018 files, 40.6MB)
➜  my_repo git:(master) brew install heroku/brew/heroku
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
pdnsrec

==> Installing heroku from heroku/brew
==> Downloading https://cli-assets.heroku.com/homebrew/heroku-6.14.38.tar.xz
Already downloaded: /Users/martinbraun/Library/Caches/Homebrew/heroku-6.14.38.tar.xz
🍺  /usr/local/Cellar/heroku/6.14.38: 7,018 files, 40.6MB, built in 5 seconds
➜  my_repo git:(master) heroku restart 

This is the legacy Heroku CLI. Please install the new CLI from https://cli.heroku.com

run which heroku to see where it is currently installed and remove it from that location

running which heroku helped me to see that I had two CLI instances - one was legacy Heroku Toolbelt and second was Heroku CLI. Just go through Your program files folder on main disc and uninstall the former.

Was having the same issue and got it working. I followed the instructions above but also needed to run sudo nano /etc/paths and modify my PATH to include /usr/local/bin/heroku as is suggested here

Was this page helpful?
0 / 5 - 0 ratings

Related issues

noenthu picture noenthu  ·  7Comments

pushcx picture pushcx  ·  7Comments

mame picture mame  ·  5Comments

sferik picture sferik  ·  5Comments

saintthor picture saintthor  ·  4Comments