Cheat-Sheet for Heroku commands and more
This project is maintained by mailtoharshit
– A curated list of delightful Heroku Commands
Read Related Awesome Pages :
The heroku command-line interface (CLI) is a tool that wraps the Heroku Platform API, providing support for things like creating/renaming apps, running one-off dynos, taking backups, configuring add-ons and managing your app’s state-all from the terminal. Install it by following the instructions in Heroku Command Line.
The heroku command-line interface (CLI) is a tool that wraps the Heroku Platform API, providing support for things like creating/renaming apps, running one-off dynos, taking backups, configuring add-ons and managing your app’s state-all from the terminal. Install it by following the instructions in Heroku Command Line.
To install the Heroku CLI with homebrew:
$ brew install heroku
Download and run the OS X Installer.
Download and run the Windows installer 32-bit 64-bit
To verify your CLI installation use the heroku –version command.
$ heroku --version
You should see heroku-cli/x.y.z in the output. If you don’t, but have installed the Heroku CLI, it’s possible you have an old heroku gem on your system.
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 ~/.netrc for future use. Here at Intuitive Surgical, you will need to login via single sign on. heroku login –sso
$ heroku apps
$ heroku create myapp
$ heroku create myapp --org intusurg
$ git push heroku localbranch:master (mybranch: master)
$ heroku heroku apps:oldname newname
$ cd myapp
$ heroku git:remote -a heroku-remote-name
$ git remote -v
$ heroku open
$ heroku config
$ heroku ps
$ heroku logs
$ heroku logs --ps web.1 --tail
$ heroku ps
$ heroku ps:resize worker=standard-2x
$ heroku ps:scale web=3 queue=2
$ heroku logs --ps worker
$ heroku ps:scale web+5
$ heroku buildpacks:set heroku/php
$ heroku create myapp --buildpack heroku/python
$ heroku buildpacks:set heroku/nodejs
$ heroku buildpacks:remove heroku/nodejs
$ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-erlang
$ heroku config:set ENCRYPTION_KEY=my_secret_launch_codes
$ heroku releases
$ heroku releases:rollback v102 //v102 is your commmit/tag
$ heroku run bash
$ heroku addons:create heroku-redis:hobby-dev
$ heroku addons:create heroku-redis:hobby-dev
$ heroku db:pull
$ heroku db:push
$ heroku ps:scale web=1 // 1 is number of dynos the app will use (web=2 for two dynos)
$ heroku git: clone -a myapp
$ heroku addons
for app in $(heroku apps); do heroku apps:destroy --app $app --confirm $app; done
$ heroku config:set --app myapp --org=intusurg
$ heroku config:set NODE_ENV=production
$ heroku config:set --app=myapp NODE_ENV=production
$ heroku releases
$ heroku releases:rollback v#### (rollback to #### version)
$ heroku pg:info
$ watch heroku pg:info
$ heroku pg:psql mydatabase // my database is your remote database