Run a shell command on a service instance, over SSH through the bastion.
rumi cloud hetzner run-command \ --api-key <token> \ --network <network> \ --key-pair <keypair> \ --service <service> \ --command <command> \ [options]
--api-key
-k
The Hetzner Cloud project API token (or set HCLOUD_TOKEN)
HCLOUD_TOKEN
Required
--region
-r
The Hetzner location the network is in
fsn1
--network
-n
The name of the network
--key-pair
-K
The SSH key pair to reach the bastion
--service
-s
The service instance to run the command on
--command
-c
The shell command to run
run-admin-script
list-instances
launch-instance
Last updated 15 days ago
rumi cloud hetzner run-command \ --api-key $HCLOUD_TOKEN \ --network my-cloud \ --key-pair rumi \ --service myapp \ --command "ls -la /home/rumi"