CLI Commands

write

Write translation keys (add/update/upsert). Default mode: upsert.

Synopsis

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

Flags

FlagTypeRequiredDefaultDescription
--layerstringyesLayer name
--translationsstringyesJSON: { "key": { "en": "val", "de": "val" } }
--modestringno"upsert"Write mode: add | update | upsert (default: upsert)
--dryRunbooleannofalsePreview changes without writing

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

Copyright © 2026