Scaffold a production-ready Next.js + Material UI application in seconds.
The generated project comes preconfigured with:
- β‘ Next.js App Router
- π¨ Material UI
- π¦ TypeScript or JavaScript templates
- π§Ή ESLint Flat Config
- π Scalable project structure
No global installation required.
Create a new project:
npx create-next-mui my-appor
npm init next-muiIf no project name is provided, the CLI will guide you through the setup interactively.
npx create-next-muiUse the --yes (or -y) flag to skip prompts and accept the default configuration.
npx create-next-mui my-app --yesThis will automatically:
- use the provided project name
- select the TypeScript template
- generate the project without prompting
This is especially useful for:
- CI/CD pipelines
- automation scripts
- testing
- quick project generation
Without --yes, the CLI walks you through the available options.
Current prompts include:
- Project name
- Language selection
- TypeScript (recommended)
- JavaScript
- Features
- Zustand
- React Query ( TanStack Query )
Recommended for most projects.
Includes:
- TypeScript
- strict type checking
- MUI theme typings
- ESLint Flat Config
For developers who prefer JavaScript.
Includes:
- modern JavaScript
- Material UI
- ESLint Flat Config
- Zustand
- React Query ( TanStack Query )
my-app/
βββ src/
β βββ app/
β βββ components/
β βββ theme/
βββ eslint.config.mjs
βββ next.config.js
βββ package.json
βββ README.md
Every generated project comes configured with:
- Next.js App Router
- Material UI
- Theme Provider
- Emotion integration
- ESLint v9 Flat Config
- eslint-plugin-perfectionist
- eslint-plugin-unused-imports
- organized project structure
Development artifacts such as node_modules, .next, and build caches are excluded from generated projects.
After scaffolding:
cd my-app
npm install
npm run devUseful scripts:
npm run devStart the development server.
npm run lintRun ESLint.
npm run buildCreate a production build.
npx create-next-mui my-appnpx create-next-muinpx create-next-mui my-app --yesor
npx create-next-mui my-app -y- Launched v0.2.0 with plugins π€©
- Launched v0.1.0 π
Issues and pull requests are welcome.
If you'd like to improve the templates or add new features, feel free to open an issue or submit a PR.
MIT
