A powerful CLI tool to quickly scaffold Next.js projects with popular features like shadcn/ui, NextAuth.js, and Turbopack. Built with TypeScript and designed to work seamlessly with Next.js 15 and Tailwind CSS v4.
- π― Interactive Setup - Uses the official
create-next-appfor base project creation - π¨ shadcn/ui Integration - Automatically sets up shadcn/ui with Tailwind CSS v4 compatibility
- π NextAuth.js Support - Optional authentication setup with popular providers
- β‘ Turbopack Ready - Optional Turbopack support for faster development
- π¦ Multi Package Manager - Supports npm, yarn, pnpm, and bun
- π§ Smart Detection - Automatically detects project structure and adapts configuration
- π Modern Stack - Full TypeScript support and Next.js 15 compatibility
npx create-rdp-appnpm install -g create-rdp-app
create-rdp-app- π― Project Setup - Asks for basic project configuration
- π οΈ Next.js Creation - Uses official
create-next-appwith your preferences - π Smart Detection - Analyzes the created project structure
- π¨ Feature Installation - Adds requested features like shadcn/ui and NextAuth.js
- β Ready to Go - Complete setup with all dependencies installed
- β TypeScript / JavaScript
- β ESLint
- β Tailwind CSS (v3 & v4 compatible)
- β src/ directory structure
- β App Router / Pages Router
- β Custom import aliases
- β Multiple package managers
- π¨ shadcn/ui - Beautiful UI components (requires Tailwind CSS)
- π NextAuth.js - Complete authentication solution
- β‘ Turbopack - Next.js 14+ fast refresh and bundling
- Node.js 16.0.0 or higher
- Package Manager - npm, yarn, pnpm, or bun
$ npx create-rdp-app
π Next.js Project Generator
This tool will first create a Next.js project using the official installer,
then add optional features like shadcn/ui and NextAuth.js.
? What is your project name? my-awesome-app
? Which package manager would you like to use? yarn
? Do you want to add shadcn/ui after project creation? Yes
? Do you want to add NextAuth.js after project creation? No
? Do you want to use Turbopack for faster development? Yes
π Creating Next.js app using create-next-app...
# ... Next.js installation questions ...
π Detected project structure:
β’ TypeScript: β
β’ Tailwind CSS: β
(v4)
β’ src/ directory: β
π¨ Setting up shadcn/ui...
# ... shadcn/ui configuration ...
β
Project setup complete!This tool is specifically designed to work with Next.js 15's default Tailwind CSS v4 setup:
- β
Preserves v4 Configuration - Keeps your
postcss.config.mjswith@tailwindcss/postcss - β
shadcn/ui Compatible - Creates minimal
tailwind.config.jsonly for component generation - β Best of Both Worlds - Modern v4 features + beautiful UI components
If you prefer to set up features manually:
yarn add -D tailwindcss-animate
npx shadcn@latest init
npx shadcn@latest add button card input labelyarn add next-auth@beta @auth/prisma-adapter prisma @prisma/clientAfter running create-rdp-app, your project will have:
my-app/
βββ src/
β βββ app/
β β βββ globals.css
β β βββ layout.tsx
β β βββ page.tsx
β βββ components/
β β βββ ui/ # shadcn/ui components (if selected)
β βββ lib/
β β βββ utils.ts # Tailwind utilities
β β βββ auth.ts # NextAuth config (if selected)
β βββ hooks/
β βββ types/
βββ components.json # shadcn/ui config
βββ tailwind.config.js # Minimal config for shadcn/ui
βββ postcss.config.mjs # Tailwind v4 config
βββ package.json
Contributions are welcome! Please feel free to submit a Pull Request.
- Clone the repository
git clone https://github.com/rdp-datacenter/cli.git create-rdp-app
cd create-rdp-app- Install dependencies
npm install- Build the project
npm run build- Test locally
npm link
create-rdp-appMIT License - see the LICENCE file for details.
- Next.js for the amazing React framework
- shadcn/ui for beautiful UI components
- NextAuth.js for authentication
- Tailwind CSS for utility-first CSS
Happy coding! π