Runhouse provides CLI commands for the following use cases:
logging in and out (runhouse login/logout
)
interacting with or retrieving information about clusters (runhouse cluster <cmd>
)
interacting with the Runhouse server (runhouse server <cmd>
)
The commands can be run using either runhouse
or the rh`
alias
Terminate cluster if it is not down. No-op if cluster is already down. This only applies to on-demand clusters, and has no effect on self-managed clusters.
Example
$ runhouse cluster down rh-basic-cpu
Keep the cluster warm for given number of minutes after inactivity.
Example
$ runhouse cluster keep-warm rh-basic-cpu
Load Runhouse clusters
Example
$ runhouse cluster list
$ runhouse cluster list --all
$ runhouse cluster list --status running
$ runhouse cluster list --since 15m
Load the logs of the Runhouse server running on a cluster.
Example
$ runhouse cluster logs rh-basic-cpu
$ runhouse cluster logs rh-basic-cpu --since 60
SSH into a remote cluster.
Example
$ runhouse cluster ssh rh-basic-cpu
Load the status of the cluster.
Example
$ runhouse cluster status rh-basic-cpu
Bring up the cluster if it is not up. No-op if cluster is already up. This only applies to on-demand clusters, and has no effect on self-managed clusters.
Note: To launch the cluster via Den, set launcher: den in your local ~/.rh/config.yaml.
Example
$ runhouse cluster up rh-basic-cpu
Login to Runhouse. Validates token provided, with options to upload or download stored secrets or config between local environment and Runhouse / Vault.
Logout of Runhouse. Provides options to delete locally configured secrets and local Runhouse configs
Restart the HTTP server on the cluster.
Example
$ runhouse server restart
$ runhouse server restart rh-cpu
Start the HTTP server on the cluster.
Example
$ runhouse server start
$ runhouse server start rh-cpu
Check the HTTP server status on the cluster.
Example
$ runhouse server status
$ runhouse server status rh-cpu
Stop the HTTP server on the cluster.
Example
$ runhouse server stop
$ runhouse server stop rh-cpu