CLI Commands

add

Add new translation keys (skips keys that already exist)

Synopsis

the-i18n-cli add --layer <layer> --translations <translations>

Flags

FlagTypeRequiredDefaultDescription
--layerstringyesLayer name
--translationsstringyesJSON: { "key": { "en": "val", "de": "val" } }
--dryRunbooleannofalsePreview changes without writing

Every command accepts the shared flags and sets one of the exit codes documented on the overview.

Copyright © 2026