Reputation: 2283
heroku run rails console
▸ heroku-cli: update available from 6.11.17 to 6.14.16-9ae58fc
▸ No app specified
How do I update my heroku-cli
version?
Upvotes: 50
Views: 32441
Reputation: 11799
If you're still failing, as I was, remove the Heroku CLI using whatever method you used to install it and then use the OS-specific installation described in the Heroku CLI article, e.g., for my Ubuntu laptop I used:
curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
which allowed me, finally, to upgrade to the Heroku CLI 8 version.
Upvotes: 0
Reputation: 19
I am using Windows 11 and heroku update
is working properly.
Remember to run this command in the terminal as an administrator.
Upvotes: 1
Reputation: 17
Uninstall Heroku by using command:
sudo apt-get remove Heroku
Then install Heroku by:
sudo apt-get install heroku
Now check Heroku version:
heroku -v
Upvotes: 0
Reputation: 2411
You are not obligated to update. I am using a previous version as well, and everything works fine.
But if you want to update check this link: https://devcenter.heroku.com/articles/heroku-cli
It says that to update your heroku cli you just have to do this:
heroku update
But there is this issue:
Not all methods of installation are updatable with heroku update. Apt users will have to use
sudo apt-get update && sudo apt-get upgrade heroku
. npm/yarn users will have to update with npm upgrade -g heroku-cli or yarn global upgrade heroku-cliIf updating does not update the CLI, try uninstalling with the uninstall instructions below
Upvotes: 95
Reputation: 25397
heroku update
did not work for me. I had to run:
sudo apt update && sudo apt install heroku
in order to get an update.
Upvotes: 3