How do you create a new Nuxt.js project?

Answer

The official way to scaffold a new Nuxt 3 project is using npx nuxi@latest init my-app. This uses nuxi, the Nuxt CLI, to create a minimal project with the required structure. After scaffolding, you run cd my-app && npm install followed by npm run dev to start the development server. Nuxi also supports additional commands like nuxi add page about to generate pages, nuxi add component Header to generate components, and nuxi build to create a production build. You can optionally use the Nuxt starter templates on StackBlitz for instant online development.