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)

Most upvoted comments

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

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

I have the same or similar experience on my MacBook Pro:

 ›   Warning: heroku update available from 7.59.2 to 7.59.3.

with an attempt at updating, but the update command states I’m already on latest version

heroku update
heroku: Updating CLI... already on latest version: 7.59.2
Updating completions... done

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.

heroku --version
 ›   Warning: heroku update available from 7.59.2 to 7.59.3.
heroku/7.59.2 darwin-x64 node-v12.21.0

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 --classic the one on the official cli documentation (sudo snap install --classic heroku) has not been updated since April 7th The sudo snap install heroku --edge --classic however, was updated 3 days ago (June 2nd)

Update not working (Ubuntu 20.04 WSL)

image

@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 -v option raises the message.

$ heroku -v
 ›   Warning: heroku update available from 7.69.1 to 8.0.1.

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.

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.2

But i ran curl https://cli-assets.heroku.com/install.sh | sh and now i am on heroku/7.52.0 linux-x64 node-v12.21.0

We released a new version (8.0.2) yesterday, so if you run heroku update you 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 add HEROKU_FORCE_VERSION_CACHE_UPDATE=true to any heroku command (such as HEROKU_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:

$ heroku --version
 ›   Warning: heroku update available from 7.52.0 to 7.59.0.
heroku/7.52.0 linux-x64 node-v12.21.0
$ heroku  update
 ›   Warning: update with "sudo apt update && sudo apt install heroku"
heroku: Updating CLI... not updatable
Updating completions... done
$ sudo apt update && sudo apt install heroku
heroku is already the newest version (7.52.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ apt policy heroku
heroku:
  Installed: 7.52.0-1
  Candidate: 7.52.0-1
  Version table:
 *** 7.52.0-1 500
        500 https://cli-assets.heroku.com/apt ./ Packages
        100 /var/lib/dpkg/status
$ cat /etc/apt/sources.list.d/heroku.list
deb https://cli-assets.heroku.com/apt ./
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.04
Release:	21.04
Codename:	hirsute

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

Belated Happy New Year 2023! 🥳

$ heroku --version
 ›   Warning: heroku update available from 7.68.1 to 8.0.1.
heroku/7.68.1 darwin-x64 node-v14.19.0

$ heroku update
heroku: Updating CLI... already on latest version: 7.68.1
Updating completions... done

Same for the current Homebrew version.

$ heroku update
heroku: Updating CLI... already on latest version: 7.59.4
Updating completions... done

$ heroku
 ›   Warning: heroku update available from 7.59.4 to 7.60.0.
CLI to interact with Heroku

VERSION
  heroku/7.59.4 darwin-x64 node-v12.21.0

Is there a special update channel? I’ve tried stable or beta, but both don’t upgrade to 7.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 available

Also removed and reinstalled it, but no success.

It is solved by installing npm install -g heroku since 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.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 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

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