browse
heroku/Heroku CLI
Salesforce/HerokuCommand line interface for creating, managing, and deploying applications on Heroku.
Cloud ProvidersJSON
01Agent Notes
heroku uses `heroku <topic>:<command>` pattern (e.g., `heroku apps:info`). Pass `--json` where supported. Use `--app` or git remote to target apps. Key topics: apps, addons, config, domains, logs, pg, ps, releases, run.
02Global Flags
| Flag | Type | Description |
|---|---|---|
--app/-a | string | App name to operate on |
--remote/-r | string | Git remote to target |
--json | boolean | Output results as JSON |
03Authentication
Methods
access-tokenenvironment-variablesconfig-file
Env vars
HEROKU_API_KEYConfig files
~/.netrcSetup
heroku login04Install
brew install heroku/brew/heroku05Capabilities
Reference
binary
herokucheck
heroku --versionauth
access-token, environment-variables, config-fileformats
text, jsonjson flag
--jsonversion
10.17.0