Skip to content

CLI Commands

Initialize a new Tyndale project. Creates tyndale.config.json with sensible defaults.

Terminal window
npx tyndale init

Configure your AI provider credentials.

Terminal window
npx tyndale auth

Extract translatable strings and generate translations for all configured locales.

Terminal window
npx tyndale translate [options]
FlagDescription
--locale <code>Translate only a specific locale
--forceRe-translate all strings, not just changes
--dry-runShow what would be translated without writing files
--token-budget <n>Token budget per AI batch (default: 50000)
--concurrency <n>Max parallel translation sessions (auto-detected)

Check that all locales have complete, well-formed translations. No AI calls are made.

Terminal window
npx tyndale validate

Exits with code 1 if issues are found. Ideal for CI pipelines.

Extract translatable strings without translating them. Useful for reviewing what will be sent to the AI provider.

Terminal window
npx tyndale extract

Translate documentation files (MDX/MD) for any supported framework. Automatically detects your docs framework or uses the configuration from tyndale.config.json.

Terminal window
npx tyndale translate-docs [options]
FlagDescription
--content-dir <path>Override the docs content directory
--forceRe-translate all docs, not just missing files
--concurrency <n>Max parallel translation sessions (auto-detected)

Supported frameworks: Starlight, Docusaurus, VitePress, MkDocs, Nextra.

translate-docs writes .tyndale-docs-state.json at your project root to track source-document hashes. Commit this file so fresh clones can skip unchanged docs without retranslation.

Detect your documentation framework and save the configuration to tyndale.config.json.

Terminal window
npx tyndale translate-docs setup

Scans your project for framework signals (package dependencies and config files), confirms the detected framework, and writes the docs section to your config.

Change the AI model used for translations.

Terminal window
npx tyndale model