Babelize CLI
The Babelize CLI (@babelize/cli) manages i18n projects, starts translation runs, and raises GitHub PRs with locale files, all from your terminal.
The Babelize CLI (babelize) gives you full access to the Babelize platform from your terminal. Run translations, manage projects, raise PRs, and inspect billing — without ever opening a browser.
Quick start: one command
In your project's folder, run:
npx babelizeThat's it. (npx babelize and npx @babelize/cli are the same CLI; use whichever you like.) Babelize walks you through the rest:
- Git. It checks your project is in git so every change can be reviewed and undone. If it isn't, it offers to run
git initand make a first commit of your files. If you have uncommitted changes, it warns you first, so its edits don't mix with yours. - Your app. It finds the framework (and any i18n library you already use) and the language your app is written in. This runs on your machine; nothing is uploaded.
- Sign in. If you aren't signed in, pick GitHub or Google and your browser opens to sign in, or enter your email and password. No API key is needed: translation uses your plan's credits.
- Languages. Pick the languages to translate into. Babelize remembers them in
.babelize/config.json. - Translate. Locale files and i18n code are written into your project. The summary shows the credits used. Review the changes with
git diff, then commit.
Your locales and i18n setup are then done. Add a language switcher so people can pick a language: grab a ready-made one at elements.babelize.co, or build your own.
Run npx babelize again whenever your app changes: only new or changed text is translated. Prefer pull requests? Connect the repo at app.babelize.co, or use babelize run start.
Without a terminal to answer questions (CI, scripts), pass the languages: babelize start --to fr,de --yes. The old interactive command menu is babelize shell.
Quick start (your own LLM key)
Prefer your own key? Set it, and Babelize uses it instead of your credits (no account needed):
export ANTHROPIC_API_KEY=sk-ant-... # or OPENAI_, GEMINI_, GROQ_, OPENROUTER_API_KEY
npx babelize translate --to fr,de
git diffIn CI, use a Babelize API key from app.babelize.co/api-keys (export BABELIZE_API_KEY=bblz_sk_...) and npx babelize start --to fr,de --yes.
React, Next.js, Django and static HTML are supported; Vue and React Native are in beta. See Translate Locally.
Quick Start (platform)
For GitHub pull requests and the dashboard, sign in and create a project:
# Install globally (or prefix each command with npx)
npm install -g @babelize/cli
babelize auth login # GitHub, Google or email
babelize init # create a project for this repo
babelize run start # translate it and open a PRCommands Overview
Translate Locally
Translate this repo signed in, with your own LLM key, or a Babelize API key.
Authentication
Login, logout, session management, and provider tokens
Projects
Create, sync, archive, and manage your i18n projects
Engine Runs
Start translation runs, analyze i18n readiness, and watch phase-by-phase progress
Pull Requests
List, raise, and update GitHub PRs with locale files
Billing & Plans
View plans, usage, transactions, and upgrade your subscription
Advanced
Notifications, comments, analytics, users, roles, privacy, admin
Global Flags
Every command supports these flags:
| Flag | Description |
|---|---|
--json | Output raw JSON where the subcommand supports it (see note below) |
--api-url <url> | Connect to a different API (default: the URL saved by auth login, else https://api.babelize.co/api; or set BABELIZE_API_URL) |
--token <token> | Pass an explicit auth token instead of using stored credentials (or set BABELIZE_TOKEN) |
--verbose / -v | Show full request/response details |
--yes / -y | Never prompt, and answer yes to confirmations (e.g. deletes) |
--non-interactive | Never prompt; fail when a required value is missing (also BABELIZE_NON_INTERACTIVE=1 or CI) |
--no-color | Disable ANSI colors |
--version / -V | Print CLI version |
--help / -h | Show help for any command |
--json is accepted everywhere but only implemented per subcommand — where a
subcommand doesn't produce JSON it falls back to the normal human-readable
output. Check the command's page in this section for its --json support.
Last updated: 2026-10-18
Usage Limits
Babelize plan limits explained: projects, AI credit quotas and API rate limits per plan, what happens when you reach a limit, and how to monitor your usage.
Installation & Setup
Install the Babelize CLI (@babelize/cli), log in, verify the connection to your account, configure defaults, and log out. Step-by-step setup with examples.