47
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?

Pardeep
  • 2,153
  • 1
  • 17
  • 37

5 Answers5

87

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-cli

If updating does not update the CLI, try uninstalling with the uninstall instructions below

Stefan Falk
  • 23,898
  • 50
  • 191
  • 378
Gabriel Mesquita
  • 2,271
  • 1
  • 20
  • 30
  • of note: as of this writing, heroku has a major version upgrade (8) available, but the version installed through apt is still on version 7. Don't worry about it--after wasting half an hour, I eventually concluded 7 was fine. – Kyle Baker Apr 21 '23 at 13:48
3
heroku update

did not work for me. I had to run:

sudo apt update && sudo apt install heroku

in order to get an update.

Stefan Falk
  • 23,898
  • 50
  • 191
  • 378
0

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
franiis
  • 1,378
  • 1
  • 18
  • 33
Hania
  • 17
  • 2
0

I am using Windows 11 and heroku update is working properly.

Remember to run this command in the terminal as an administrator.

-1

This is how I updated:

npm update -g heroku
blackgreen
  • 34,072
  • 23
  • 111
  • 129
Jeffrey Kozik
  • 201
  • 4
  • 8