Gå til hovedinnhold

kapi memory export

kapi export

Export the content memory to TMX 1.4 (default) or the native .memory.json bundle.

TMX: each entry is written as a single <tu> with one <tuv> per language variant present (or the subset requested via --locales). Inline markup is preserved as TMX <ph>/<bpt>/<ept>/<it>/<hi>. TMX is the lossy interchange tier — entity mappings, provenance origins, properties, and notes are dropped.

bundle (--format bundle, or a -o path ending in .memory.json): the deterministic, lossless native serialization — the right form for committing a content memory to git and for seeding a fresh content memory exactly. It stays plain JSON, so it reviews line by line in a diff. --locales does not apply.

Commandmemory 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 memory export
Flags
FlagTypeDefaultDescription
--filestringexplicit path to resource file
--formatstringautooutput format (auto, tmx, bundle); auto selects by the -o extension
--localboolfalseuse resource in current directory
--localesstringcomma-separated locale subset (default: all variants present)
--namestringnamed resource in KAPI_HOME (e.g. --name project-terms)
--output, -ostringoutput file (default: stdout)

← Back to the Command Reference