Heroku コマンドのバージョンアップ

cedar-14 stack に変更しようとしたら stack:set がないというエラーが出たので heroku コマンドをバージョンアップしました。

Heroku

エラーメッセージ

$ heroku stack:set cedar-14 -a your-app-name
 !    `stack:set` is not a heroku command.
 !    See `heroku help` for a list of available commands.

heroku コマンドのバージョン確認

$ heroku version
heroku-toolbelt/3.7.2 (x86_64-darwin10.8.0) ruby/1.9.3

heroku コマンドのバージョンアップ

$ heroku update
Installing Heroku Toolbelt v4... done.
For more information on Toolbelt v4: https://github.com/heroku/heroku-cli
Setting up node-v4.1.0...done
Installing core plugins heroku-apps, heroku-fork, heroku-git, heroku-local, heroku-run, heroku-status... done
Your version of git is 1.8.4.3. Which has serious security vulnerabilities.
More information here: https://blog.heroku.com/archives/2014/12/23/update_your_git_clients_on_windows_and_os_x
Setting up node-v4.1.0...done
Updating plugins... done

使えないコマンドでエラーが発生するというようなことが起こらないと heroku コマンドのバージョンアップなんて滅多にしない、現場からお送りしました。