Get up and running with the CLI in under 5 minutes.
Prerequisites
Make sure you have Node.js 18.0 or higher installed. Run node --version to check.
Installation#
Install the CLI globally using your preferred package manager:
npm install -g lingo.devVerify Installation#
Confirm the CLI is installed correctly:
lingo --versionYou should see output like:
lingo.dev v0.133.9
Node.js v20.10.0Initialize Your Project#
Navigate to your project directory and run:
cd my-project
lingo initThis interactive command will:
- Connect to your account - Authenticate with your API key
- Select a project - Choose an existing project or create a new one
- Configure locales - Select which languages to support
- Set up file structure - Choose where to store translation files
Configuration Created
The CLI creates an i18n.json file with your settings. You can modify this file later as needed.
Your First Translation#
Create a simple translation file:
{
"welcome": {
"title": "Welcome to Lingo.dev",
"subtitle": "The Localization Engineering Platform"
},
"auth": {
"login": "Log in",
"logout": "Log out"
}
}Run Translations#
Translate your content to all configured target languages:
lingo runThe CLI will:
- ✅ Discover your source files
- ✅ Compute a delta against the lockfile
- ✅ Send changed content to your translation backend
- ✅ Write translations to disk
Watch Mode (Development)#
For active development, enable watch mode to retranslate automatically when source files change:
lingo run --watchPress Ctrl+C to exit watch mode.
Getting Help#
Need assistance?
# Show help for all commands
lingo --help
# Show help for a specific command
lingo run --helpJoin our Discord community for real-time support!
