Skip to content

Instantly share code, notes, and snippets.

@hezhao hezhao/
Last active Feb 6, 2017

What would you like to do?
Heroku Commands Cheatsheet
# Regions
$ heroku regions
$ heroku create --region eu
# Create
$ heroku create
$ git push heroku master
# Clone existing app
$ heroku login
$ heroku git:clone -a myapp
# Add heroku remote to existing app
$ heroku git:remote -a falling-wind-1624
# Run
$ heroku info
$ heroku ps
$ heroku logs
$ heroku logs -t # shows live logs.
$ heroku run
# Restore database
$ heroku pg:backups restore b011 <APPNAME>::DATABASE --app <APPNAME>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.