# command

## Usage

```bash
bdy sandbox exec command|cmd [options] <identifier> <command>
```

## Arguments

| **Argument** | **Description** |
| :--- | :--- |
| `identifier` | Sandbox identifier (required) |

## Options

| **Option** | **Description** |
| :--- | :--- |
| `-w, --workspace <domain>` | Workspace URL handle. Can be set via variable: BUDDY_WORKSPACE |
| `-p, --project <name>` | Project name. Can be set via variable: BUDDY_PROJECT |
| `--runtime <runtime>` | Command runtime: BASH, JAVASCRIPT, TYPESCRIPT, PYTHON (default: BASH) |
| `--wait` | Wait until operation completes |
| `-h, --help` | display help for command |

## Examples

### Ran command in sandbox

```bash
bdy sb exec command sandbox-identifier "ls -la"
```

### Ran command in sandbox and wait for it to complete

```bash
bdy sb exec command sandbox-identifier "sleep 10" --wait
```


---
Original source: https://buddy.works/docs/cli/sandbox/exec/command