2.4.0 introduced a new feature allowing custom commands to be added to Nuxt's CLI.
nuxt build and
nuxt generate, you can now run
nuxt init and
nuxt test among others listed below:
| ||Generate a project template to get you started|
| ||Test code with Jest using presets for handling Vue components|
| ||Lint code with ESLint using a preset config for resolving Nuxt path aliases|
| ||Format code with Prettier and optionally ESLint by passing |
| ||Delete generated files and directories|
| ||Serve a statically generated site created with |
| ||Generate a Webpack Bundle Analyzer report showing client bundle build stats|
To view the usage dialog for any command add
nuxt init -h or
nuxt test --help
The same information can also be found on the respective command page by clicking the command in the table above or in the navigation sidebar.