# tuist sandbox exec

Run a shell command in a sandbox, resuming it first when paused, and stream its output.

## Arguments

### sandbox-id

Sandbox UUID.

```bash
tuist sandbox exec [sandbox-id]
```

### account `Optional`

Account handle. Defaults to the account in the project's full handle.

```bash
tuist sandbox exec --account [account]
```

### path `Optional`

Project directory.

```bash
tuist sandbox exec --path [path]
tuist sandbox exec -p [path]
```

### json `Optional`

Return the response as JSON. Unknown optional values are omitted.

```bash
tuist sandbox exec --json
```

### cwd `Optional`

Working directory in the sandbox. Defaults to the sandbox's workspace.

```bash
tuist sandbox exec --cwd [cwd]
```

### env `Optional`

An environment variable as NAME=VALUE. Repeatable. Never stored.

```bash
tuist sandbox exec --env [env]
```

### timeout `Optional`

Kill the command after this many seconds (1–21600). Defaults to one hour.

```bash
tuist sandbox exec --timeout [timeout]
```

### wait `Optional`

Return after this many seconds (1–21600) if the command is still running, leaving it running, and exit with 75.

```bash
tuist sandbox exec --wait [wait]
```

### attach `Optional`

Continue a command started earlier, by its ID, instead of starting one.

```bash
tuist sandbox exec --attach [attach]
```

### stdout-offset `Optional`

With --attach, the stdout bytes already received. Defaults to 0, the whole output.

```bash
tuist sandbox exec --stdout-offset [stdout-offset]
```

### stderr-offset `Optional`

With --attach, the stderr bytes already received. Defaults to 0, the whole output.

```bash
tuist sandbox exec --stderr-offset [stderr-offset]
```

### command `Optional`

The command to run, after `--`.

```bash
tuist sandbox exec [command]
```
