Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

run-admin-script

Run an admin script against a deployed system, executed from the admin node.

Syntax

rumi cloud hetzner run-admin-script \
  --api-key <token> \
  --network <network> \
  --key-pair <keypair> \
  --system <system> \
  --script <script> \
  [options]

Options

Option
Short
Description
Default

--api-key

-k

The Hetzner Cloud project API token (or set HCLOUD_TOKEN)

Required

--region

-r

The Hetzner location the network is in

fsn1

--network

-n

The name of the network

Required

--key-pair

-K

The SSH key pair to reach the bastion

Required

--system

The system to run the admin script against

Required

--script

The admin script to run

Required

--param

The admin script parameters

none

Example

Troubleshooting

Script execution failed [exit code '1'], and the admin's log shows Permission denied (publickey) for a service instance. The admin does not have the network's SSH key, which it needs to reach the service instances. An admin receives it at launch-admin; admins launched before that was added did not. Copy it over from the bastion:

  1. Log in to the bastion with the key pair you launched with. Its public IP is printed by provision and launch-bastion (Bastion ready at <ip>), and shown for the <network>-rumi-bastion server in the Hetzner Cloud Console.

  2. On the bastion, copy its key to the admin:

Then run the script again.

See Also

Last updated