The fastest and most configurable way to spin up a new Next.js project.
create-next-quick is a CLI tool that lets you instantly create a new Next.js project with a highly customized and clean setup.
No global installation is needed. Run it instantly with npx:
npx create-next-quick [project-name]If you omit [project-name], the tool will prompt you for it. Use . to create in the current directory (must be empty).
The CLI will guide you through the following options:
| Prompt | Description | Default |
|---|---|---|
| Package Manager | Auto-detects installed npm, yarn, pnpm |
pnpm |
| TypeScript | Use TypeScript for type safety | Yes |
| Tailwind CSS | Use Tailwind CSS for styling | Yes |
src/ Directory |
Use the src/ directory for project structure |
Yes |
| App Router | Use the Next.js App Router | Yes |
| Pages | Enter page names to create (comma-separated) | none |
| Linter | Choose a linter (ESLint, Biome) |
none |
| ORM | Choose an ORM (Prisma, Drizzle) |
none |
| Shadcn UI | Automatically install and set up Shadcn UI | Yes |
$ npx create-next-quick my-portfolio
β Using default for package manager: pnpm
β Using default for TypeScript: Yes
β Using default for Tailwind CSS: Yes
β Using default for src directory: Yes
β Using default for app directory: Yes
? Enter the names of the pages you want to create (comma-separated): home, about, contact
β Using default for linter: none
β Using default for ORM: none
β Using default for Shadcn UI: Yescreate-next-quick is a powerful, lightweight alternative to create-next-app, designed for developers who want more control and speed right from the start.
| Feature | create-next-quick |
create-next-app |
|---|---|---|
| Multi-page Generation | β
Yes (e.g., home, about, contact) |
β No |
| ORM Support | β Yes (Prisma, Drizzle) | β No |
| Linter Choice | β Yes (ESLint, Biome) | β ESLint only |
| Shadcn UI Auto-Setup | β Yes (non-interactive) | β No |
| Clean Project Start | β Yes (removes boilerplate & default assets) | β No |
| Package Manager Detection | β Yes (npm, yarn, pnpm) | β Yes |
| Robust Error Handling | β Yes (retries, cleanup, clear tips) | β Basic |
- CLI Argument for Project Name: Skip the project name prompt by passing it as an argument.
- Custom Page Generation: Create multiple pages at once from the CLI.
- Clean Project Setup: Automatically removes the default favicon, clears the public folder, and provides a clean
page.tsxandlayout.tsx. - Safe Project Creation: Prevents accidental overwrites by checking if the target directory is empty.
- Conditional API Route Deletion: Removes the default
hello.jsAPI route when not needed.
- Package Manager Detection: Auto-detects
npm,yarn, andpnpm. - Linter Support: Choose between ESLint, Biome, or no linter.
- ORM Support: Integrated setup for Prisma or Drizzle.
- Shadcn UI: Automatically installs and configures Shadcn UI non-interactively.
- TypeScript CSS Module Support: Generates
global.d.tsto provide type declarations for CSS imports.
- Robust Error Handling: Automatic retries for failed installs, intelligent cleanup of incomplete projects, and actionable troubleshooting tips.
- Automated CI/CD Feedback: Get automated comments on the test status of your Pull Requests.
- Node.js:
v20.0.0or higher.
Once your project is created, you can use the following commands:
pnpm |
npm |
yarn |
Description |
|---|---|---|---|
pnpm dev |
npm run dev |
yarn dev |
Starts the development server. |
pnpm build |
npm run build |
yarn build |
Builds the app for production. |
pnpm start |
npm start |
yarn start |
Starts the production server. |
The test suite is dynamically generated to ensure comprehensive coverage.
- Generate Test Cases:
npm run test:generate
- Run Tests:
npm test
Contributions are welcome! Please fork the repository, create a feature branch, and open a Pull Request.
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name - Commit your changes:
git commit -m "feat: Add some amazing feature" - Push to the branch:
git push origin feature/your-feature-name - Open a Pull Request.
Give a βοΈ if this project helped you!
This project is licensed under the MIT License. See the LICENSE file for details.