Skip to content

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.

Install the package in your project:

Terminal window
npm install --save-dev @lightnet/cli

The package exposes the lightnet command:

Terminal window
lightnet <command> [options]

To see the current command list directly from the CLI, run:

Terminal window
lightnet --help

You can also run the CLI without installing it first:

Terminal window
npx @lightnet/cli --help
Terminal window
lightnet check-translations

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

Terminal window
npm run build

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