kapi exec recycle
kapi recycle [files...]Recycle
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 exec recycle app.xliff --target-lang frFlags
| Flag | Type | Default | Description |
|---|---|---|---|
| --concurrency, -j | int | 0 | max parallel files (0 = auto) |
| --downgrade-identical-best-matches | bool | false | Reduce score by 1%% when multiple identical exact matches are returned |
| --encoding, -e | string | charset the input is read in; a byte-order mark in the file wins (default: the project's defaults.encoding, then UTF-8) | |
| --engine | string | format engine for detected files: native or a plugin name (default: native, then plugins) | |
| --fail-on-unknown | bool | false | exit with error if any file cannot be processed (default: skip with warning) |
| --fill-if-target-is-empty | bool | false | Fill the target only when it has no existing content |
| --fill-target | bool | true | Copy the best translation candidate into the target content |
| --fill-target-threshold | int | 95 | Minimum match score required to fill the target (100 = exact only) |
| --format, -f | string | override input format detection | |
| --fuzzy-threshold | int | 70 | Minimum score for a match; the fuzzy path below 100 is retiring |
| --json | bool | false | output results as JSON |
| --make-tmx | bool | false | Create a TMX file with all leveraged matches |
| --map, -m | stringArray | map glob pattern to format (e.g. '*.docx=okf_openxml:test') | |
| --memory | string | named memory or path to a .db (defaults to the project content memory) | |
| --no-query-threshold | int | 101 | Skip content-memory query if existing candidate scores at or above this value (101 = always query) |
| --no-warn | bool | false | suppress warnings for skipped files |
| --output, -o | string | output path template (variables: {dir}, {name}, {ext}, {lang}) | |
| --output-dir | string | write outputs under DIR/{lang}/ (default: the target-language file beside the input, mirroring its locale layout; with no target language, the input itself) | |
| --pack | bool | false | when transforming a .kpz, also eject the result to the .kpz (auto-pack) |
| --parallel-blocks | int | 0 | fan out block processing across N goroutines (0 = off) |
| --print-ops | bool | false | write no file and print the change set the run would apply, for kapi apply |
| --progress | bool | false | show progress bar |
| --project, -p | string | path to a kapi.yaml project recipe or its directory (auto-discovered from cwd if omitted) | |
| --source-lang | string | source language (e.g. en, en-US; defaults to the project's source_language, else en) | |
| --strict | bool | false | alias for --fail-on-unknown |
| --target-lang | string | target language (e.g. fr, de-DE); one per run | |
| --tmx-path | string | File path for the generated TMX document | |
| --trace | string | write flow trace JSON to file (for flow visualization) |
More examples
kapi exec recycle messages.json --target-lang de← Back to the Command Reference