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

# stackshift sandbox exec

> Run and stream a recorded sandbox execution

<Note>
  This page is generated from the StackShift CLI command definitions.
</Note>

Run and stream a recorded sandbox execution

```
stackshift sandbox exec SANDBOX -- COMMAND [ARG...] [flags]
```

### Options

```
      --background            return after execution is accepted
      --command-timeout int   remote timeout in seconds (default 600)
      --cwd string            working directory (default "/workspace")
  -h, --help                  help for exec
      --shell                 interpret the command using the template shell
      --user string           template-allowed OS user (default "sandbox")
```

### Options inherited from parent commands

```
      --api-url string       StackShift API URL
      --app string           application name or ID
      --color string         color output: auto, always, or never (default "auto")
      --debug                show request diagnostics
      --environment string   project environment
  -o, --output string        output format: table, json, yaml, or name (default "table")
      --profile string       configuration profile
      --project string       project name or ID
  -q, --quiet                suppress progress output
      --timeout duration     request timeout (default 30s)
      --token-file string    mode-0600 token file
      --token-stdin          read a CI token from stdin
  -y, --yes                  confirm risky operations
```

### SEE ALSO

* [stackshift sandbox](/cli-reference/stackshift_sandbox)	 - Operate isolated sandboxes through the public API
