Client tools for Heroku Exec
heroku ps [TYPE [TYPE ...]]
heroku ps:copy FILE
heroku ps:exec
heroku ps:forward PORT
heroku ps:kill DYNO
heroku ps:resize
heroku ps:restart [DYNO]
heroku ps:scale
heroku ps:socks
heroku ps:stop DYNO
heroku ps:type
list dynos for an app
USAGE
$ heroku ps [TYPE [TYPE ...]]
OPTIONS
-a, --app=app (required) [default: safe-sea-44297] app to run command against
-r, --remote=remote git remote of app to use
--json display as json
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
Copy a file from a dyno to the local filesystem
USAGE
$ heroku ps:copy FILE
OPTIONS
-a, --app=app (required) app to run command against
-d, --dyno=dyno specify the dyno to connect to
-o, --output=output the name of the output file
-r, --remote=remote git remote of app to use
DESCRIPTION
Example:
$ heroku ps:copy FILENAME --app murmuring-headland-14719
Create an SSH session to a dyno
USAGE
$ heroku ps:exec
OPTIONS
-a, --app=app (required) app to run command against
-d, --dyno=dyno specify the dyno to connect to
-r, --remote=remote git remote of app to use
--ssh use native ssh
--status lists the status of the SSH server in the dyno
DESCRIPTION
Example:
$ heroku ps:exec 'node -i' --app murmuring-headland-14719
Forward traffic on a local port to a dyno
USAGE
$ heroku ps:forward PORT
OPTIONS
-a, --app=app (required) app to run command against
-d, --dyno=dyno specify the dyno to connect to
-p, --localPort=localPort the local port to use
-r, --remote=remote git remote of app to use
DESCRIPTION
Example:
$ heroku ps:forward 8080 --app murmuring-headland-14719
stop app dyno
USAGE
$ heroku ps:kill DYNO
OPTIONS
-a, --app=app (required) [default: safe-sea-44297] app to run command against
-r, --remote=remote git remote of app to use
DESCRIPTION
stop app dyno or dyno type
EXAMPLES
$ heroku ps:stop run.1828
Stopping run.1828 dyno... done
$ heroku ps:stop run
Stopping run dynos... done
manage dyno sizes
USAGE
$ heroku ps:resize
OPTIONS
-a, --app=app (required) [default: safe-sea-44297] app to run command against
-r, --remote=remote git remote of app to use
DESCRIPTION
Called with no arguments shows the current dyno size.
Called with one argument sets the size.
Where SIZE is one of free|hobby|standard-1x|standard-2x|performance
Called with 1..n TYPE=SIZE arguments sets the quantity per type.
restart app dynos
USAGE
$ heroku ps:restart [DYNO]
OPTIONS
-a, --app=app (required) [default: safe-sea-44297] app to run command against
-r, --remote=remote git remote of app to use
DESCRIPTION
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
scale dyno quantity up or down
USAGE
$ heroku ps:scale
OPTIONS
-a, --app=app (required) [default: safe-sea-44297] app to run command against
-r, --remote=remote git remote of app to use
DESCRIPTION
Appending a size (eg. web=2:Standard-2X) allows simultaneous scaling and resizing.
Omitting any arguments will display the app's current dyno formation, in a
format suitable for passing back into ps:scale.
EXAMPLES
$ heroku ps:scale web=3:Standard-2X worker+1
Scaling dynos... done, now running web at 3:Standard-2X, worker at 1:Standard-1X.
$ heroku ps:scale
web=3:Standard-2X worker=1:Standard-1X
Launch a SOCKS proxy into a dyno
USAGE
$ heroku ps:socks
OPTIONS
-a, --app=app (required) app to run command against
-d, --dyno=dyno specify the dyno to connect to
-r, --remote=remote git remote of app to use
DESCRIPTION
Example:
$ heroku ps:socks --app murmuring-headland-14719
Establishing credentials... done
SOCKSv5 proxy server started on port 1080
Use CTRL+C to stop the proxy
stop app dyno
USAGE
$ heroku ps:stop DYNO
OPTIONS
-a, --app=app (required) [default: safe-sea-44297] app to run command against
-r, --remote=remote git remote of app to use
DESCRIPTION
stop app dyno or dyno type
EXAMPLES
$ heroku ps:stop run.1828
Stopping run.1828 dyno... done
$ heroku ps:stop run
Stopping run dynos... done
manage dyno sizes
USAGE
$ heroku ps:type
OPTIONS
-a, --app=app (required) [default: safe-sea-44297] app to run command against
-r, --remote=remote git remote of app to use
DESCRIPTION
Called with no arguments shows the current dyno size.
Called with one argument sets the size.
Where SIZE is one of free|hobby|standard-1x|standard-2x|performance
Called with 1..n TYPE=SIZE arguments sets the quantity per type.