Uncommon setups when migrating from CLI v0

What to do when your CLI v0 setup used branches, schedules, several configs, lockedPatterns, special flags or your own model key.

Most projects need none of this. Find the setup that matches yours.

You translate on other branches or on a schedule #

The GitHub App runs only on pushes to the default branch and, with onPullRequest on, inside open pull requests. Other branches, tags and schedules do not start a run. For those, keep a CI job that runs npx -y @lingo.dev/cli@latest push --wait, as CLI in your pipeline shows.

You have a config per package, or sources generated in CI #

The GitHub App reads one .lingo/config.json at the repository root and translates committed files only, so use CLI in your pipeline. A script that wrote i18n.json now writes .lingo/config.json. See Several i18n.json files.

You use lockedPatterns #

lockedPatterns works only in .properties files. Remove a regex that kept markup tags such as <b>, because Lingo.dev keeps them unchanged. Add brand, product and place names to your engine's glossary as terms without translations.

You run --frozen or lingo.dev status #

Replace lingo.dev run --frozen and lingo.dev status, in CI or before a commit, with:

Terminal
npx -y @lingo.dev/cli@latest check

It needs no API key. It fails when a source changed since .lingo/lock.json, a source was never pushed, or a target file is missing. It does not report a key missing inside a target file that exists. It exits 1 on outdated translations, where lingo.dev status exited 0. On the GitHub App path there is no lockfile, so it only checks that target files exist. See lingo check.

You use --target-locale #

It is now --locale, as in lingo push --locale de --wait, and it combines with --key and --force. See Work on some locales.

You use --file or --bucket #

Drop them and run a plain lingo push --wait, which translates what changed. A path, as in lingo push 'locales/en.json' --wait, only creates missing target files unless you add --force.

You use --strict or --pseudo #

Remove --strict, because lingo push --wait fails when any target fails. --pseudo has no equivalent; lingo check replaces --frozen --pseudo.

A key name has a wildcard inside it #

The new CLI accepts * only as a whole key segment, as in auth.*. For a key rule or --key such as a.b*, name the parent key or list the exact keys. --key also stops with an error on .po files. See Refresh selected keys and Key controls.

You use your own model key #

The new CLI ignores provider keys and translates on your engine's models. Your own key goes in Settings → BYOK, on the Enterprise plan. See Models and provider keys.

You are already on @lingo.dev/cli 1.17 or older #

Collect open runs first, as Upgrade from 1.17 or older describes.

If your setup is not here, email support@lingo.dev.

Back to Migration reference.