Skip to main content

CLI

NextGlobeGen comes with a Command Line Interface (CLI) tool next-globe-gen. To see all the available commands run the CLI tool with the -h or --help option.

Basic usage
npx next-globe-gen [command] [options]

generate command

The next-globe-gen generate command runs the generator which generates the localized routes, messages and the types for the package. The plugin uses this CLI command internally.

npx next-globe-gen generate [options]

Options

OptionDescription
-c, --config <path>custom path to a configuration file (default: `i18n.config.ts)
-w, --watchenables watch mode
-h, --helpdisplay help for command