/heroku-apps

Heroku Core CLI Plugin for managing Heroku apps

Primary LanguageJavaScriptISC LicenseISC

heroku-apps Circle CI

Code Climate codecov npm version License Greenkeeper badge

This core plugin comes preinstalled to the Heroku CLI.

$ npm install -g @heroku-cli/plugin-apps
$ heroku COMMAND
running command...
$ heroku (-v|--version|version)
@heroku-cli/plugin-apps/2.4.39 linux-x64 node-v10.0.0
$ heroku --help [COMMAND]
USAGE
  $ heroku COMMAND
...

Command Topics

if DYNO is not specified, restarts all dynos on app

Examples:

$ heroku ps:restart web.1
Restarting web.1 dyno... done

$ heroku ps:restart web
Restarting web dynos... done

$ heroku ps:restart
Restarting dynos... done
  • heroku features - disables an app feature

  • heroku keys - add an SSH key for a user if no KEY is specified, will try to find ~/.ssh/id_rsa.pub

Examples:

$ heroku keys:add
Could not find an existing public key.
Would you like to generate one? [Yn] y
Generating new SSH public key.
Uploading SSH public key /.ssh/id_rsa.pub... done

$ heroku keys:add /my/key.pub
Uploading SSH public key /my/key.pub... done

Examples:

$ heroku ps
=== run: one-off dyno
run.1: up for 5m: bash

=== web: bundle exec thin start -p $PORT
web.1: created for 30s

$ heroku ps run # specifying types
=== run: one-off dyno
run.1: up for 5m: bash

Example:

$ heroku releases
=== example Releases
v1 Config add FOO_BAR email@example.com 2015/11/17 17:37:41 (~ 1h ago)
v2 Config add BAR_BAZ email@example.com 2015/11/17 17:37:41 (~ 1h ago)
v3 Config add BAZ_QUX email@example.com 2015/11/17 17:37:41 (~ 1h ago)