CLI commands
ak backups list
List all rollback snapshots (newest first)
ak backups list
List all rollback snapshots (newest first)
Synopsis
What it does: Enumerate every snapshot under ~/.agentkit/backups/, ordered newest first. Stray files / dirs that do not match a valid snapshot id are silently skipped.
Who it's for: Power devs picking which snapshot to restore; CI scripts.
When to use it:
Before ak backups restore to discover available IDs; in scripts to inventory state.
Examples: ak backups list ak backups list --json
What changes on disk: Read-only.
Output modes: pretty default on TTY (colors, ASCII markers) plain auto when stdout piped or --no-interactive json --json (single-object envelope, NDJSON-safe)
Exit codes: 0 success 1 runtime error 2 invalid flags 3 user-cancel (SIGINT, prompt-cancel)
ak backups list [flags]Options
-h, --help help for list
--json Emit machine-readable JSON (implies --no-interactive)
--no-interactive Disable interactive prompts (CI-safe)
-q, --quiet Suppress non-error output on stderr
-V, --verbose Extra diagnostic output on stderr (loses to --quiet)
-y, --yes Assume yes for all promptsSEE ALSO
- ak backups - Manage rollback snapshots