How to Update Heroku Command (heroku-cli) to the Latest Version

Tadashi Shigeoka ·  Sat, August 26, 2017

I’ll introduce how to update the Heroku command (heroku-cli) to the latest version.

Heroku

Every time you run a Heroku command, a message like heroku-cli: update available from CurrentVersion to LatestVersion appears.

heroku version
 ▸    heroku-cli: update available from 6.12.6 to 6.14.13-6ab5022
heroku-cli/6.12.6 (darwin-x64) node-v8.1.3

It’s annoying, so let’s update it immediately.

Updating Heroku Command - MacOS Edition

If you installed the Heroku command with Homebrew on MacOS, use the following:

brew update
brew upgrade heroku

Confirming Heroku Command is Updated to Latest Version

If the heroku-cli: update available message no longer appears, the Heroku command update is complete.

heroku version
heroku-cli/6.14.13 (darwin-x64) node-v8.4.0

That’s all from the Gemba.