CliFi

CLI Reference

clifi logs

View, stream, and query execution logs from previous CliFi runs.

Synopsis

clifi logs [run-id] [flags]

Description

The logs command retrieves execution logs from CliFi's internal log store. By default, it shows the most recent run. Use a run ID to inspect a specific execution, or filter by task, environment, or time range.

In watch mode, logs stream in real-time for currently running workflows. This is useful for tailing CI/CD pipelines or long-running deployments.

Flags

FlagShorthandDefaultDescription
--task-tFilter by task name
--env-eFilter by environment
--since1hShow logs since time (e.g., 1h, 30m, 1d)
--level-linfoMinimum log level: debug, info, warn, error
--watch-wfalseStream logs in real-time
--output-oprettyOutput format: pretty, json, or raw

Examples

Show logs from the latest run

bash
clifi logs

Show logs for a specific task

bash
clifi logs --task deploy

Stream logs in real-time

bash
clifi logs --watch

Export logs as JSON

bash
clifi logs --output json > logs.json

Query logs from the last 24 hours

bash
clifi logs --since 1d --level warn

See also