# Live log streaming and exports for Depot CI (https://depot.dev/changelog/2026-05-06-depot-ci-logs-streaming-and-exports)

> Published 2026-05-06

The `depot ci logs` command picks up several new flags for inspecting and saving CI logs from the terminal.

`--follow` (or `-f`) streams live logs as they're produced. If you pass a run or job ID that hasn't started yet, the command waits up to 30 seconds for the latest attempt to come up before streaming.

```bash
depot ci logs <job-id> --follow
```

`--output json` emits logs as newline-delimited JSON events. Each `line` event includes step metadata (step key, ID, name, line number), UTC timestamps, and stream type (`stdout` or `stderr`). Combine with `--follow` to also receive `status` events for attempt status changes and a final `end` event when the stream closes. `--timestamps` prefixes plain log lines with UTC timestamps.

```bash
depot ci logs <attempt-id> --output json
depot ci logs <attempt-id> --follow --output json
depot ci logs <attempt-id> --timestamps
```

`--output-file <path>` downloads a finite log export to a file. Combine it with `--output json` for a JSONL export.

```bash
depot ci logs <attempt-id> --output-file logs.txt
depot ci logs <attempt-id> --output json --output-file logs.jsonl
```

For details, see the [Depot CI CLI reference](/docs/cli/reference/depot-ci).

## For AI Agents

The full site index is at [llms.txt](https://depot.dev/llms.txt). Append `.md` to any documentation, blog, changelog, or customer URL to fetch its markdown source directly.