Command Reference
Every command in the kapi CLI, generated from the binary so the flags and synopses match the version you have installed. Select a command to read its description, flags, and examples. Commands that run entirely in the browser carry a Run button that executes them against a small sample file. AI and MT commands carry a Demo badge and run against a built-in stub, so their output is illustrative rather than from a real model. Commands that need network access, an API key, or local system access point to a walkthrough instead. Each command has a shareable link.
The groups are the ones the installed kapi prints in its help. In every project, kapi --help shows Work, led by look, check, fix, rules, connect, share and open, and Assets. Languages appears there when the recipe declares a target language, and kapi help languages lists it in any project. Advanced is listed under kapi help --all. Every command runs whether or not the default help lists it. Below, each group lists its commands alphabetically.
168 of 168 commands
Work
addRunAdd file patterns to the project's contentapplyRunApply a change set: content edits, review decisions, terms and recipe fieldscheckRunVerify content against its rules and fail on a failing finding, like tests over codeconnectWatchPut an assistant on this project: rules as it starts, kapi check on every editcontextRunAsk what applies before you write a filecontext atlasRunPrint the project's context records by axis and over timecontext logRunList what was recorded, or what this session recordedcontext noteRunRecord what you noticed, or what a person changedcontext placesRunLook up the places a geo axis takescontext resetRunGo back to how the context stood at an earlier pointcontext reviewRunDecide about the suggestions waiting for youcontext searchRunAsk what the project says about a word or phrasecontext suggestRunFile what kapi can see in the files as suggestions for you to decidecontext syncRunShare the context with the rest of the teamfixRunApply the fixes kapi can make on its owninitRunScaffold a new kapi project in the current directorylookRunSee the project, or one file with its rules and findings in placelsRunList the files the project's content tracksopenWatchOpen this folder in Kapi DesktoprmRunRemove file patterns from the project's contentrulesRunDecide, list, narrow or drop the rules your project keepsrules dropRunSet a suggestion or a kept rule asiderules findRunFind the rules, suggestions and decisions that mention a wordrules keepRunKeep a suggestion as a rulerules listRunList the rules in force and the suggestions waitingrules narrowRunLimit a kept rule to one collection, named directly or by a foldershareWatchShare the rules with your teamstatusRunShow how ready the project's content is against its gatesupRunBring the project up to date: run the default flow and stop where a gate holds content back Assets
credentialsWatchManage saved AI provider credentialscredentials addWatchSave a named AI provider credentialcredentials listWatchList saved credentialscredentials removeWatchRemove a saved credentialcredentials testWatchTest that a credential's API key is accessiblemodelsWatchManage attached LLMs and ML modelsmodels defaultWatchShow or set the default AI model (and its provider)models listWatchList every model kapi can use (Ollama, plugin assets, cloud providers)models ollamaWatchManage the local Ollama runtime for on-device AI toolsmodels ollama installWatchPrint how to install the Ollama runtime (or install it on macOS with --run)models ollama listWatchList models installed on the Ollama servermodels ollama pullWatchDownload a model onto the Ollama servermodels ollama statusWatchShow whether the Ollama runtime is installed, running, and which models are presentmodels pruneWatchRemove a model (Ollama model, or a cached plugin asset)models pullWatchDownload a model (Ollama model, or a plugin asset)models setupWatchInteractively pick and verify the default AI providertermsRunManage terminologyterms expandDemoPropose the surface forms each term takes (writes the terms)terms exportRunExport terms to CSV, JSON, TBX, or a native .terms.json bundleterms importRunImport terms from CSV, JSON, TBX, or a native .terms.json bundleterms listRunList named terms stores in KAPI_HOMEterms lookupRunLook up a term in the terms storeterms occurrencesRunShow where a term is used in the project's contentterms searchRunSearch concepts in the terms storeterms statsRunShow terms statisticsterms validateRunCheck terms for structural problems and missing formsvoiceRunKeep AI-generated content in voice (tone, style, terminology)voice checkDemoScore text against a voice profilevoice editRunEdit a voice profile in your editorvoice importRunImport a profile YAML into the local voice storevoice newRunScaffold a voice profile YAML to fill in (optionally seeded from a starter pack)voice packRunInstall a built-in starter pack into the local voice storevoice profilesRunList voice profiles (local store + built-in packs)voice rewriteDemoSubstitute forbidden/competitor terms for their approved wording (offline)voice showRunShow a voice profile as a guidevoice validateRunValidate a voice profile YAML (structure, enums, regex, terms) Advanced
completionRunGenerate shell completion scriptconfigRunGet or set kapi configuration (app config subcommands, recipe keys positionally)config getRunPrint a single config valueconfig listRunList every configured value, including plugin namespacesconfig pathRunPrint the config file path (of kapi, or of a plugin namespace)config setRunSet a config value (persists to the global config file, or a plugin's when the key is namespaced)config unsetRunRemove a config value, restoring the built-in defaultexecRunExecute one registry tool on files (the raw layer under the porcelain verbs)exec case-transformRunCase Transformexec create-targetRunCreate Targetexec diff-leverageRunDiff Leverageexec dnt-checkRunDo-Not-Translate Checkexec encoding-detectRunEncoding Detectexec entity-extractDemoDetect named entities (people, organizations, products, locations) with an LLM, a local NER model, or bothexec external-commandRunExternal Commandexec inline-codes-removeRunInline Codes Removeexec media-refineDemoRe-read low-confidence OCR/ASR lines with a configurable multimodal LLMexec placeholder-checkRunPlaceholder Checkexec pseudo-translateRunPseudo Translateexec qaDemoCheck translation quality with deterministic rules or an LLM (select with --mode)exec recycleRunRecycleexec redactRunReplace sensitive spans with protected placeholders before processingexec remove-targetRunRemove Targetexec reviewDemoReview translations with scoring using an LLM providerexec scriptRunScriptexec search-replaceRunSearch and Replaceexec segmentationDemoSplit source text into sentence or chunk segments (stand-off overlay)exec term-checkRunTerminology Checkexec term-extractDemoExtract candidate terminology from content using an LLM providerexec translateDemoTranslate content with an LLM or machine-translation provider (select an engine, then a provider)exec translate-afterRunTranslate Afterexec unredactRunRestore original values into redacted content after processingexec voice-checkDemoCheck text against a voice profile using an LLM providerexec voice-inferDemoInfer a draft voice profile from a content corpus using an LLM providerexec whitespace-correctRunWhitespace Correctexec xml-validationRunXML ValidationextractRunEmit a bilingual file for a translator: native .kpz or XLIFF/POflowsRunList available flowsflows listRunList available flowsformatsRunList supported file formatsformats explainRunSay which format reads a file, and whyformats infoRunShow detailed information about a formatformats listRunList supported file formatsformats schemaRunOutput JSON Schema for a formatinfoRunReport a project's packable state, or a .kpz archive's contentsinspectRunRead any format into content blocks, with the references and revisions an edit namesmcpWatchStart an MCP server (stdio) for assistants writing in this projectmergeRunApply a returned bilingual file (.kpz/XLIFF/PO) back onto the project sourcepackRunSnapshot a kapi project's working state into a .kpzpluginWatchInstall and manage manifest-driven pluginsplugin doctorWatchRun health/self-checks on installed pluginsplugin infoWatchShow details for an installed pluginplugin installWatchInstall a plugin from the registryplugin listWatchList installed pluginsplugin pruneWatchRemove retired plugins that are still installedplugin rebuild-cacheWatchForce a rebuild of the plugin dispatch cacheplugin registryWatchManage plugin registriesplugin registry addWatchAdd a registry to global configplugin registry listWatchList configured registriesplugin registry removeWatchRemove a registry from global configplugin removeWatchRemove an installed pluginplugin searchWatchSearch the registry for pluginsplugin updateWatchUpdate an installed plugin to the latest matching versionplugin update-indexWatchRefresh the cached registry indexplugin verifyWatchRe-verify an installed plugin's manifest and binaryresolveRunRebase or discard a version of a .kpz document that did not landrunRunRun a composed flow (a named multi-tool pipeline)statsRunSummarize content metrics for files: blocks, words, characters, segments, by rolestoreRunMaintain this project's context storestore exportRunWrite this project's context and its history to one filestore importRunRead context files, or a file written by export, into this projectstore localesRunReport the locale each stored row is filed understore rebuildRunRebuild this project's store from its historytelemetryWatchShow or change anonymous usage telemetry (status, on, off)telemetry offWatchDisable anonymous usage telemetry (persists to the global config file)telemetry onWatchEnable anonymous usage telemetry (persists to the global config file)telemetry statusWatchShow whether telemetry is enabled, why, and the exact payload shapetoolsRunList available processing toolstools listRunList available processing toolstools schemaRunPrint the JSON Schema for a tool's parameterstrustWatchList, inspect and change which projects may run commandstrust allowWatchRecord that a project may run the commands its recipe namestrust listWatchList every recorded decision and whether it still appliestrust revokeWatchWithdraw the decision recorded for a projecttrust showWatchShow what a recipe would run and the decision that appliesunpackRunRehydrate a project's working state from a .kpz snapshot