kapi init
kapi initCreate a new kapi project with a kapi.yaml recipe and an adjacent .kapi/ state directory.
By default kapi init scaffolds a content project that keeps your source on brand — a brand-voice profile, the project terms store, and a check flow, with no target languages. Pass --target-locale (or --framework) to make it a translation project instead.
The project id defaults to the current directory's basename and the source locale to en. Override with --name, --source-locale, --target-locale (repeatable).
--preset <name> (alias: --framework) pre-fills the content mapping for a known stack's i18n catalogs: react-i18next, react-intl, nextjs, vue-i18n, flutter, angular — and scaffolds the translation project. List every preset (framework scaffolds plus per-format parsing presets) with --list-presets.
Runs in your browser against a small sample file. Edit the command before running, or press Run to execute it as shown.
kapi init| Flag | Type | Default | Description |
|---|---|---|---|
| --dir | string | Directory to scaffold in (default: current directory) | |
| --framework | string | Pre-fill content mapping for a known stack (see 'kapi init --list-presets'); scaffolds a translation project | |
| --list-presets | bool | false | List available presets (framework scaffolds and per-format parsing presets) and exit |
| --name | string | Project id/name (default: directory basename) | |
| --preset | string | Scaffold from a named framework preset (see 'kapi init --list-presets'); alias of --framework | |
| --source-locale | string | en | Source locale (BCP-47) |
| --target-locale | stringSlice | Target locale (repeatable) |
← Back to the Command Reference