CLI Commands

rename

Rename/move a translation key across all locale files

Synopsis

the-i18n-cli rename --layer <layer> --oldKey <oldKey> --newKey <newKey>

Flags

FlagTypeRequiredDefaultDescription
--layerstringyesLayer name
--oldKeystringyesCurrent key path
--newKeystringyesNew key path
--dryRunbooleannofalsePreview changes without writing

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

Copyright © 2026