nuxt module
Search and remove modules in your Nuxt application with the command line.
Nuxt provides a few utilities to work with Nuxt modules seamlessly.
nuxt module remove
Terminal
npx nuxt module remove [MODULENAME] [--cwd=<directory>] [--logLevel=<silent|info|verbose>] [--skipInstall] [--skipConfig]
Arguments
| Argument | Description |
|---|---|
MODULENAME | Specify one or more modules to remove 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 dependency uninstall | |
--skipConfig | Skip nuxt.config.ts update |
The command uninstalls the module (unless --skipInstall is set) and removes it from your nuxt.config file (unless --skipConfig is set). If no module name is passed, you will be prompted to select from the modules registered in your nuxt.config. A module name is required when --skipConfig is set.
Example:
Terminal
npx nuxt module remove pinia
nuxt module search
Terminal
npx nuxt module search <QUERY> [--cwd=<directory>] [--nuxtVersion=<2|3>]
Arguments
| Argument | Description |
|---|---|
QUERY | keywords to search for |
Options
| Option | Default | Description |
|---|---|---|
--cwd=<directory> | . | Specify the working directory |
--nuxtVersion=<2|3> | Filter by Nuxt version and list compatible modules only (auto detected by default) |
The command searches for Nuxt modules matching your query that are compatible with your Nuxt version.
Example:
Terminal
npx nuxt module search pinia