> ## 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 environment update

> Change an image, the weights or a setting of an environment, with no build

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

## Description

Change an environment with no build: set an image that is already
pushed, other weights, or one setting. Use it for operations, such as a
rollout of a known image or a change to a variable. Each update is one
write that creates the next revision. It needs no reactor.yaml, so it runs
from any folder, such as a CI job or an operator's shell. To build the code
in this folder and ship it, use reactor deploy.

`--weights` takes a tag, a digest in its short or full form, a local path
such as ./weights, which the update pushes first, or
hf://\<org>/\<repo>\[@\<revision>]; "none" clears the weights. A setting that
the command does not name keeps its value. The write waits for the rollout
unless `--no-wait` is set. A write that changes nothing returns at once:
it does not wait for a rollout that is already in progress.

An environment with no image needs `--image` in its first write. The
accelerators, the instance count and the variables have defaults.

`--desired` is a total, which the Reactor API places across regions, as
reactor scale does. `--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".

**Examples:**

```sh theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
reactor environment update staging --image v1.2.3
reactor environment update staging --var LOG_LEVEL=debug
reactor environment update production --weights v1.0.0
reactor environment update production --gpu NVIDIA_H100x1 --desired 2
reactor environment update production --desired 3 --prefer-regions us-west
reactor environment update production --require-regions us-east,us-west
```

## Options

| Flag | Description |
| - | - |
| `--desired <count>` | Desired instance count; the Reactor API places the instances |
| `--dry-run` | Print the plan and send no write |
| `--gpu <type>[x<count>]` | Accelerator type and count per instance, such as NVIDIA\_H100 or NVIDIA\_H100x2; repeat in preference order |
| `--image <tag>\|<digest>` | Image that is already pushed: a tag, or a digest in its short or full form |
| `--immediate` | End live sessions and replace every instance at once; implies `--strategy` replace-all |
| `--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 |
| `--secret <name>` | Set a secret value (repeatable). \<name> reads the value from a hidden prompt, \<name>=@- reads stdin, and \<name>=@path reads a file. The @- and @path forms drop one trailing line ending. The value never goes in argv. A new value replaces the running instances. To remove a secret, use `--unset` \<name>. The running instances of an earlier revision keep an unset secret until they stop. |
| `--strategy rolling\|replace-all` | Deployment strategy (default: rolling) |
| `--timeout duration` | The longest time to wait for the rollout |
| `--unset <name>` | Remove a variable (repeatable) |
| `--var <name>=<value>` | Set a plain variable (repeatable) |
| `--weights <tag>\|<digest>\|<path>\|hf://<org>/<repo>[@<revision>]` | Weight set: a tag, a digest in its short or full form, a local path such as ./weights to push first, or hf://\<org>/\<repo>\[@\<revision>]; "none" clears the weights |

## 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 environment](https://docs.reactor.inc/deploy/cli-reference/reactor_environment.md) - Create, list and read environments


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