cli: `heroku update` doesn't update to the latest version
What is the current behavior?
We get a warning that there is a newer version of heroku cli, but running heroku update does not update to the version it thinks is available:
~ $ heroku update
› Warning: heroku update available from 7.9.4 to 7.12.1
heroku: Updating CLI from 7.9.4 to 7.11.0... done
› Warning: heroku update available from 7.11.0 to 7.12.1
heroku: Updating CLI... done
Updating completions... done
~ $ heroku update
› Warning: heroku update available from 7.11.0 to 7.12.1
heroku: Updating CLI... already on latest version: 7.11.0
Updating completions... done
~ $ heroku update
› Warning: heroku update available from 7.11.0 to 7.12.1
heroku: Updating CLI... already on latest version: 7.11.0
Updating completions... done
~ $ heroku ps
› Warning: heroku update available from 7.11.0 to 7.12.1
› Error: Missing required flag:
› -a, --app APP app to run command against
› See more help with --help
What is the expected behavior?
Running heroku update should pick up version 7.12.1 and get rid of the warnings.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 59 (6 by maintainers)
I am trying to update Heroku CLI but it’s not working.
I have the same issue with 7.12.3
I also tried the recommended npm update -g heroku, but had the same issue
I have the same or similar experience on my MacBook Pro:
with an attempt at updating, but the update command states I’m already on latest version
Slightly annoying, not something to really worry about, but I do like to rid my console of warnings when I can. Even opening a new terminal states I’m on an older heroku and not the bleeding edge.
Sorry to chime in on an old post, but for anyone who’s using v7.52.0 and wants to update to v7.54.0 via snap: use
sudo snap install heroku --edge --classicthe one on the official cli documentation (sudo snap install --classic heroku) has not been updated since April 7th Thesudo snap install heroku --edge --classichowever, was updated 3 days ago (June 2nd)Update not working (Ubuntu 20.04 WSL)
@k80bowman this has been happening for almost a month now, is there any way to force clear this caching on the notification tool or a way to circumvent this locally? It’s actually maddening, all my automations regarding heroku are quite unreadable atm. Even running the
-voption raises the message.Two weeks later it’s still printing
Warning: heroku update available from 7.69.0 to 8.0.1.on every attempt to tab complete an application name, which is driving me mad…I also couldn’t update with all the command above. I am n Ubuntu 20.04, heroku version:
heroku/7.47.0 linux-x64 node-v12.16.2But i ran
curl https://cli-assets.heroku.com/install.sh | shand now i am onheroku/7.52.0 linux-x64 node-v12.21.0We released a new version (8.0.2) yesterday, so if you run
heroku updateyou should get that newest version. We apologize for the confusion. I forgot to provide an update in this thread (we had several issues filed about this problem), but in the future if this happens again you can addHEROKU_FORCE_VERSION_CACHE_UPDATE=trueto any heroku command (such asHEROKU_FORCE_VERSION_CACHE_UPDATE=true heroku apps) and it will force an update to the local cache that stores the latest available version.@dataplor-mike we apologize, there were some problems with the 8.0.1 release and we had to roll it back. There can be some caching issues with the tool we use to notify people of an updated release, which is why you’re seeing the update available message. That should go away eventually. Version 7.68.1 is the current latest release.
This is still happening with version 7.52.0. It cannot be upgraded to version 7.59.0:
@kerolloz I’m currently experiencing the same issue as you. Running the command
npm update -g herokudoesn’t seem to do anything. I keep receiving the same warning. Were you able to figure out how to get past the warning and update the Heroku CLI?Belated Happy New Year 2023! 🥳
Same for the current Homebrew version.
Is there a special update channel? I’ve tried
stableorbeta, but both don’t upgrade to7.60.0.Same here on ubuntu 20.04 on a fresh heroku install:
› Warning: heroku update available from 7.59.1 to 7.59.2.It’s installed with snap, but there is no update available:
$ sudo snap refresh heroku snap "heroku" has no updates availableAlso removed and reinstalled it, but no success.
It is solved by installing
npm install -g herokusince this command installs the latest version. The problem occurs when you install heroku without the npm command. (i.e. windows installer)where this msg come from Warning: heroku update available from 7.35.0 to 7.40.0. heroku/7.35.0 darwin-x64 node-v12.13.0 is there anyway to fix this , I spent the whole day to fix it but does’t work. thanks for anyhelp
I am currently having the exact same problem, @mredigonda I also installed Heroku with snap…
Same problem from version
7.39.0to7.39.2, runningheroku updatedoesn’t work:Initially installed heroku with snap, any ideas on what could be wrong?
I have the same issue on Windows. After installing the latest version I get:
Even though the installer clearly stated it was installing 7.19.3
There was some maintenance last night that prevented us from releasing the CLI which caused this to happen. It shouldn’t happen again.