Nuxt/docs/3.api/4.commands/prepare.md
2024-12-18 16:36:46 +00:00

1.3 KiB

title description links
nuxi prepare The prepare command creates a .nuxt directory in your application and generates types.
label icon to size
Source i-simple-icons-github https://github.com/nuxt/cli/blob/main/src/commands/prepare.ts xs
npx nuxi prepare [ROOTDIR] [--dotenv] [--cwd=<directory>] [--logLevel=<silent|info|verbose>] [--envName]

The prepare command creates a .nuxt directory in your application and generates types. This can be useful in a CI environment or as a postinstall command in your package.json.

Arguments

Argument Description
ROOTDIR="." Specifies the working directory (default: .)

Options

Option Default Description
--dotenv Path to .env file to load, relative to the root directory
--cwd=<directory> Specify the working directory, this takes precedence over ROOTDIR (default: .)
--logLevel=<silent|info|verbose> Specify build-time log level
--envName The environment to use when resolving configuration overrides (default is production when building, and development when running the dev server)