> For the complete documentation index, see [llms.txt](https://docs.rumi.systems/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rumi.systems/rumi-cli/commands/cloud/hetzner/run-admin-script.md).

# run-admin-script

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

## Syntax

```bash
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

```bash
rumi cloud hetzner run-admin-script \
  --api-key $HCLOUD_TOKEN \
  --network my-cloud \
  --key-pair rumi \
  --system my-app \
  --script start.js \
  --param mode=active
```

## See Also

* [run-command](/rumi-cli/commands/cloud/hetzner/run-command.md)
* [deploy](/rumi-cli/commands/cloud/hetzner/deploy.md)
* [configure](/rumi-cli/commands/cloud/hetzner/configure.md)
