Forrest logo
back to the heroku tool

heroku:tldr:67c56

heroku: Run a one-off process inside a dyno (Heroku virtual machine).
$ heroku run ${process_name} --app ${app_name}
try on your machine

The command "heroku run ${process_name} --app ${app_name}" is used to run a specific process on a specific Heroku application.

Here's the breakdown of the command:

  • "heroku run": This is the Heroku CLI command that is used to run a one-off command or process on a Heroku dyno. It allows you to execute a command within the context of your Heroku application.

  • "${process_name}": This is the name of the specific process you want to run. It should be replaced with the actual name of the process you want to execute. For example, if you have a process called "worker" defined in your application's Procfile, you would replace ${process_name} with "worker".

  • "--app ${app_name}": This specifies the Heroku application on which you want to run the process. It should be replaced with the actual name of your Heroku application. For example, if your Heroku application is named "my-cool-app", you would replace ${app_name} with "my-cool-app".

By combining all the parts, the command instructs the Heroku CLI to run a specific process (identified by ${process_name}) on a specific Heroku application (identified by ${app_name}). The output of the command will be displayed in the terminal or command prompt.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the heroku tool