A modern, professional TUI (Terminal User Interface) to bootstrap Next.js projects with a pre-configured stack. Built to provide a "ready-to-go" developer experience with industry-standard libraries.
- Framework: Next.js (Latest) with App Router & TypeScript.
- Styling: Tailwind CSS and Shadcn/UI integration.
- Linting & Formatting: Choice between Biome.js (Ultra-fast) or ESLint + Prettier.
- Database (ORM): Automatic configuration for Drizzle ORM or Prisma.
- Tools Injection:
- TanStack Query: Pre-configured
QueryClientandProviders.tsx. - NextAuth.js: Initial configuration and session provider.
- Zustand: Example persistent store.
- Zod: Validation library ready to use.
- TanStack Query: Pre-configured
- Interactive TUI: Beautiful prompts using
@clack/prompts. - Live Feedback: Real-time streaming of
create-next-appprogress inside the TUI spinner. - Clean Architecture: Automatically generates a professional directory structure (
hooks,services,types,lib, etc.).
- Node.js (Latest LTS recommended)
- npm
-
Clone the repository:
git clone https://github.com/loudrifle/create-template-cli.git cd create-template-cli -
Install dependencies:
npm install
-
Run in development mode:
npm run dev
-
Build & Test:
npm run build npm start
-
Global Link:
npm link create-template-cli
src/
├── app/
│ └── layout.tsx (Modified with Providers)
├── components/
│ ├── common/
│ ├── providers/
│ └── ui/
├── hooks/
├── lib/
│ ├── db/ (Drizzle) or prisma.ts (Prisma)
│ ├── auth.ts
│ └── query-client.ts
├── services/
├── store/
└── types/
ISC