Skip to content

flow logs ​

View execution history and logs.

Synopsis ​

View execution history recorded in the data store, with associated log output. Optionally filter by executable reference.

shell
flow logs [ref] [flags]

Examples ​

shell
flow logs                          # all history
flow logs --last                   # most recent entry with full output
flow logs --status failed          # only failed runs
flow logs --status running         # only in-progress runs
flow logs --source mcp             # only runs launched by an AI/MCP client
flow logs --session <id>           # everything one agent session ran
flow logs run build                # history for 'run build' executable
flow logs --running                # list active background processes
flow logs -o json --tail 50        # include the last 50 lines of each run's output
flow logs --last --grep ERROR      # last run, only lines matching /ERROR/

Options ​

FlagTypeDescription
--clientstringFilter history by the client that launched the run (e.g. 'claude', 'cursor').
--contentInclude each record's log output (json/yaml only; already shown for --last text output).
--grepstringInclude only log lines matching this regular expression (implies --content).
-h, --helphelp for logs
--idstringShow only the run with this ID.
--lastPrint the last execution's logs
--limitintMaximum number of records to display.
--max-bytesintCap included log output to the last N bytes, keeping the tail (implies --content).
-o, --outputstringOutput format. One of: yaml, json, or tui.
--runningShow only active background processes.
--sessionstringFilter history to a single provenance session ID (e.g. an AI agent session).
--sincestringFilter history to entries after a duration (e.g. 1h, 30m, 7d).
--sourcestringFilter history by run origin, e.g. 'cli', 'desktop' or 'mcp'.
--statusstringFilter history by status (running, completed, failed, or cancelled; success/failure accepted as aliases).
--tailintInclude only the last N lines of log output (implies --content).
-w, --workspacestringFilter history by workspace name.

Options inherited from parent commands ​

FlagTypeDescription
-L, --log-levelstringLog verbosity level (debug, info, fatal) (default "info")
--syncSync flow cache and workspaces

See also ​

  • flow — flow is a command line interface designed to make managing and running development workflows easier.
  • flow logs attach — Stream log output from a running background process by run ID.
  • flow logs clear — Clear execution history and logs.
  • flow logs kill — Terminate a running background process by run ID.