> ## 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.

# CLI reference

> Every rivvr command, the flags they share, and exit codes.

These pages match `rivvr --help`. The same help is built into the binary and works offline:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr --help
rivvr model create --help
```

## Commands

| Command | What it's for |
| - | - |
| [`rivvr auth`](https://docs.rivvr.ai/cli/auth) | Sign in, check, and end your session. |
| [`rivvr project`](https://docs.rivvr.ai/cli/project) | List, select, create, and delete projects. |
| [`rivvr cluster`](https://docs.rivvr.ai/cli/cluster) | List, select, create, resize, and delete clusters. |
| [`rivvr storage`](https://docs.rivvr.ai/cli/storage) | Import, upload, verify, and delete weights and LoRA adapters. |
| [`rivvr model`](https://docs.rivvr.ai/cli/model) | Create, watch, call, update, and delete models. |
| [`rivvr deploy`](https://docs.rivvr.ai/cli/deploy) | Import weights and create a model in one command. |
| [`rivvr inference-key`](https://docs.rivvr.ai/cli/inference-key) | Save, create, and revoke inference keys. |
| [`rivvr cost`](https://docs.rivvr.ai/cli/cost) | Infrastructure cost for clusters and models. |
| [`rivvr billing`](https://docs.rivvr.ai/cli/billing) | Recorded Rivvr usage charges. |
| [`rivvr mcp`](https://docs.rivvr.ai/cli/mcp) | Run the MCP server and register agent clients. |
| [`rivvr config`](https://docs.rivvr.ai/cli/config) | Show the configuration in use. |
| [`rivvr doctor`](https://docs.rivvr.ai/cli/doctor) | Check that the CLI can reach Rivvr. |
| [`rivvr version`](https://docs.rivvr.ai/cli/version) | Show the CLI version. |
| [`rivvr completion`](https://docs.rivvr.ai/cli/completion) | Generate shell completion scripts. |

## Global flags

Every command accepts these:

| Flag | Default | Description |
| - | - | - |
| `--api-url <url>` | | Your Rivvr URL |
| `--cluster <cluster>` | | Cluster for new models; also filters `model list` |
| `--error-json` | | With `--json`, print errors as one JSON object on stderr |
| `--json` | | Write results as JSON; never prompt |
| `--project <project>` | | Project name or ID (overrides saved selection) |

A flag beats the matching environment variable, which beats your saved selection. See [precedence](https://docs.rivvr.ai/configuration/projects-and-clusters.md#which-setting-wins).

## Conventions

* `<name-or-id>` arguments take either. When a name matches more than one resource, use the ID.
* `--wide` on `list` commands prints full IDs and extra columns.
* `--wait` watches a resource until it's ready, 30 minutes by default; `--timeout` changes that. Stopping the wait doesn't cancel anything on the server.
* `--yes` confirms deletes in scripts, where the CLI can't prompt.
* Results go to stdout; progress and errors go to stderr.

## Exit codes

| Code | Meaning |
| - | - |
| `0` | Success, or the request was accepted |
| `1` | Server, network, or other remote failure |
| `2` | Bad arguments or configuration |
| `3` | Not signed in, or not allowed |
| `4` | Not found |
| `5` | Conflict |
| `6` | `--wait` timed out |
| `130` | Interrupted with Ctrl-C |

More on JSON output and scripting in [scripting](https://docs.rivvr.ai/configuration/scripting.md).


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