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

# simulation-snapshots create

> Create Simulation Snapshot

DEPRECATED: Use API Box for APIs and Web Box for web apps

Starts saving a running Simulation's current state and returns the Snapshot with status creating. Poll it until it is ready, or failed with an error. Saving closes the Simulation's open event streams and WebSockets and does not change its state; while it saves, an advance returns 409 clock\_conflict, and a stop waits for it. Create Simulations from a ready Snapshot with snapshot\_id; it outlives its Simulation. A stopped Simulation returns 409 simulation\_stopped. Reuse the Idempotency-Key to retry safely.

Deprecated. Use API Box for APIs and Web Box for web apps.

```bash theme={null}
continuous simulation-snapshots create [flags]
```

## Examples

```bash theme={null}
continuous simulation-snapshots create --name before-refund --simulation-id sim_01J8Z5X4K7M2N9P0Q1R2S3T4V6
```

## Flags

**--body** `string`

Request body as JSON (alternative to individual flags). Can also be provided via stdin.

**--idempotency-key, -i** `string`

Optional key for retrying this create safely. A retry with the same key and request returns the original result with its status; the same key with a different request returns 409 idempotency\_conflict. Without a key, each request creates a new resource.

**--name, -n** `string` *required*

Snapshot name.

**--simulation-id, -s** `string` *required*

ID of the running Simulation to save.

Global flags apply to every command. See [Global flags](https://docs.continuouslabs.ai/cli/global-flags.md).


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