Skip to content

LightNet CLI reference

@lightnet/cli provides command-line tools for working with LightNet projects.

Terminal window
pnpm add --save-dev @lightnet/cli

You can also run the CLI without installing it first:

Terminal window
pnpx @lightnet/cli --help

The package exposes the lightnet binary:

Terminal window
lightnet <command> [options]

Get the full command list at any time with:

Terminal window
lightnet --help
Terminal window
lightnet check-translations

Checks 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:

Terminal window
pnpm build

If the cache is missing, the command fails and prompts you to run a build first.