Skip to content

CLI — Setup

version

Synopsis: ai-i18n-tools version

Print CLI version and build timestamp (same information as -V / --version on the root program).


init

Synopsis: ai-i18n-tools init [-t <template>] [-o <path>] [-P <provider>] [--with-translate-ignore]

Write a starter config file (includes provider / providers, concurrency, batchConcurrency, batchSize, maxBatchChars, and docs[].addFrontmatter). Translation commands that call an LLM require the active provider's API key in the environment or .env (Ollama excepted) — see Provider and API key.

Key options: -t / --template, -o / --output, -P / --provider, --with-translate-ignore

-P / --provider selects which built-in preset to scaffold (openrouter when omitted). Must be one of: openrouter, openai, anthropic, gemini, deepseek, cerebras, groq, mistral, xai, nvidia, alibaba, apifun, ollama.

Templates (-t):

ValueScaffolds
ui-markdownMarkdown UI strings workflow
ui-docusaurusDocusaurus UI + docs
ui-starlightStarlight docs
ui-vitepressVitePress docs (docsOutput.style: "vitepress") plus vitepressThemeCatalog for theme strings
ui-nextraNextra docs (docsOutput.style: "nextra") plus nextraDictionaryPath for the theme dictionary (sidebar _meta.ts is collected automatically)
ui-fumadocsFumadocs docs (docsOutput.style: "fumadocs") plus fumadocsUiCatalog for UI overrides (sidebar meta.json is collected automatically)
ui-astro-websiteAstro website UI strings
ui-json-bundlesJSON (json[] only)

--with-translate-ignore creates a starter .translate-ignore.

Released under the MIT License.