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

# Restart & Rollback

> Restart an environment or restore an earlier image and weights.

Run these commands from the project workspace.
Restart to replace instances with the same configuration. Roll back to restore an earlier image and weights.

## Restart an environment

Restart a deployed environment without rebuilding:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
reactor restart production
```

The default strategy is rolling. The CLI waits for the rollout.
See the [restart reference](https://docs.reactor.inc/deploy/cli-reference/reactor_restart.md) for other strategies.

## Inspect history

An environment records a revision when deployment, settings, or capacity changes.
List its history and inspect a revision:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
reactor environment history production
reactor environment show production --revision 2
```

## Apply the rollback

Replace `2` with the revision you want to restore:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
reactor rollback production --to 2 --dry-run
reactor rollback production --to 2
```

The first command previews the change. The second applies it and waits for the rollout.

Rollback restores **only the image and weights**. It keeps the current GPU, instance count, regions, variables, and secrets.
To restore an earlier secret value, [set it again with `--secret`](https://docs.reactor.inc/deploy/platform/secrets#set-an-environment-secret).

The change creates a new revision. If the selected revision has no weights, rollback clears the current weights.

## Check the result

Check rollout status and startup logs:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
reactor status production
reactor logs production --follow
```

For more options, see the [rollback reference](https://docs.reactor.inc/deploy/cli-reference/reactor_rollback.md).


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