Skip to main content

kapi brand rewrite

kapi rewrite

Rewrite 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.

Commandbrand rewrite
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 rewrite
Flags
FlagTypeDefaultDescription
--channelstringapply channel-specific overrides
--filestringexplicit path to resource file
--input-textstringtext to rewrite (use "-" or omit to read stdin)
--jsonboolfalseoutput results as JSON
--localboolfalseuse resource in current directory
--localestringapply locale-specific overrides
--namestringnamed resource in KAPI_HOME (e.g. --name project-terms)
--packstringbuilt-in starter pack name
--personastringapply an author persona's overrides (within brand guardrails)
--profilestringbrand voice profile name in the local store
--profile-filestringpath to a standalone profile YAML
--project, -pstringpath to a kapi.yaml project recipe or its directory (auto-discovered from cwd if omitted)

← Back to the Command Reference