Skip to main content
The lazylocales CLI is the primary way to interact with LazyLocales. It handles authentication, source file management, translation triggering, and locale file downloads.

Installation

npm install --save-dev lazylocales
Or use it directly with npx:
npx lazylocales <command>

Commands

CommandDescription
translatePush source, translate, and pull locale files
pushPush the source locale file to LazyLocales
pullDownload translated locale files
statusShow translation coverage for all locales
loginAuthenticate with LazyLocales
logoutClear stored credentials
whoamiShow the currently logged-in user

Global options

All commands support these flags:
FlagDescription
--helpShow help for a command
--versionShow the installed CLI version

Authentication

The CLI uses your login session by default. Credentials are stored in ~/.config/lazylocales/. For CI/CD environments, set an apiToken in your configuration file instead. See CI/CD Setup for details.