Nuxt/docs/3.api/4.commands/init.md
2025-01-16 23:59:55 +00:00

1.4 KiB

title description links
nuxi init The init command initializes a fresh Nuxt project.
label icon to size
Source i-simple-icons-github https://github.com/nuxt/cli/blob/main/packages/nuxi/src/commands/init.ts xs
npx nuxi init [DIR] [--cwd=<directory>] [-t, --template] [-f, --force] [--offline] [--preferOffline] [--no-install] [--gitInit] [--shell] [--packageManager]

The init command initializes a fresh Nuxt project using unjs/giget.

Arguments

Argument Description
DIR="" Project directory

Options

Option Default Description
--cwd=<directory> . Specify the working directory
-t, --template Template name
-f, --force Override existing directory
--offline Force offline mode
--preferOffline Prefer offline mode
--no-install Skip installing dependencies
--gitInit Initialize git repository
--shell Start shell after installation in project directory
--packageManager Package manager choice (npm, pnpm, yarn, bun)

Environment variables