kapi brand rewrite
kapi rewriteRewrite content against a brand voice profile by substituting forbidden and competitor terms with their approved replacements. This is the deterministic, offline path — it changes only the terms the profile defines and reports each change; it does not call a model.
Text is read from --input-text or stdin and the rewrite is printed. To fix tone, style, or phrasing on-brand, rewrite the text yourself with the voice guide as context ('kapi brand guide') and apply the edit through 'kapi apply' — kapi does not send content to a model to rewrite it.
Try it (demo)
Demo mode — illustrative output from a built-in stub, not a real model. Install the CLI to run with your own API key.
kapi brand rewriteFlags
| Flag | Type | Default | Description |
|---|---|---|---|
| --channel | string | apply channel-specific overrides | |
| --file | string | explicit path to resource file | |
| --input-text | string | text to rewrite (use "-" or omit to read stdin) | |
| --json | bool | false | output results as JSON |
| --local | bool | false | use resource in current directory |
| --locale | string | apply locale-specific overrides | |
| --name | string | named resource in KAPI_HOME (e.g. --name project-terms) | |
| --pack | string | built-in starter pack name | |
| --persona | string | apply an author persona's overrides (within brand guardrails) | |
| --profile | string | brand voice profile name in the local store | |
| --profile-file | string | path to a standalone profile YAML | |
| --project, -p | string | path to a kapi.yaml project recipe or its directory (auto-discovered from cwd if omitted) |
← Back to the Command Reference