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

> ## Agent Instructions
> To build and serve your own model, start at /deploy/development/quickstart and /deploy/development/overview. Authenticate with reactor auth login, scaffold with reactor init, then run reactor deploy production from the workspace. Deploy builds remotely by default, creates a missing workspace project and its production environment, and waits for rollout. No local Docker or model.version bump is needed. Projects own images and weight sets; environments select the image, weights, GPU, instance count, and variables. Create staging explicitly with reactor environment create staging before deploying to it. Use reactor scale for capacity and reactor rollback for an earlier revision’s image and weights. See /deploy/platform/projects and /deploy/platform/deploy. Client SDK modelName remains account-qualified and selects production by default. Model code imports reactor_runtime; Python client code imports reactor_sdk. Local testing is optional; /deploy/development/local-testing covers reactor run, which needs Docker.
> Reactor hosts multiple models, each with its own connect slug (modelName) and command/event schema. The video model catalog — slug, typed SDK package, and links to its schema — is at /model-api-reference/overview. Robotics policy documentation starts at /robotics/overview; The launch policies are Cosmos Nano DROID (/robotics/cosmos/nano-policy-droid/), DreamZero DROID (/robotics/dreamzero/droid/), and FLUX Action DROID (/robotics/flux-action/droid/), organized by model family and embodiment. Some models expose one slug per experience (e.g. HappyOyster); always take the slug from the model's own pages, never guess it.
> Fastest path to a working app: `npx create-reactor-app my-app --model=<slug>` scaffolds a complete app with secure auth wired up. Typed TypeScript SDKs are published as @reactor-models/<model>; Python uses the base reactor-sdk package.
> Auth: exchange an API key (rk_...) for a JWT via POST https://api.reactor.inc/tokens from your server. Never put the API key in client-side code.
> Append .md to any docs URL for clean Markdown. Search these docs via the MCP server at https://docs.reactor.inc/mcp.

# reactor scale

> Set the instance count of an environment

```sh theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
reactor scale [<environment>] [--desired <count>] [flags]
```

## Description

Set the instances of an environment.

`--desired` is a total, which the Reactor API places across regions.
`--prefer-regions` fills the regions it names first; `--require-regions` keeps the
instances in the regions it names. A region flag stays until a write names
another or none, so `--desired` alone keeps it, and a region flag
alone keeps the count. The write creates a revision, and the running
instances keep serving.

**Examples:**

```sh theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
reactor scale staging --desired 3
reactor scale production --desired 3 --prefer-regions us-west
reactor scale production --require-regions us-east,us-west
reactor scale production --desired 3 --prefer-regions none
reactor scale production --desired 5 --dry-run
```

## Options

| Flag | Description |
| - | - |
| `--desired <count>` | Desired instance count; the Reactor API places the instances |
| `--dry-run` | Print the plan and send no write |
| `--no-wait` | Return when the write is accepted, and do not wait for the rollout |
| `-o, --output table\|json` | Output format: table, json (default "table") |
| `--prefer-regions <region>[,...]` | Regions to fill first, spilling elsewhere when full (comma-separated); "none" clears it |
| `-p, --project <org>/<name>\|<uuid>` | Project: \<org>/\<name> or a project UUID (default: REACTOR\_PROJECT, else the nearest reactor.yaml) |
| `--require-regions <region>[,...]` | The only regions the instances may use (comma-separated); "none" clears it |
| `--timeout duration` | The longest time to wait for the rollout |

## Global options

| Flag | Description |
| - | - |
| `--server <url>` | Reactor API server URL (default "[https://api.reactor.inc](https://api.reactor.inc)") |
| `-v, --verbose` | Enable verbose output |

## See also

* [reactor](https://docs.reactor.inc/deploy/cli-reference/reactor.md) - The CLI for the Reactor platform


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