CLI Commands

get

Get translation values by key path or by key prefix, from one layer or from every layer that defines them. Use "*" as the locale to read from all locales.

Synopsis

the-i18n-cli get --locale <locale>

Flags

FlagTypeRequiredDefaultDescription
--layerstringno—Layer name from discover (e.g., "root", "app-admin"). Omit to read every layer and get the { byLayer } shape back.
--localestringyes—Locale code, locale file name, or "" to read all locales. Examples: "en", "en-US", "en-US.json", "".
--keysstringno—Dot-separated key paths to read. Example: "common.actions.save", "auth.login.title". Either this or keyPrefix is required. Comma-separated.
--keyPrefixstringno—Namespace to read every leaf key under, dots included: "auth" reads auth.login.title and everything else below auth. Either this or keys is required; passing both reads the union.
--limitstringno—Maximum number of keys to return. Default: 100 for a tool call, unlimited at a terminal. When the cap applies the result carries truncated: true and nextOffset — call again with offset set to that value for the next page, or narrow the request instead.
--offsetstringno—Number of keys to skip before returning any. Default: 0. Pass the nextOffset of a truncated result to continue where it stopped.
Copyright © 2026