Live log streaming and exports for Depot CI
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.
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.
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.
depot ci logs <attempt-id> --output-file logs.txt
depot ci logs <attempt-id> --output json --output-file logs.jsonlFor details, see the Depot CI CLI reference.