LightNet v4 is here! Learn how to upgrade your site
LightNet CLI reference
@lightnet/cli provides command-line tools for working with LightNet projects.
Install
Section titled “Install”pnpm add --save-dev @lightnet/cliYou can also run the CLI without installing it first:
pnpx @lightnet/cli --helpThe package exposes the lightnet binary:
lightnet <command> [options]Get the full command list at any time with:
lightnet --helpAvailable commands
Section titled “Available commands”check-translations
Section titled “check-translations”lightnet check-translationsChecks translation data from the latest LightNet build and reports missing translation values for configured site languages.
What it does:
- reads the cached translation output from the latest build
- checks whether each used translation has a value for every configured site language
- prints missing translations
- exits with a non-zero status code if any translation is missing
Use this command to:
- check translations after building a LightNet site
- catch incomplete translations in CI before deployment
- review translation coverage while adding site languages or updating inline translation maps
Before running this command, build your site so LightNet can generate the translation cache:
pnpm buildIf the cache is missing, the command fails and prompts you to run a build first.