--- title: 'nuxi prepare' description: The prepare command creates a .nuxt directory in your application and generates types. links: - label: Source icon: i-simple-icons-github to: https://github.com/nuxt/cli/blob/main/src/commands/prepare.ts size: xs --- ```bash [Terminal] npx nuxi prepare [ROOTDIR] [--dotenv] [--cwd=] [--logLevel=] [--envName] ``` The `prepare` command creates a [`.nuxt`](/docs/guide/directory-structure/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`](/docs/guide/directory-structure/package). ## 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=` | | Specify the working directory, this takes precedence over ROOTDIR (default: `.`) `--logLevel=` | | 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)