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

# cassian logs

> View container output and background task logs.

## Usage

```bash theme={null}
cassian logs
cassian logs --task <id>
cassian logs --follow
```

## Modes

### Default list background tasks

Shows all tasks started with `cassian exec --detach`.

```
$ cassian logs
  Background Tasks

  TASK        STATUS      EXIT
  a1b2c3d4    done        0
  e5f6g7h8    running     -

  View task output: cassian logs --task <id>
```

### Task output

Show stdout/stderr from a specific background task.

```bash theme={null}
cassian logs --task a1b2c3d4
```

### Streaming

Stream live output from the container. Useful for watching training progress.

```bash theme={null}
cassian logs --follow
cassian logs -f -n 200
```

## Options

| Flag              | Description                        | Default |
| ----------------- | ---------------------------------- | ------- |
| `--task <id>`     | Show output from a background task |         |
| `-f, --follow`    | Stream logs in real time           | false   |
| `-n, --lines <n>` | Lines to show (with --follow)      | 100     |
