> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rivvr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# rivvr cluster

> List, select, create, resize, and delete clusters.

A cluster is the place in your company's AWS account where models run. It sets which AWS GPU machine types Rivvr may use, up to how many, and the most it may cost per hour. These commands list clusters, pick one to work with, and create, resize, and delete them. See [clusters](https://docs.rivvr.ai/administration/clusters.md).

| Command | What it does |
| - | - |
| [`list`](#rivvr-cluster-list) | List clusters in the current project. |
| [`get`](#rivvr-cluster-get) | Show one cluster's status, machines, and budget. |
| [`use`](#rivvr-cluster-use) | Make a cluster the default for new models. |
| [`machines`](#rivvr-cluster-machines) | List the AWS GPU machine types a cluster can use. |
| [`create`](#rivvr-cluster-create) | Create a cluster: choose which AWS GPU machine types Rivvr may use, up to how many of each, and the most it may cost per hour. |
| [`update`](#rivvr-cluster-update) | Rename a cluster, or change its budget or machines. |
| [`delete`](#rivvr-cluster-delete) | Delete a cluster. |

## rivvr cluster list

List clusters in the current project.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cluster list [flags]
```

| Flag | Default | Description |
| - | - | - |
| `--wide` | | Show full IDs and more columns |

## rivvr cluster get

Show one cluster's status, machines, and budget.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cluster get <name-or-id> [flags]
```

## rivvr cluster use

Make a cluster the default for new models.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cluster use <name-or-id> [flags]
```

```bash Example theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cluster use development
```

## rivvr cluster machines

List the AWS GPU machine types a cluster can use.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cluster machines [flags]
```

```bash Example theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cluster machines --wide
```

| Flag | Default | Description |
| - | - | - |
| `--wide` | | Show full IDs and more columns |

## rivvr cluster create

Create a cluster: choose which AWS GPU machine types Rivvr may use, up to how many of each, and the most it may cost per hour. `--wait` returns once it's `ACTIVE`.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cluster create <name> [flags]
```

```bash Example theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cluster create development --machine g5.xlarge=1 --hourly-budget 5 --wait
```

| Flag | Default | Description |
| - | - | - |
| `--hourly-budget <usd>` | | Hourly budget cap in USD |
| `--machine <type=count>` | | Machine type and count. Repeat for each type |
| `--timeout <duration>` | `30m` | How long `--wait` waits |
| `--wait` | | Wait until the cluster is `ACTIVE` |

## rivvr cluster update

Rename a cluster, or change its budget or machines. Anything you don't pass stays the same, except `--machine`, which replaces the whole inventory.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cluster update <name-or-id> [flags]
```

```bash Examples theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cluster update development --hourly-budget 6
rivvr cluster update development --machine g5.xlarge=2 --hourly-budget 6
```

| Flag | Default | Description |
| - | - | - |
| `--hourly-budget <usd>` | | New hourly budget cap in USD |
| `--machine <type=count>` | | Machine type and count. Replaces the cluster's whole machine list, so repeat it for every type you want to keep |
| `--name <name>` | | Rename the cluster |
| `--timeout <duration>` | `30m` | How long `--wait` waits |
| `--wait` | | Wait until the cluster is `ACTIVE`. Doesn't wait for its models |

## rivvr cluster delete

Delete a cluster. This also deletes every model on it.

```bash Usage theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cluster delete <name-or-id> [flags]
```

```bash Examples theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model list --cluster development   # check what will be deleted
rivvr cluster delete development
```

| Flag | Default | Description |
| - | - | - |
| `--yes` | | Confirm without a prompt. This also deletes the cluster's models |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.