Skip to main content

kapi pack

kapi pack -o <snapshot.kpz>

Snapshot a kapi project's working state — the block-store overlays, the authoritative content memory, and the terms store — into a portable .kpz. Regenerable caches and secrets are excluded. Move the snapshot to another machine and "kapi unpack" it to resume work there.

Commandpack
Groupadvanced
Try it

Runs in your browser against a small sample file. Edit the command before running, or press Run to execute it as shown.

kapi pack -o snapshot.kpz # a kapi project
Flags
FlagTypeDefaultDescription
--colorstringautocolorize output: auto, always, never
--jqstringfilter JSON output through a jq expression (implies --json)
--jsonboolfalseOutput in JSON format
--logboolfalsestamp a tamper-evident provenance line into the snapshot's advisory history
--output, -ostringoutput .kpz snapshot path
--output-formatstringOutput format: text (alias: table), json, yaml
--project, -pstringpath to a kapi.yaml project recipe or its directory (auto-discovered from cwd if omitted)
--textboolfalseOutput in text format (default)
--with-sourceboolfalseembed raw source bytes in the .kpz (default: identity + skeleton only)
More examples
kapi pack work.kpz # eject a .kpz workspace's cache

← Back to the Command Reference