Once installed, you'll have access to the heroku command from your command shell. Log in using the email address and password you used when creating your Heroku account:
$ heroku login Enter your Heroku credentials. Email: email@example.com Password: Could not find an existing public key. Would you like to generate one? [Yn] Generating new SSH public key. Uploading ssh public key /Users/adam/.ssh/id_rsa.pub
You're now ready to create your first Heroku app:
$ cd ~/myapp $ heroku create Creating stark-fog-398... done, stack is cedar stark-fog-398.herokuapp.com/ | firstname.lastname@example.org:stark-fog-398.git Git remote heroku added
Staying up to date
To keep your heroku client updated, simply run heroku update
$ heroku update -----> Updating to latest client... done
The app is the fundamental unit of organization on Heroku. Users can create an unlimited number of apps; each of which can provision their own add-ons. Creating a Named App
After creating an app, you will probably want to git push to deploy and add collaborators so that others can deploy changes as well.
To create a new app named “myapp”, install the Heroku Toolbelt and run the following command:
$ heroku apps:create myapp Creating myapp... done, stack is cedar myapp.herokuapp.com/ | email@example.com:myapp.git
The command’s output shows that the app will be available at myapp.heroku.com. The second URL, firstname.lastname@example.org:high-sunrise-58.git, is the remote git repository URL; by default, the heroku create command automatically adds a git remote named “heroku” pointing at this URL.
To create an app on the Bamboo stack, use the --stack parameter:
Since Heroku app names are in a global namespace, you can expect that common names, like “blog” or “wiki”, will already be taken. It’s often easier to start with a default name and rename the app later. Welcome Page
Once your new app is created, before any code has been deployed, Heroku will display a generic welcome message to its visitors. This page is served with HTTP status code 502 to indicate that the app is not yet running.