LinuxCommandLibrary

heroku

CLI for Heroku platform-as-a-service

TLDR

Login

$ heroku login
copy
Create app
$ heroku create [app-name]
copy
Deploy via Git
$ git push heroku main
copy
View logs
$ heroku logs --tail
copy
Open app
$ heroku open
copy
Run command on dyno
$ heroku run [bash]
copy
Scale dynos
$ heroku ps:scale web=[2]
copy

SYNOPSIS

heroku command [options]

DESCRIPTION

heroku is the CLI for Heroku platform-as-a-service. It manages applications, addons, and infrastructure on Heroku cloud.
The tool handles deployment, scaling, logging, and configuration. It integrates with Git for deployments and supports multiple languages.

PARAMETERS

COMMAND

Subcommand to execute.
login
Authenticate with Heroku.
create
Create new application.
logs
View application logs.
run
Run one-off command.
ps
Process management.
config
Environment variables.
-a, --app APP
Target application.
--help
Display help information.

CAVEATS

Requires Heroku account. Some features require payment. Rate limits apply.

HISTORY

Heroku CLI was developed by Salesforce to manage applications on the Heroku platform, first launched in 2007.

SEE ALSO

git(1), docker(1), flyctl(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community