Quick Start

Updated: last quarter · 2 min read

Deprecated

These docs cover the legacy CLI (v0). The current CLI is v1. See the current CLI docs

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:

bash
npm install -g lingo.dev

Verify Installation#

Confirm the CLI is installed correctly:

bash
lingo --version

You should see output like:

plaintext
lingo.dev v0.133.9
Node.js v20.10.0

Initialize Your Project#

Navigate to your project directory and run:

bash
cd my-project
lingo init

This interactive command will:

  1. Connect to your account - Authenticate with your API key
  2. Select a project - Choose an existing project or create a new one
  3. Configure locales - Select which languages to support
  4. 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:

json
{
  "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:

bash
lingo run

The 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:

bash
lingo run --watch

Press Ctrl+C to exit watch mode.

Getting Help#

Need assistance?

bash
# Show help for all commands
lingo --help

# Show help for a specific command
lingo run --help

Join our Discord community for real-time support!

Next Steps#