Nuxt CLI

3.34.0 · active · verified Wed Apr 22

Nuxi is the official Command Line Interface (CLI) for the Nuxt.js framework, providing essential tools for project initialization, development, building, and management. As of its current stable version 3.34.0, Nuxi maintains a rapid release cadence with frequent minor and patch updates, indicating active development and continuous improvement. It differentiates itself by offering a tightly integrated experience for Nuxt developers, including features like interactive project creation with module selection, shell completions, and simplified command structures for common tasks. Nuxi abstracts away much of the underlying build tool complexity, allowing developers to focus on application logic within the Nuxt ecosystem. It requires Node.js version 16.10.0 or higher, or 18.0.0 or higher.

Common errors

Warnings

Install

Imports

Quickstart

Initializes a new Nuxt 3 project with interactive prompts, installs dependencies, and starts the development server, demonstrating the core Nuxi workflow.

# Initialize a new Nuxt 3 project in a directory named 'my-nuxt-project'.
# This command will interactively guide you through setting up project preferences
# such as package manager, TypeScript support, and common Nuxt modules.
npx nuxi init my-nuxt-project

# Navigate into your newly created project directory to continue setup.
cd my-nuxt-project

# Install the necessary project dependencies using your chosen package manager (e.g., npm, yarn, pnpm).
# This step fetches all required packages, including Nuxt itself and any modules you selected during initialization.
npm install

# Start the Nuxt development server. This command compiles your application
# and provides hot module reloading, making it easy to see changes instantly.
# Your application will typically be accessible in your web browser at http://localhost:3000.
npm run dev

# After development, you can build your application for production using:
# npm run build

view raw JSON →