Skip to main content
The CLI authenticates using a Device Authorization flow. Your session credentials are stored locally in ~/.config/lazylocales/.

login

Authenticate with your LazyLocales account:
1

Initiate device authorization

The CLI generates a device code.
2

Authorize in browser

A browser window opens with a verification URL. If it doesn’t open automatically, the CLI prints the URL and a one-time code to enter manually.
3

Session stored

Once authorized, the CLI stores your access token, refresh token, and user info in ~/.config/lazylocales/.

logout

Clear stored credentials:

whoami

Display the currently logged-in user:

Session expiry

Sessions expire automatically. If your session has expired, the CLI will prompt you to log in again when running any command. You can also re-authenticate at any time:

CI/CD environments

In CI/CD pipelines, use an API token instead of interactive login. Set the LAZYLOCALES_API_KEY environment variable — the CLI picks it up automatically. See CI/CD Setup for a complete guide.