Run a shell command on a service instance, over SSH through the bastion.
rumi cloud civo run-command \ --api-key <token> \ --region <region> \ --network <network> \ --keyPair <keypair> \ --service <service> \ --command <command> \ [options]
--api-key
-k
The Civo API token to use (or set CIVO_API_TOKEN)
CIVO_API_TOKEN
Required
--region
-r
The Civo region the network is in (e.g. FRA1)
FRA1
--network
-n
Name of the network
--keyPair
-K
The network SSH key pair
--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 civo run-command \ --api-key $CIVO_API_TOKEN \ --region FRA1 \ --network my-cloud \ --keyPair rumi \ --service myapp \ --command "ls -la /home/rumi"