kapi init
kapi initCreate a new kapi project with a {name}.kapi recipe and an adjacent .kapi/ state directory.
By default the project id is the current directory's basename and source/target locales are en / (none). Override with --name, --source-locale, --target-locale (repeatable).
--framework <name> pre-fills the content mapping for a known stack's i18n catalogs (see 'kapi presets list --framework'): react-i18next, react-intl, nextjs, vue-i18n, flutter, angular.
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 initFlags
| 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 presets list --framework') | |
| --name | string | Project id/name (default: directory basename) | |
| --source-locale | string | en | Source locale (BCP-47) |
| --target-locale | stringSlice | Target locale (repeatable) |
← Back to the Command Reference