CLI Commands

move

Move a translation key from one layer to another, carrying every locale that defines it

Synopsis

the-i18n-cli move --fromLayer <fromLayer> --toLayer <toLayer> --key <key>

Flags

FlagTypeRequiredDefaultDescription
--fromLayerstringyesLayer the key lives in today
--toLayerstringyesLayer to move it to (see layerGraph.shared from the MCP discover tool for where a shared key belongs)
--keystringyesDot-separated key path to move
--newKeystringnoKey path in the target layer, when the move also renames it
--dryRunbooleannofalsePreview changes without writing

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

Copyright © 2026