# logs

## Usage

```bash
bdy sandbox exec logs [options] <identifier> <command-id>
```

## Arguments

| **Argument** | **Description** |
| :--- | :--- |
| `identifier` | Sandbox identifier (required) |
| `command-id` | Command ID (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 |
| `--wait` | Wait until operation completes |
| `-h, --help` | display help for command |

## Examples

### Show logs from command

```bash
bdy sb exec logs sandbox-identifier command-id
```

### Show logs from command and wait for it to complete

```bash
bdy sb exec logs sandbox-identifier command-id --wait
```


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