LightNet v4 is here! Learn how to upgrade your site
LightNet CLI reference
@lightnet/cli provides command-line tools for working with LightNet projects.
This page is a reference for the currently available commands. The CLI will grow over time, and new commands will be added here as they are released.
Package and binary
Section titled “Package and binary”Install the package in your project:
npm install --save-dev @lightnet/cliThe package exposes the lightnet command:
lightnet <command> [options]To see the current command list directly from the CLI, run:
lightnet --helpYou can also run the CLI without installing it first:
npx @lightnet/cli --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 locale values.
What it does:
- reads the cached translation build output
- verifies that each used translation has values for every configured locale
- prints missing translations
- fails with non zero exit code if any translation is missing
Use this command when you want to:
- check translations after building a LightNet site
- catch incomplete translations in CI before deployment
- review translation coverage while adding locales or updating inline translation maps
Before running it, build your site so LightNet can generate the translation cache:
npm run buildIf the cache is missing, the command fails and tells you to run a build first.