2025-03-14 21:59:59 -06:00
|
|
|
# heroku
|
|
|
|
|
|
|
|
|
|
> Create and manage Heroku apps.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://devcenter.heroku.com/articles/heroku-cli#get-started-with-the-heroku-cli>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Log in to your Heroku account:
|
|
|
|
|
|
|
|
|
|
`heroku login`
|
|
|
|
|
|
|
|
|
|
- Create a Heroku app:
|
|
|
|
|
|
|
|
|
|
`heroku create`
|
|
|
|
|
|
|
|
|
|
- Show logs for an app:
|
|
|
|
|
|
|
|
|
|
`heroku logs --app {{app_name}}`
|
|
|
|
|
|
|
|
|
|
- Run a one-off process inside a dyno (Heroku virtual machine):
|
|
|
|
|
|
|
|
|
|
`heroku run {{process_name}} --app {{app_name}}`
|
|
|
|
|
|
|
|
|
|
- List dynos (Heroku virtual machines) for an app:
|
|
|
|
|
|
|
|
|
|
`heroku ps --app {{app_name}}`
|
|
|
|
|
|
|
|
|
|
- Permanently destroy an app:
|
|
|
|
|
|
|
|
|
|
`heroku destroy --app {{app_name}}`
|