Cli: `heroku update` doesn't update to the latest version

Created on 23 Aug 2018  Â·  17Comments  Â·  Source: heroku/cli

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.

Most helpful comment

I am trying to update Heroku CLI but it's not working.

$ heroku update 
 ›   Warning: update with: "npm update -g heroku"
heroku: Updating CLI... not updatable
Updating completions... done

All 17 comments

Seems to work fine on Mac but isn't the case on Ubuntu as can be seen by running:

docker run -it ubuntu sh -c "apt-get update && apt-get -y install curl && (curl https://cli-assets.heroku.com/install.sh | sh) && heroku --version

There was some maintenance last night that prevented us from releasing the CLI which caused this to happen. It shouldn't happen again.

I have the same issue with 7.12.3

$heroku update
› Warning: heroku update available from 7.12.3 to 7.15.1
heroku: Updating CLI... update with: "npm update -g heroku"
Updating completions... done

$ heroku --version
› Warning: heroku update available from 7.12.3 to 7.15.1
heroku/7.12.3 linux-x64 node-v10.9.0

I also tried the recommended npm update -g heroku, but had the same issue

Have the same issue with 7.12.3
Tried reinstalling to no avail

I have the same issue on Windows. After installing the latest version I get:

Warning: heroku update available from 7.18.9 to 7.19.3
heroku/7.18.9 win32-x64 node-v11.1.0

Even though the installer clearly stated it was installing 7.19.3

Samething happening here:

Moreno@MorenoPc MINGW64 /h/Documents/1CODE/ReactAM/r-17-02-async-actions (master)
$ heroku update
heroku-cli: Updating CLI from 6.15.39-44c1447 to 6.99.0-ec9edad... done
heroku-cli: Updating CLI from 6.99.0-ec9edad to 7.19.4... done
heroku: Updating CLI... already on latest version: 7.19.4
heroku: migrating plugins
heroku: done migrating plugins

Moreno@MorenoPc MINGW64 /h/Documents/1CODE/ReactAM/r-17-02-async-actions (master)
$ heroku -v
 !    heroku-cli: update available from 6.15.39-44c1447 to 6.99.0-ec9edad
heroku-cli/6.15.39-44c1447 (win32-x64) node-v9.3.0

I am trying to update Heroku CLI but it's not working.

$ heroku update 
 ›   Warning: update with: "npm update -g heroku"
heroku: Updating CLI... not updatable
Updating completions... done

@kerolloz I'm currently experiencing the same issue as you. Running the command npm update -g heroku doesn'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?

@rmushtaq21
I uninstalled Heroku CLI.
Reinstalled Heroku CLI using Snap, because I am using Ubuntu. (I think sudo apt-get install heroku will work as well). Take a look at downloading and installing for your OS.

Same problem from version 7.39.0 to 7.39.2, running heroku update doesn't work:

~$ heroku update
 ›   Warning: update with: snap refresh heroku
heroku: Updating CLI... not updatable
Updating completions... done

Initially installed heroku with snap, any ideas on what could be wrong?

I am currently having the exact same problem, @mredigonda
I also installed Heroku with snap...

https://snapcraft.io/heroku doesn't have 7.39.2. It's not an issue with your boxes.

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

Try ' npm update -g heroku'

Same issue here:

$ heroku login
 ›   Warning: heroku update available from 7.43.1 to 7.43.2.

```shell
$ heroku update
Updating completions... ⣟ [4/4] Building fresh packages...
Updating completions... done

However, **`heroku update` doesn't work**, the warning message shows again.

**I think the reason for this issue is that the update package file is not uploaded to the corresponding software repos**
**But the message reported is checking from another source(not the repo) which telling that heroku has new versions**

**So the solution for us users is to switch a way of installation or wait for the new release uploaded to the repo.**

For my case on Ubuntu:  heroku cli was installed via `snap install`, when I check the status of this package:

```shell
$ sudo snap list | grep heroku
heroku                           v7.43.1+git1.228d2d6            3987  latest/stable    heroku*       classic
$ sudo snap refresh --classic heroku
snap "heroku" has no updates available
$ sudo snap remove heroku
$ sudo snap install heroku --classic
heroku v7.43.1+git1.228d2d6 from Heroku✓ installed

A new reinstallation also installed v7.43.1.
And I checked https://snapcraft.io/heroku, there is no 7.43.2 available there.

Then, I switched to check npm install

$ sudo snap remove heroku
$ npm install -g heroku [email protected]     # I install an old version here
...
+ [email protected]
$ heroku
 ›   Warning: heroku update available from 7.43.1 to 7.43.2.
CLI to interact with Heroku
$ heroku update
Updating completions... ⣟ [4/4] Building fresh packages...
Updating completions... done
$ heroku
 ›   Warning: heroku update available from 7.43.1 to 7.43.2.

It still reported warning message when I type heroku.

This means that heroku update command has issues for heroku npm package as well.

$ npm install -g heroku@latest   # install the latest version 

And this will fix if you install it with npm(and node). or try npm update -g heroku mentiond by mpofukelvintafadzwa.

heroku update does not work. Neither does sudo apt update && sudo apt install heroku.

I am on 7.43.1 while the avialable update is 7.43.3.

Does the update really matter?

Having the warning go away would be nice, though.

It should work for you with the following command:
heroku config:set APP_KEY=the_key -a your_app_name

Was this page helpful?
0 / 5 - 0 ratings