Skip to content

Scaffold opinionated Next.js apps with shadcn/ui, prisma or drizzle, better-auth and seeding script — with your preferred package manager.

Notifications You must be signed in to change notification settings

iamsuudi/nextjs-starter-cli

Repository files navigation

🚀 nextjs-start-cli

A beautiful, opinionated CLI tool to scaffold fully-featured Next.js 15+ projects with ease.
Supports shadcn/ui, Better-Auth, Prisma or Drizzle, SQLite setup, multi-package manager support (pnpm, npm, bun) — and all the batteries included!


🎥 Demo

Watch the demo

✨ Features

  • ⚡ Fast and interactive setup with @clack/prompts
  • 📦 Supports pnpm, npm, and bun
  • 🎨 Fully configured shadcn/ui
  • 🛠️ Choose between Prisma or Drizzle as the database adapter
  • 🔐 Authentication powered by Better Auth (pre-integrated)
  • 🧩 Modular structure with optional src/ directory support
  • 🧱 Prebuilt templates for layout, components, theme provider, and more

📦 Installation

# Using pnpm
pnpm dlx nextjs-start-cli

# Using npm
npx nextjs-start-cli

# Using bun
bunx nextjs-start-cli

🧪 What You Get

After running the CLI, you'll get:

  • A fresh Next.js app (app/ directory routing)
  • tailwind.config.ts and postcss.config.js
  • @shadcn/ui installed and configured with dark/light mode
  • Components like Button, DropdownMenu, ThemeProvider, ModeToggle
  • Optional Prisma or Drizzle + SQLite setup
  • Database schema or config files
  • Latest prisma client setup
  • Optional Database seeding script
  • Full Better-Auth set-up for client and server components
  • Sensible .gitignore and initial env scaffolding

🛠️ Usage

After running the CLI:

# Start your Next.js project
cd your-project-name
pnpm dev

If you chose Prisma:

pnpm dlx prisma migrate dev

If you chose Drizzle:

pnpm dlx drizzle-kit generate

📦 Tech Stack


🙌 Contributing

Contributions, ideas, and feedback are welcome!
Feel free to open issues or submit pull requests.


📜 License

MIT © Abdulfetah Suudi


⭐️ Show your support

If you find this project helpful, consider starring the repo ⭐
That helps others discover it!

About

Scaffold opinionated Next.js apps with shadcn/ui, prisma or drizzle, better-auth and seeding script — with your preferred package manager.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •