Heroku

How It Works

Installing the Heroku CLI

Last Updated: 09 December 2011

cli heroku

The command-line tool is frequently updated; be sure to execute heroku update regularly, or watch the repository for important changes.

Set up your local workstation with the Heroku command-line client and the Git revision control system by installing the Heroku Toolbelt:

If you have... Install with...
Mac OS X Download OS X package
Windows Download Windows .exe installer
Ubuntu Linux apt-get repository
Other Tarball (add contents to your $PATH)

You will be asked to enter your Heroku credentials the first time you run a command; after the first time, your email address and an API token will be saved to ~/.heroku/credentials for future use.

It’s generally a good idea to add your public key immediately after installing the heroku gem so that you can use git to push or clone Heroku app repositories:

$ heroku keys:add
Enter your Heroku credentials.
Email: joe@example.com
Password: 
Uploading ssh public key /Users/joe/.ssh/id_rsa.pub