Gå til hovedinnhold

kapi init

kapi init

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

Commandinit
Groupwork
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 init
Flags
FlagTypeDefaultDescription
--dirstringDirectory to scaffold in (default: current directory)
--frameworkstringPre-fill content mapping for a known stack (see 'kapi init --list-presets'); scaffolds a translation project
--list-presetsboolfalseList available presets (framework scaffolds and per-format parsing presets) and exit
--namestringProject id/name (default: directory basename)
--presetstringScaffold from a named framework preset (see 'kapi init --list-presets'); alias of --framework
--source-localestringenSource locale (BCP-47)
--target-localestringSliceTarget locale (repeatable)

← Back to the Command Reference