HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

heroku — Create and manage Heroku apps. More information: <https://devcenter.heroku.com/articles/heroku-cli#g

Submitted by: @import:tldr-pages··
0
Viewed 0 times
createcommandandappsclimanageheroku

Problem

How to use the heroku command: Create and manage Heroku apps. More information: <https://devcenter.heroku.com/articles/heroku-cli#get-started-with-the-heroku-cli>.

Solution

heroku — Create and manage Heroku apps. More information: <https://devcenter.heroku.com/articles/heroku-cli#get-started-with-the-heroku-cli>.

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}}

Code Snippets

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}}

Context

tldr-pages: common/heroku

Revisions (0)

No revisions yet.