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 verify

Recompute manifest hashes and report ok | corrupt

Recompute the sha256 of every file under the snapshot's data/ tree and compare against the recorded hash. Reports ok only when all entries match.

Who it's for: Power devs validating that a snapshot is safe to restore; CI integrity checks.

When to use it: Before ak backups restore; periodic audits.

What changes on disk: Read-only.

Usage

ak backups verify <id> [flags]

Examples

ak backups verify 20260426T123005Z-deadbeef
ak backups verify 20260426T123005Z-deadbeef --json

Flags

FlagDescription
-h, --helphelp for verify
--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)
5snapshot id not found
1snapshot is corrupt

On this page