CLI onboarding path
Install
Install the CLI from npm and run it as i18nprune.
Example:
bash
npm i i18nprune
# run: npx i18nprune ...Init / config
If you do not have a config file yet, generate one:
bash
i18nprune initEdit i18nprune.config.* to match your project layout and policies. See Config.
Validate (read-only)
Use validate to check that your translation calls match your source locale JSON.
bash
i18nprune validate
i18nprune validate --jsonSync (structure alignment)
Use sync to update non-source locale JSON so the file structure matches the source.
bash
i18nprune sync --dry-run
i18nprune syncGenerate / missing (target locale updates)
Use generate to translate and write target locale files:
bash
i18nprune generate --target jaUse missing to add placeholder values for literal keys that exist in code but are not present in the chosen locale file(s):
bash
i18nprune missingCache flags (when you want speed and diagnostics)
If you run repeated scans, read the CLI cache behavior and flags: CLI cache.
Useful knobs include --no-cache, --debug-cache, and --cache-profile.