Skip to content

CLI reference

Run ai-i18n-tools <command> --help for every flag on a command. Group pages below add context, key options, and links to topic guides.

Command overview

Setup

CommandSummary
versionPrint CLI version and build timestamp.
initWrite a starter config; -t selects a scaffold template.

Models & catalog

CommandSummary
check-modelsValidate configured model ids against the active provider.
list-modelsList models advertised by the active provider.
bench-modelsBenchmark configured models on one sample translation.
list-languagesList the bundled UI languages catalog.

UI strings

CommandSummary
extractUpdate strings.json from source literals and HTML markers.
mark-htmlInsert data-i18n* markers into HTML files.
generate-ui-languagesWrite ui-languages.json from config locales.
translate-uiTranslate UI strings (strings.json → locale JSON).
sync-uiExtract, then translate UI strings.
proofread-uiExtract, then LLM-review source-locale UI strings.
export-ui-xliffExport strings.json to XLIFF 2.0.

Documents

CommandSummary
translate-docsTranslate markdown, MDX, .astro, and framework catalogs.
write-heading-idsInsert HTML anchor lines before ATX headings.
check-markdownScan markdown/MDX for delimiter and emphasis issues.

Other content

CommandSummary
translate-jsonTranslate nested JSON per json[] config blocks.
translate-svgTranslate SVG files configured in config.svg.

Workflows & status

CommandSummary
syncRun extract + UI + SVG + docs + JSON in one pipeline.
statusPrint UI, documentation, and JSON translation coverage.
statisticsPrint cache and strings.json statistics.

Cache & maintenance

CommandSummary
cleanupPrune stale/orphan/unconfigured-locale cache rows and repopulate markdown issues.
clean-tempFind and delete *.log, *.tmp, and cache backups.
purge-localeRemove cache rows and generated artifacts for locale(s).

Tools

CommandSummary
dashboardLaunch the Translation Dashboard web UI.
glossary-generateWrite an empty glossary-user.csv template.
helpDisplay help for a subcommand.

Synopsis

bash
ai-i18n-tools version
ai-i18n-tools check-models
ai-i18n-tools list-models
ai-i18n-tools bench-models [--model <ids>] [--text <text>|--file <path>] [--source <locale>] [--target <locale>]
ai-i18n-tools list-languages [search]
ai-i18n-tools init [-t ui-markdown|ui-docusaurus|ui-starlight|ui-vitepress|ui-nextra|ui-fumadocs|ui-astro-website|ui-json-bundles] [-o path] [-P <provider>] [--with-translate-ignore]
ai-i18n-tools write-heading-ids
ai-i18n-tools mark-html [paths...] [--write]
ai-i18n-tools extract
ai-i18n-tools translate-docs
ai-i18n-tools translate-json
ai-i18n-tools translate-svg
ai-i18n-tools translate-ui
ai-i18n-tools sync-ui
ai-i18n-tools proofread-ui
ai-i18n-tools check-markdown [-p|--path <path>] [-f|--file <path>] [--json] [--no-cache]
ai-i18n-tools export-ui-xliff
ai-i18n-tools sync
ai-i18n-tools status
ai-i18n-tools statistics
ai-i18n-tools cleanup
ai-i18n-tools clean-temp
ai-i18n-tools purge-locale -l <code> [-l <code> …] [--dry-run] [-y|--yes] [-f|--force] [--keep-files] [--backup <path>]
ai-i18n-tools dashboard
ai-i18n-tools generate-ui-languages [--master path] [--dry-run]
ai-i18n-tools glossary-generate
ai-i18n-tools help [command]

Root and global options

OptionScopeDescription
-V / --versionRoot programOutput version number and build timestamp (same information as the version subcommand).
-h / --helpRoot programDisplay help for the root program or for a subcommand when used with a command name.
-c / --config <path>Every commandConfig file path (default: ai-i18n-tools.config.json).
-v / --verboseEvery commandVerbose logging.
-P / --provider <name>Every commandActive LLM provider for this run; overrides the config provider key. Must be configured under providers.
-L / --ui-lang <code>Every commandLanguage for the tool's own UI (CLI help, logs/summaries, dashboard); highest-priority source. See Tool UI language.
-w / --write-logs [path]Selected commandsTee console output to a .log file (default path: under root cacheDir). Wired for translate-docs, translate-json, translate-svg, translate-ui, sync-ui, sync, and cleanup only.

Per-command help

UsageDescription
ai-i18n-tools <command> --helpAll options for that command.
ai-i18n-tools help <command>Same output as <command> --help.

Target locales (-l / --locale)

CommandsBehaviour
translate-docs, translate-json, translate-svg, translate-ui, sync, sync-ui, export-ui-xliff-l / --locale <codes> — comma-separated target BCP-47 codes (e.g. de,fr,pt-BR). When omitted, defaults come from config (json[] blocks may also set per-block targetLocales; UI steps use targetLocales minus sourceLocale).
proofread-ui-l / --locale <code> — single source locale to review (default: config sourceLocale).

Released under the MIT License.