> 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/civo/run-admin-script.md).

# run-admin-script

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

## Syntax

```bash
rumi cloud civo run-admin-script \
  --api-key <token> \
  --region <region> \
  --network <network> \
  --keyPair <keypair> \
  --system <system> \
  --script <script> \
  [options]
```

## Options

| Option      | Short | Description                                         | Default  |
| ----------- | ----- | --------------------------------------------------- | -------- |
| `--api-key` | `-k`  | The Civo API token to use (or set `CIVO_API_TOKEN`) | Required |
| `--region`  | `-r`  | The Civo region the network is in (e.g. `FRA1`)     | Required |
| `--network` | `-n`  | Name of the network                                 | Required |
| `--keyPair` | `-K`  | The network SSH key pair                            | 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 civo run-admin-script \
  --api-key $CIVO_API_TOKEN \
  --region FRA1 \
  --network my-cloud \
  --keyPair rumi \
  --system my-app \
  --script start.js \
  --param mode=active
```

## See Also

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