CLI — セットアップ
version
概要: ai-i18n-tools version
CLIのバージョンとビルドタイムスタンプを表示します(ルートプログラムの-V / --versionと同じ情報です)。
init
概要: ai-i18n-tools init [-t <template>] [-o <path>] [-P <provider>] [--with-translate-ignore]
スターター設定ファイルを作成します(provider / providers、concurrency、batchConcurrency、batchSize、maxBatchChars、および docs[].addFrontmatter を含みます)。LLMを呼び出す翻訳コマンドには、環境変数または .env にアクティブなプロバイダーのAPIキーが必要です(Ollamaを除く) — プロバイダーとAPIキー を参照してください。
主なオプション: -t / --template, -o / --output, -P / --provider, --with-translate-ignore
-P / --provider はスキャフォールディングする組み込みプリセットを選択します (省略時は openrouter)。次のいずれかである必要があります: openrouter, openai, anthropic, gemini, deepseek, cerebras, groq, mistral, xai, nvidia, alibaba, apifun, ollama。
テンプレート (-t):
| 値 | スキャフォールド |
|---|---|
ui-markdown | Markdown UI文字列ワークフロー |
ui-docusaurus | Docusaurus UI + ドキュメント |
ui-starlight | Starlight ドキュメント |
ui-vitepress | VitePress ドキュメント (docsOutput.style: "vitepress") およびテーマ文字列用 vitepressThemeCatalog |
ui-nextra | Nextra ドキュメント (docsOutput.style: "nextra") およびテーマ辞書用 nextraDictionaryPath (サイドバー _meta.ts は自動的に収集されます) |
ui-fumadocs | Fumadocs ドキュメント (docsOutput.style: "fumadocs") およびUIオーバーライド用 fumadocsUiCatalog (サイドバー meta.json は自動的に収集されます) |
ui-astro-website | Astro ウェブサイトUI文字列 |
ui-json-bundles | JSON (json[] のみ) |
--with-translate-ignore は初期設定の .translate-ignore を作成します。