# sandscale logs

> sandscale logs: Logs of a workspace, a sandbox or a build host run. Usage, options and examples, generated from the CLI.

Logs of a workspace, a sandbox or a build host run.

[All commands](https://sandscale.dev/docs/reference/cli)

| Command | What it does |
| --- | --- |
| `workspace` | The workspace agent's or a build's logs |
| `sandbox` | A sandbox's runs, or one run's output |
| `build` | One build host run's log |

## `sandscale logs workspace`

The workspace agent's or a build's logs.

```
sandscale logs workspace: The workspace agent's or a build's logs

Usage:
  sandscale logs workspace NAME|ID [--build ID|latest] [--follow] [--after N] [--limit N] [--json]
```

## `sandscale logs sandbox`

A sandbox's runs, or one run's output.

```
sandscale logs sandbox: A sandbox's runs, or one run's output

Usage:
  sandscale logs sandbox ID [--run RUN_ID] [--json]
```

## `sandscale logs build`

One build host run's log.

```
sandscale logs build: One build host run's log

Usage:
  sandscale logs build LEASE RUN
```

## Examples

```
sandscale logs workspace payments-dev --follow
sandscale logs sandbox sbx_9 --run run_3
```

This page is generated from the sandscale CLI's command registry. Do not edit it by hand.

---
Source: https://sandscale.dev/docs/reference/cli/logs
