mcpField
H
Heroku CLI

Heroku CLI

Official
devcenter.heroku.comCloud & DevOps886herokuUpdated 6d ago
RepositoryVisit website

About Heroku CLI

The Heroku CLI provides command-line control over Heroku apps, dynos, addons, and configuration. Developers can create applications, manage environment variables, view logs, and deploy code without leaving the terminal.

Key features

  1. 01Create, deploy, and manage Heroku applications
  2. 02View real-time logs and application events
  3. 03Configure dynos, addons, and environment variables

Use cases

  1. 01Deploy and manage cloud-hosted applications from the command line
  2. 02Integrate application logs and configuration management into automation scripts

Install

Pick your OS or package manager and run the command in a terminal.

$
brew tap heroku/brew && brew install heroku

Once installed, runheroku --versionto confirm it works.

Example commands

Common commands in the order you’d use them.

01
heroku login
02
heroku create
03
heroku logs --tail

Details

From the project README
Heroku logo

 

Node CI Suite npm ISC License

Overview

The Heroku CLI is a command-line interface for managing Heroku applications and services. Built with Node.js and oclif, it provides an extensible architecture for interacting with the Heroku platform.

For more about Heroku see https://www.heroku.com/home

To get started see https://devcenter.heroku.com/start

Key features of the CLI include:

  • App management - Deploy, scale, and monitor your applications
  • Heroku Postgres database management - Backup, restore, and manage Heroku Postgres databases
  • Heroku CI/CD pipelines - Run automated tests and manage review apps for streamlined deployment workflows
  • Add-ons marketplace - Provision and manage tools and services to extend your application
  • SSL certificates and domains - Configure custom domains and automatically manage SSL/TLS certificates
  • Team collaboration - Manage organization and team access with granular permissions
  • Private Spaces - Deploy applications in network-isolated environments with VPN support
  • Logs and monitoring - Stream application logs and forward them to external services
  • Plugin ecosystem - Extend functionality with community and custom plugins

For more on developing plugins, read Developing CLI Plugins

Issues

For problems directly related to the CLI, add an issue on GitHub.

For other issues, submit a support ticket.

Contributors

Command Topics

Developing

After cloning the repo

  1. Run npm install to install dependencies
  2. Run npm run build to build the CLI. This will need to be re-run any time you make changes and want to test them locally.

To execute Heroku CLI commands locally, use ./bin/run <command>. For example, to run the heroku apps command with your local code, run ./bin/run apps from the root directory.

Testing

Run all tests with npm test.

Debugging

Using WebStorm (from JetBrains / IntelliJ), you can run/debug an individual test case.

  • Create a new run/debug configuration
  • Select the 'Mocha' type

Contributing

Please review our Contributing guidelines as well as our PR template.

Comments

Markdown supported