> 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/resize-instance.md).

# resize-instance

Resize a service instance to a new server type. Hetzner requires the server to be off to change its type, so resize stops the instance, retypes it, and restarts it if it was running.

## Syntax

```bash
rumi cloud hetzner resize-instance \
  --api-key <token> \
  --network <network> \
  --service <service> \
  --server-type <type> \
  [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 |
| `--service`     | `-s`  | The service instance to resize                              | Required |
| `--server-type` | `-T`  | The new server type (e.g. `cx33`)                           | Required |

## Example

```bash
rumi cloud hetzner resize-instance \
  --api-key $HCLOUD_TOKEN --network my-cloud --service myapp --server-type cx33
```

## Notes

* The type change keeps the disk (`upgrade_disk=false`) so it stays reversible to a smaller type later.

## See Also

* [start-instance](/rumi-cli/commands/cloud/hetzner/start-instance.md)
* [stop-instance](/rumi-cli/commands/cloud/hetzner/stop-instance.md)
* [list-server-types](/rumi-cli/commands/cloud/hetzner/list-server-types.md)
