AgentKit
ReferenceCLI commands
BetaYou are reading docs for the beta channel (2.4.1-beta.1) — updated automatically on every beta release.Switch to stable →

CLI commands

ak backups list

List all rollback snapshots (newest first)

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.

What changes on disk: Read-only.

Usage

ak backups list [flags]

Examples

ak backups list
ak backups list --json

Flags

FlagDescription
-h, --helphelp for list
--jsonEmit machine-readable JSON (implies --no-interactive)
--no-interactiveDisable interactive prompts (CI-safe)
-q, --quietSuppress non-error output on stderr
-V, --verboseExtra diagnostic output on stderr (loses to --quiet)
-y, --yesAssume yes for all prompts

Output modes

ModeBehavior
prettydefault on TTY (colors, ASCII markers)
plainauto when stdout piped or --no-interactive
json--json (single-object envelope, NDJSON-safe)

Exit codes

CodeMeaning
0success
1runtime error
2invalid flags
3user-cancel (SIGINT, prompt-cancel)

On this page