Nuxt 3 reached end of life on 31 July 2026
It no longer receives bug fixes or security patches. Upgrade to Nuxt 4 or get extended support from HeroDevs

nuxt add

Source
Add modules to your Nuxt application with the command line.
Terminal
npx nuxt add <MODULENAME> [--cwd=<directory>] [--logLevel=<silent|info|verbose>] [--skipInstall] [--skipConfig] [--dev]

Arguments

ArgumentDescription
MODULENAMESpecify one or more modules to install by name, separated by spaces

Options

OptionDefaultDescription
--cwd=<directory>.Specify the working directory
--logLevel=<silent|info|verbose>Specify build-time log level
--skipInstallSkip npm install
--skipConfigSkip nuxt.config.ts update
--devInstall modules as dev dependencies

The command lets you install Nuxt modules in your application with no manual work.

When running the command, it will:

  • install the module as a dependency using your package manager (unless --skipInstall is set)
  • add it to your package.json file (unless --skipInstall is set)
  • update your nuxt.config file (unless --skipConfig is set)

If no module name is passed, you will be prompted to search for and select modules to add.

Example:

Installing the Pinia module

Terminal
npx nuxt add pinia
nuxt module add is an alias for nuxt add.
Read more about the other nuxt module commands.