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

# CLI Reference

> Commands available in the latest runcloud CLI.

This is the reference for the latest `runcloud` command-line interface. Install
it from npm:

```bash theme={null}
npm install -g runcloud
```

Use `runcloud --version` to print the installed version and
`runcloud <command> --help` to inspect the exact options supported by that
version.

## Interactive menus

In a terminal, run `runcloud` to browse commands, or enter at any command group:

```bash theme={null}
runcloud
runcloud ios
runcloud ios recording
```

Menus highlight the current choice and show its contextual help. Use the arrow
keys and Enter to choose, or type to filter. Keyboard hints stay beneath the
active menu and disappear when you move on. The search shows the total number of
options; scroll or type to reach commands below the visible rows. Every command
group includes **help**, and aliases appear beside command names. **Back** moves
to the parent menu; Escape or Ctrl-C cancels. Selecting a final command runs it
immediately after any missing required arguments and options are collected.
When a simulator ID is needed, you can select an active session or enter its ID
manually.

Successful commands end with a distinct **COMMAND COMPLETE** status, followed by
the full command on its own copyable line, with shell quoting preserved. Failed
commands show **COMMAND FAILED** and the repeat command. Credential values are
hidden in this hint. Fully specified commands run directly. To edit optional
settings first, add `--interactive`, change the settings, then select **Done**:

```bash theme={null}
runcloud --interactive ios create
```

`--json`, redirected output, and non-terminal input keep the usual scripting
behavior without menus or repeat hints. Use `runcloud --no-interactive …` to
disable both explicitly. Put these global menu flags before the command name;
flags in a sandbox command's argument list belong to that command.
`NO_COLOR`, `NODE_DISABLE_COLORS`, or `FORCE_COLOR=0` disables colors;
`TERM=dumb` uses ordinary command output without interactive menus. The npm
package requires Node.js 20.x from 20.18.0, or Node.js 22.0.0 or newer.

Sandbox `--env NAME=VALUE` entries are masked while you type. Repeat hints use
`NAME="${NAME}"` instead of revealing the value; set that local environment
variable before replaying the command. Named `--secret group/name` references
remain visible. When configuring `sandbox exec`, **Edit shell command** edits
the entire `/bin/sh -c` command as one value, including its shell quoting.

## Authentication

| Command | Description |
| - | - |
| `runcloud login` | Sign in through the browser and save the CLI credential. |
| `runcloud whoami` | Show the saved credential: account, API, expiry, and file. |
| `runcloud logout` | Delete the saved CLI credential. |
| `runcloud account` | Show account access and organizations. |
| `runcloud credits` | Show available USD credits, current rates, and equivalent simulator and default sandbox runtime. |
| `runcloud zones` | List availability zones and whether Xcode builds install over the local network in each. See [Availability Zones](https://docs.run.cloud/ios/zones.md). |

Use `runcloud login --manual` when the browser cannot return to the local
callback automatically. `runcloud account --json` returns machine-readable
output.

`runcloud whoami` reads the stored credential without calling the API, so it
answers which credential will be sent — including one supplied through
`RUN_CLOUD_API_KEY`, which takes precedence over the saved file. It exits
non-zero when there is no credential or the saved one has expired. Signing in
again is `runcloud login`; it now offers to keep the existing session rather
than replacing it silently.

## Credits and estimated runtime

```bash theme={null}
runcloud credits
runcloud credits --org-id <organization-id>
runcloud credits --json
```

`credits` reads your current balance and pricing from the service. It shows
available prepaid/free credit after accrued usage and your organization's cap,
plus estimated equivalent time for one iOS simulator, one Android emulator, or
the current default sandbox. A post-pay credit limit is not counted as free
credit.

Runtime estimates assume one resource at a time. Sandbox estimates use the
current default CPU/RAM allocation and its billing floor; bursts and other
charges can reduce runtime. The command includes the service's assumptions and
reports when new sessions are blocked. Missing balance information is shown as
unavailable, never as a zero balance.

The JSON response includes the balance, rates, default sandbox allocation,
runtime estimates in seconds, and assumptions.

## Mobile sessions

The iOS and Android command groups share the same lifecycle:

| Command | Description |
| - | - |
| `runcloud ios create` | Create an iOS simulator session. |
| `runcloud ios list` | List active iOS sessions. Pass `--all` to include released sessions. |
| `runcloud ios get <id>` | Get one iOS session. |
| `runcloud ios open-url <url> --id <id>` | Open an HTTP(S) URL or application deep link. |
| `runcloud ios launch-app <id> <bundle-id> [--arg=<value>...] [--terminate-running]` / `terminate-app <id> <bundle-id>` | Launch or stop an installed app. See [Launch and Terminate Apps](https://docs.run.cloud/platform/app-lifecycle.md). |
| `runcloud ios location set <id> --latitude <deg> --longitude <deg>` / `location clear <id>` | Set or clear the simulated GPS location. See [Simulated Location](https://docs.run.cloud/platform/simulator-location.md). |
| `runcloud ios appearance <id> light\|dark` | Switch light or dark mode. See [Appearance, Permissions, and Push](https://docs.run.cloud/platform/simulator-device-controls.md). |
| `runcloud ios permissions grant\|revoke\|reset <id> --app <bundle-id> <service...>` | Change app privacy permissions such as `camera`, `location`, and `notifications`. |
| `runcloud ios push <id> --app <bundle-id> <payload.json\|->` | Deliver a simulated APNs push (max 4 KiB). Android has no simulated push. |
| `runcloud ios settings <id> [--soft-keyboard auto\|hidden\|shown]` | Show the device settings, or set the on-screen keyboard mode: `auto` hides it while a hardware keyboard types, `hidden` and `shown` pin it. |
| `runcloud ios accessibility-tree <id> [--json]` | Read the current typed accessibility hierarchy. `accessibility` is an alias. |
| `runcloud ios camera inject <id> <video>` | Upload MP4 or MOV and loop it through the app camera. |
| `runcloud ios microphone inject <id> <audio>` | Deliver supported audio through the app microphone. `mic` is an alias. |
| `runcloud ios screenshot <id> --output <path>` | Save the current display as a validated PNG. |
| `runcloud ios audio <id> --output <path> [--duration seconds]` | Record speaker output as stereo PCM WAV, for 0.1 to 60 seconds (default 10). |
| `runcloud ios recording start\|list\|status\|stop\|download …` | Capture and retrieve MP4 screen recordings. |
| `runcloud ios logs <id> [--tail N\|--follow]` | Read retained logs or follow new entries. |
| `runcloud ios delete <id> [--save-state [--wait]]` | Release an iOS session. `--save-state` saves its apps and their data and prints the `stateId`; `--wait` waits until the state is ready. See [Saved state](https://docs.run.cloud/platform/simulator-state.md). |
| `runcloud ios create --zone <zone>` | Place the session only in this availability zone, or fail. See [Availability Zones](https://docs.run.cloud/ios/zones.md). |
| `runcloud ios create --restore-state <state-id>` | Start from a saved state. `stateRestore.status` reports `restored`, `skipped`, or `failed`; the session is a clean device unless it is `restored`. |
| `runcloud android create` | Create an Android emulator session. |
| `runcloud android list` | List active Android sessions. Pass `--all` to include released sessions. |
| `runcloud android get <id>` | Get one Android session. |
| `runcloud android open-url <url> --id <id>` | Open an HTTP(S) URL or application deep link. |
| `runcloud android launch-app <id> <package> [--terminate-running]` / `terminate-app <id> <package>` | Launch or stop an installed app. See [Launch and Terminate Apps](https://docs.run.cloud/platform/app-lifecycle.md). |
| `runcloud android location set <id> --latitude <deg> --longitude <deg>` / `location clear <id>` | Set or clear the simulated GPS location. See [Simulated Location](https://docs.run.cloud/platform/simulator-location.md). |
| `runcloud android appearance <id> light\|dark` | Switch light or dark mode. See [Appearance, Permissions, and Push](https://docs.run.cloud/platform/simulator-device-controls.md). |
| `runcloud android permissions grant\|revoke\|reset <id> --app <package> <service...>` | Change app privacy permissions such as `camera`, `location`, and `notifications`. |
| `runcloud android settings <id> [--soft-keyboard auto\|hidden\|shown]` | Show the device settings, or set the on-screen keyboard mode: `auto` hides it while a hardware keyboard types, `hidden` and `shown` pin it. |
| `runcloud android accessibility-tree <id> [--json]` | Read the current typed accessibility hierarchy. `accessibility` is an alias. |
| `runcloud android camera inject <id> <video>` | Upload MP4 or MOV and loop it through the app camera. |
| `runcloud android microphone inject <id> <audio>` | Deliver supported audio through the app microphone. `mic` is an alias. |
| `runcloud android screenshot <id> --output <path>` | Save the current display as a validated PNG. |
| `runcloud android audio <id> --output <path> [--duration seconds]` | Record speaker output as stereo PCM WAV, for 0.1 to 60 seconds (default 10). |
| `runcloud android recording start\|list\|status\|stop\|download …` | Capture and retrieve MP4 screen recordings. |
| `runcloud android logs <id> [--tail N\|--follow]` | Read retained `logcat` or follow new entries. |
| `runcloud android delete <id> [--save-state [--wait]]` | Release an Android session. `--save-state` saves its apps and their data and prints the `stateId`; `--wait` waits until the state is ready. See [Saved state](https://docs.run.cloud/platform/simulator-state.md). |

`open-url` also accepts `--json`. Its successful JSON contains `ok`,
`platform`, `sessionId`, `device`, `leaseId`, and the exact, unnormalized `url`
argument. Percent-encode spaces, and quote a URL that contains `&`, `#`, or
other shell syntax:

```bash theme={null}
runcloud ios open-url \
  'runcloudproof://open/items%2F42?message=hello%20world#proof' \
  --id "$SESSION_ID" \
  --json
```

See [Open URLs and Deep Links](https://docs.run.cloud/platform/open-urls.md) for the Android equivalent,
authentication, encoding rules, the direct REST request, expected platform
behavior, and stable error codes.

Media injection accepts `--bundle-id`, `--name`, and `--json` on both platforms:

```bash theme={null}
runcloud ios camera inject "$SESSION_ID" ./quadrants.mp4 \
  --bundle-id com.example.CameraRecorder --json
runcloud android microphone inject "$SESSION_ID" ./tone.wav \
  --bundle-id com.example.AudioRecorder --json
```

Camera files must be MP4 or MOV. Microphone files may be AAC, M4A, MP3,
MP4-audio, or WAV. Each success response includes the retained media asset; use
`runcloud asset delete <asset-id>` after the source is no longer needed.

Saved states have their own group:

| Command | Description |
| - | - |
| `runcloud states get <state-id> [--wait]` | Show a saved state: `pending`, `ready`, or `failed`, its size, and `expiresAt`. `--wait` waits until it is no longer `pending`. |
| `runcloud states delete <state-id>` | Delete a saved state and every stored copy. |

`runcloud android create --restore-state <state-id>` works the same way as on iOS.

## Xcode builds

| Command | Description |
| - | - |
| `runcloud xcode build [path]` | Package source, submit a remote Xcode build, stream logs, and optionally download the artifact. |
| `runcloud xcode rebundle [path] --basis-build <id>` | Reuse a compatible Expo or React Native native shell and replace only its JavaScript bundle. |
| `runcloud xcode get <id>` | Read durable build state, artifact metadata, and an actionable failure. |
| `runcloud xcode list` | List builds visible to an organization member. |
| `runcloud xcode events` | Replay ordered build events after a durable cursor. |
| `runcloud xcode logs <id> [--follow]` | Read the sanitized live or retained log. |
| `runcloud xcode artifact <id>` | Download retained output through authenticated access. |
| `runcloud xcode cancel <id>` | Cancel queued or running work. |

`xcode build` supports project/workspace and shared-scheme selection, iOS and
watchOS device and simulator SDKs, Debug or Release, XcodeGen, React Native and
Expo preparation, optional Git initialization, safe build settings, manual or
cloud signing, App Store upload and automatic build numbering, custom output
upload, source include/exclude rules, additional files, and independent remote
and client wait timeouts. Pass `--no-wait` or `--detach` to return the durable
build ID without losing access to later status, logs, or output.

See [Build with Xcode](https://docs.run.cloud/ios/build-with-xcode.md) for executable unsigned and signed
examples, source packaging behavior, and intentional compatibility differences.

`ios create` and `android create` accept:

| Option | Description |
| - | - |
| `--model <model>` | Select a device model. For iOS: `iphone` (the default) or `ipad`. |
| `--region <region>` | Request a fleet region. |
| `--display-name <name>` | Add a human-readable session name. |
| `--org-id <id>` | Select the organization that owns the session. |
| `--label <key=value>` | Attach a label. Repeat the option for multiple labels. |
| `--install <file>` | Upload and install a local app artifact. Repeat for multiple artifacts. |
| `--install-asset <name-or-id>` | Install a previously uploaded asset. |
| `--inactivity-timeout <duration>` | Release an idle session after a duration such as `60s` or `3m`; use `none` to disable. |
| `--hard-timeout <duration>` | Set the maximum session lifetime, such as `10m` or `1h`. |
| `--codec <auto\|mjpeg\|webrtc>` | Select the viewer stream codec. |
| `--rm` | Release the session when the command exits. |
| `--json` | Return JSON instead of formatted terminal output. |

iOS sessions also support `runcloud ios tunnel <id>` and
`runcloud ios tunnel-status` for connecting a local development service to the
remote simulator. See [Run an iOS Simulator](https://docs.run.cloud/ios/run-simulator.md) for the full
workflow.

`ios logs` and `android logs` return the last 200 current-lease entries by
default. Set `--tail` from 1 to 1,000, use `--follow` for new entries, and add
`--json` for structured output. `--tail` and `--follow` are mutually exclusive.

### Simulator controls

Every control command is available under both `runcloud ios` and
`runcloud android` unless the capability table says otherwise:

| Command | Description |
| - | - |
| `tap <id> <x> <y>` | Tap normalized display coordinates. |
| `swipe <id> <from-x> <from-y> <to-x> <to-y>` | Swipe between two display points; accepts `--duration`. |
| `gesture <id> --steps <json>` | Run an ordered one- or two-finger gesture. |
| `type-text <id> <text>` | Enter US ASCII text. |
| `press-key <id> <key>` | Press a semantic key; accepts `--shift`, `--control`, `--alt`, `--meta`, and `--duration`. |
| `press-button <id> <button>` | Press a hardware or system button; accepts `--duration`. |
| `rotate <id> <orientation>` | Set an absolute display orientation. |
| `reload <id>` | Reload the foreground app. |
| `scroll <id> <delta-x> <delta-y>` | Send normalized scroll deltas; accepts a paired `--x` and `--y` anchor. |
| `toggle-software-keyboard <id>` | Toggle the on-screen keyboard. |
| `simulate-memory-warning <id>` | Send a memory-warning event. |
| `rotate-digital-crown <id> <delta>` | Request Digital Crown input. Current iOS Simulator and Android Emulator sessions return an unsupported-action error. |
| `set-render-debug <id> <option> <enabled>` | Change an iOS rendering diagnostic. Android returns an unsupported-action error. |

`rotate` accepts `portrait`, `portrait_upside_down`, `landscape_left`, and
`landscape_right`. Current iPhone Simulator sessions support `portrait` and the
two landscape values; requesting `portrait_upside_down` returns a structured,
non-retryable `unsupported_action` error. Android Emulator sessions support all
four values.

Coordinates are inclusive from 0 to 1, with `{0, 0}` at the top-left of the
current display. Every control accepts `--timeout <milliseconds>` (100 to
60,000, default 15,000), `--request-id <id>`, and `--json`.

Successful JSON contains `ok`, `requestId`, `sessionId`, `platform`, `action`,
`status`, timestamps, duration, and action-specific `result` data. Error JSON
contains the same correlation fields when available and an `error` object with
`code`, `message`, `retryable`, and optional details. Ctrl-C while a request is
pending exits with code 130 and an `interaction_cancelled` JSON error. A timeout
has status `timed_out` and code `interaction_timeout`; neither case releases the
session. Screenshot capture uses the parallel `screenshot_cancelled`,
`screenshot_timeout`, `screenshot_transport_error`, and
`screenshot_invalid_response` codes.

`accessibility-tree` accepts `--timeout` (20,000 milliseconds by default) and
`--json`. Without `--json`, it prints an indented tree. Its JSON is the stable
cross-platform schema documented in
[Read the Accessibility Tree](https://docs.run.cloud/platform/accessibility-tree.md). Ctrl-C returns
`accessibility_cancelled`; transport, timeout, and invalid-schema failures use
the corresponding `accessibility_*` code and never release the session.

See [Control a Simulator](https://docs.run.cloud/platform/simulator-interactions.md) for all keys,
buttons, gestures, platform differences, and copy-pasteable examples.

### Screen recordings

The recording command group is identical for iOS and Android:

| Command | Description |
| - | - |
| `recording start <session-id>` | Start one MP4 capture. Accepts `--idempotency-key`. |
| `recording list <session-id>` | List retained recordings for the session. |
| `recording status <session-id> <recording-id>` | Show status, lifecycle events, failures, and retrieval metadata. `get` is an alias. |
| `recording stop <session-id> <recording-id>` | Stop and finalize the capture. Safe to repeat. |
| `recording download <session-id> <recording-id> --output <path>` | Download and validate a ready MP4 through the authenticated API. |

Every command accepts `--json`. The download result contains the local path,
byte size, content type, and SHA-256 digest without printing a signed storage
URL. See [Record a Simulator](https://docs.run.cloud/platform/simulator-recordings.md) for lifecycle,
retention, retry, release, SDK, and REST examples.

## Assets and samples

| Command | Description |
| - | - |
| `runcloud asset push <file>` | Upload an app artifact for later installation. |
| `runcloud asset list [--org-id <id>]` | List organization Assets. |
| `runcloud asset pull <id>` | Download an uploaded asset. |
| `runcloud asset delete <id>` | Delete an uploaded asset. |
| `runcloud sample download ios` | Download the checksum-verified iOS onboarding app. |
| `runcloud sample download android` | Download the checksum-verified Android onboarding app. |

`asset` also accepts the plural alias `assets`; `sample` accepts `samples`.
Xcode outputs appear as immutable Assets and can be installed on any authorized
simulator host without exposing build-host credentials.

### Capabilities and mobile launches

| Command | Description |
| - | - |
| `runcloud capability create` | Mint a 60–3,600 second bearer token restricted to selected Assets, builds, or idempotency keys. |
| `runcloud capability list` | List capability metadata without returning secret token values. |
| `runcloud capability revoke <id>` | Revoke a capability immediately. |
| `runcloud mobile launch --asset <id> --idempotency-key <key>` | Create one retry-safe mobile session and install an existing Asset. |
| `runcloud mobile launch --build <id> --idempotency-key <key>` | Create one retry-safe iOS session from a successful simulator build. |
| `runcloud mobile get <id>` | Inspect the stable launch operation, session, or actionable failure. |

Use the same launch idempotency key after a timeout or lost response. A retry
returns the original operation and never consumes a second simulator. See
[Build with Xcode](https://docs.run.cloud/ios/build-with-xcode.md) for complete capability, event, Asset,
rebundle, and launch examples.

## Sandboxes

Sandboxes are the single compute noun. Persistence and a stable public
hostname are capabilities you turn on, not a separate product:

| Command | Description |
| - | - |
| `runcloud sandbox create` | Create a microVM sandbox. |
| `runcloud sandbox list` | List sandboxes; exposed ones show their hostname. `--state` and `--name` filter. |
| `runcloud sandbox get <id>` | Inspect a sandbox, including its public hostname when exposed. |
| `runcloud sandbox expose <id>` | Publish a guest port at a stable hostname, or change the published port. |
| `runcloud sandbox exec <id> <command...>` | Run a command through `/bin/sh -c`. |
| `runcloud sandbox shell <id>` | Open an interactive shell; paused sandboxes resume automatically. |
| `runcloud sandbox pause <id>` | Pause a sandbox so it can be resumed later. `stop` is an alias. |
| `runcloud sandbox resume <id>` | Resume a paused sandbox. `start` is an alias. |
| `runcloud sandbox rename <id> <name>` | Change a sandbox's label; pass `""` to clear it. |
| `runcloud sandbox logs <id>` | Show recent sandbox logs. |
| `runcloud sandbox rm <id>` | Permanently destroy a sandbox and its public hostname. `kill` and `terminate` are aliases. |
| `runcloud sandbox snapshot create <id>` | Capture a restorable snapshot. |
| `runcloud sandbox snapshot list` | List snapshots. |
| `runcloud sandbox snapshot rm <id>` | Delete a snapshot. |
| `runcloud sandbox restore <snapshot-id>` | Create a sandbox from a snapshot. |
| `runcloud sandbox setup-ssh <sandbox>` | Install a dedicated key and add the exposed sandbox to SSH config. |
| `runcloud sandbox ssh <sandbox> [command...]` | Open a shell or run a command over SSH. |
| `runcloud sandbox cp <sandbox> <source> <destination>` | Copy files with SCP; prefix the remote path with `:`. |
| `runcloud sandbox code <sandbox> [path]` | Open the exposed sandbox with VS Code Remote SSH. |
| `runcloud sandbox domain add\|list\|status\|rm` | Manage custom domains on an exposed sandbox. |

`sandbox create` accepts:

| Option | Description |
| - | - |
| `--image <ref>` | Select the base image. Defaults to `runcloud/agent-base`, including with `--expose`. |
| `--region <region>` | Request a placement region. |
| `--name <name>` | Add a human-readable name. With `--expose`, it is the hostname prefix `<name>-box.run.cloud`. |
| `--org <id>` | Select the owning and billing organization. |
| `--cpu <cores>` | Set the vCPU allocation; fractional values such as `0.5` are supported. |
| `--memory <mb>` | Set the memory allocation in MiB. |
| `--disk <gb>` | Set root disk capacity in GiB. |
| `--idle-pause <seconds>` | Pause after inactivity; use `0` to keep the sandbox running. |
| `--timeout <seconds>` | Set the maximum sandbox lifetime. Defaults to `300`; use `0` to disable. |
| `--persistent` | Never pause when idle. Same as `--idle-pause 0`; also disables the default lifetime unless `--timeout` is explicit. |
| `--expose <port>` | Publish a guest port at `<name>-box.run.cloud`. Implies `--persistent` and requires `--name`. |
| `--no-wait` | Return after scheduling instead of waiting for the sandbox to finish building and starting. |
| `--json` | Return JSON instead of formatted terminal output. |

`sandbox expose` accepts `--port <port>` (default 3000), `--name <name>` for a
first exposure (defaults to the sandbox name), and `--reconcile` to retry
hostname routing.

See [Persistent Sandboxes](https://docs.run.cloud/compute/boxes.md) for creation and routing examples.

### Images

| Command | Description |
| - | - |
| `runcloud image create --ref <ref>` | Register (build-once) an OCI image ref, wait until ready, and exit non-zero if the build fails or times out. |
| `runcloud image create --ref <ref> --no-wait` | Schedule the build and return immediately with the registration row. |
| `runcloud image list` | List images your organization has registered, with state and digest. |
| `runcloud image refresh <ref>` | Move a tag's pin to its current upstream digest; prints `old_digest`/`new_digest`. |

See [Custom Images](https://docs.run.cloud/compute/images.md) for the full workflow, including CI pre-baking.

### Deprecated: `runcloud box`

Earlier releases modeled an exposed persistent sandbox as a separate `box`
noun. Every `runcloud box …` command still works as a deprecated alias and
prints a pointer to its `sandbox` equivalent:

| Deprecated | Use instead |
| - | - |
| `runcloud box create <name>` | `runcloud sandbox create --expose <port> --name <name>` |
| `runcloud box create <name> --sandbox <id>` | `runcloud sandbox expose <id> --name <name>` |
| `runcloud box list` | `runcloud sandbox list` |
| `runcloud box get <id>` | `runcloud sandbox get <sandbox-id>` |
| `runcloud box port <id> <port>` | `runcloud sandbox expose <sandbox-id> --port <port>` |
| `runcloud box route <id>` | `runcloud sandbox expose <sandbox-id> --reconcile` |
| `runcloud box rm <id>` | `runcloud sandbox rm <sandbox-id>` |
| `runcloud box setup-ssh\|ssh\|cp\|code\|domain …` | The same verb under `runcloud sandbox …` |

SSH config blocks written by older releases keep connecting: the `box proxy`
transport remains supported, and re-running `setup-ssh` rewrites the block to
the current form.

## Demos and agent skills

| Command | Description |
| - | - |
| `runcloud demo run [name]` | Run a bundled demo. The default is `eight-device-mosaic`. |
| `runcloud demo init [name] [directory]` | Scaffold a standalone demo project. |
| `runcloud skills install` | Install the run.cloud skill for supported coding agents. |

Available demos are `eight-device-mosaic` and `live-camera-relay`. Pass `--open`
to open the viewer automatically.

## Automation

Commands that return structured data accept `--json`. A typical shell workflow
captures IDs rather than copying placeholders:

```bash theme={null}
SANDBOX_ID=$(runcloud sandbox create --json | jq -r '.id')
trap 'runcloud sandbox rm "$SANDBOX_ID"' EXIT

runcloud sandbox exec "$SANDBOX_ID" "echo hello"
```

See the [CLI quickstart](https://docs.run.cloud/cli/quickstart.md) for complete runnable examples.


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