Skip to content

Instantly share code, notes, and snippets.

@juandm
Last active October 30, 2020 12:56
Show Gist options
  • Save juandm/5dd65572202690803cad05671f3b9482 to your computer and use it in GitHub Desktop.
Save juandm/5dd65572202690803cad05671f3b9482 to your computer and use it in GitHub Desktop.
Heroku commonly used commands

Heroku commands


Heroku accounts commands

  • List accounts

    $ heroku accounts

  • Install plugin to manage multiple heroku accounts

    $ heroku plugins:install heroku-accounts

  • Add a new account

    $ heroku accounts:add <account_name>

  • Set account as a working account

    $ heroku accounts:set <account_name>


  • See app logs

    $ heroku logs --tail --app

  • Restart app

    $ heroku restart --app


Database dump

$ heroku pg:backups:capture

$ heroku pg:backups:download

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment