@heroku-cli/plugin-ps-exec
v2.5.0
Published
Heroku Exec CLI
Downloads
33,813
Maintainers
Readme
Heroku CLI Plugin for Heroku Exec
For usage information see the Heroku Exec documentation.
heroku ps:copy FILE
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
heroku ps:exec
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
heroku ps:forward PORT
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
-r, --remote=remote git remote of app to use
DESCRIPTION
Provide a port or comma-separated list of ports to forward.
For example, "4000,9000:9001" will forward port 4000 to port 4000 and
port 9000 to port 9001.
Example:
$ heroku ps:forward 8080 --app murmuring-headland-14719
heroku ps:socks
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