Gå til hovedinnhold

kapi init

kapi init

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

Commandinit
Groupcontent
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 presets list --framework')
--namestringProject id/name (default: directory basename)
--source-localestringenSource locale (BCP-47)
--target-localestringSliceTarget locale (repeatable)

← Back to the Command Reference