Learn Nuxt with a Collection of 100+ Tips!

nuxi init

The init command initializes a fresh Nuxt project.
Terminal
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

ArgumentDescription
DIR=""Project directory

Options

OptionDefaultDescription
--cwd=<directory>.Specify the working directory
-t, --templateTemplate name
-f, --forceOverride existing directory
--offlineForce offline mode
--preferOfflinePrefer offline mode
--no-installSkip installing dependencies
--gitInitInitialize git repository
--shellStart shell after installation in project directory
--packageManagerPackage manager choice (npm, pnpm, yarn, bun)

Environment variables