Gå til hovedinnhold

kapi context export

kapi export

Write everything this project's store holds as context into a single file: the terms, the voice profiles, the wording already approved, and the decision record.

It is the backup, and the way to move a project's context to another machine. Nothing is lost and nothing is flattened: every part travels in the form kapi reads it back from, and "kapi context restore" puts it into a store with the same identities it left with.

Withheld originals are never in it. They stay on the machine that redacted them, and no flag puts them in a file meant to be copied.

The decision record in the file is the project's own, written from what the ledger holds at the moment of the export.

With --workspace it writes every project you have worked on here instead of this one, which is the backup for the context of a whole machine. Add --dry-run to see what that file would hold before you write it.

Commandcontext export
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 context export -o context.kpz
Flags
FlagTypeDefaultDescription
--dry-run boolfalsewith --workspace, report what the file would hold and write nothing
--output , -ostringfile to write
--project , -pstringpath to a kapi.yaml project recipe or its directory (auto-discovered from cwd if omitted)
--workspace boolfalsewrite every project you have worked on here, not just this one
More examples
kapi context export -o backups/acme-context.kpz --json
kapi context export --workspace --dry-run
kapi context export --workspace -o backups/everything.kpz

← Back to the Command Reference