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
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--fromLayer | string | yes | — | Layer the key lives in today |
--toLayer | string | yes | — | Layer to move it to (see layerGraph.shared from the MCP discover tool for where a shared key belongs) |
--key | string | yes | — | Dot-separated key path to move |
--newKey | string | no | — | Key path in the target layer, when the move also renames it |
--dryRun | boolean | no | false | Preview changes without writing |
Every command accepts the shared flags and sets one of the exit codes documented on the overview.