CLI Reference
This is the public command map for the current CLI surface.
Core storage commands
init <path>— create a databaseput <path> <key> <value>— insert or update a keyget <path> <key>— read a valuedelete <path> <key>— remove a keyscan <path>— print all key-value pairsstat <path>— print database statistics
Inspection commands
dump <path>— pretty-print the header and optionally a pagehex <path> --page N— raw page or header hex dumpverify <path> [--explain]— authenticate and validate pagesview <path> [--watch]— open the interactive read-only viewerinspect ... --json— structured machine-readable inspection output
Inspect subcommands
inspect header <path>inspect verify <path>inspect pages <path>inspect page <path> --page Ninspect wal <path>inspect tree <path>inspect protectors <path>
Some inspect commands support explicit unlock options such as --stdin-passphrase, --stdin-recovery-key, and --keyfile.
Backup and key management
backup <src> <dest>— copy a database and its WAL sidecarprotector add-passphrase <path>protector add-recovery-key <path>protector add-keyfile <path> <keyfile>protector remove <path> --slot Nprotector list <path>rekey-kek <path> --slot N— cheap KEK rotation for one slot
Viewer keys
The TUI viewer currently supports:
/— filter page listn/N— next or previous match:— jump to pageTab— switch focusj/kor arrow keys — move within the active pane1to6— switch panelsw— toggle watch modeq— quit
Exit behavior
The CLI distinguishes broad failure classes through structured statuses and exit codes. For machine-facing flows, prefer inspect ... --json over parsing human-readable stderr.