Skip to content

kew export

Export run history to JSON or CSV for backup or analysis.

Usage: kew export [OPTIONS]

Options:
  -f, --format TEXT  Export format: json or csv [default: json]
  -o, --output PATH  Output file path (default: stdout)
  --since TEXT       Only export records after this date (ISO 8601, e.g. 2025-01-01)
  --purge            After export, delete records older than retention_days
                     (requires retention_days > 0 in kew.toml)

kew export demo

Examples:

# Export all runs as JSON to stdout
kew export

# Export as CSV to file
kew export -f csv -o runs.csv

# Export only recent runs
kew export --since 2025-01-01