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
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
| Argument | Description |
|---|---|
MODULENAME | Specify one or more modules to install by name, separated by spaces |
Options
| Option | Default | Description |
|---|---|---|
--cwd=<directory> | . | Specify the working directory |
--logLevel=<silent|info|verbose> | Specify build-time log level | |
--skipInstall | Skip npm install | |
--skipConfig | Skip nuxt.config.ts update | |
--dev | Install 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
--skipInstallis set) - add it to your package.json file (unless
--skipInstallis set) - update your
nuxt.configfile (unless--skipConfigis 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.