Skip to content

rdp-datacenter/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ RDP CLI

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.

npm version npm downloads Build

✨ Features

  • 🎯 Interactive Setup - Uses the official create-next-app for 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

πŸš€ Quick Start

Usage

npx create-rdp-app

Global Installation (Optional)

npm install -g create-rdp-app
create-rdp-app

πŸ“‹ What It Does

  1. 🎯 Project Setup - Asks for basic project configuration
  2. πŸ› οΈ Next.js Creation - Uses official create-next-app with your preferences
  3. πŸ” Smart Detection - Analyzes the created project structure
  4. 🎨 Feature Installation - Adds requested features like shadcn/ui and NextAuth.js
  5. βœ… Ready to Go - Complete setup with all dependencies installed

🎨 Supported Features

Core Configuration

  • βœ… TypeScript / JavaScript
  • βœ… ESLint
  • βœ… Tailwind CSS (v3 & v4 compatible)
  • βœ… src/ directory structure
  • βœ… App Router / Pages Router
  • βœ… Custom import aliases
  • βœ… Multiple package managers

Optional Additions

  • 🎨 shadcn/ui - Beautiful UI components (requires Tailwind CSS)
  • πŸ” NextAuth.js - Complete authentication solution
  • ⚑ Turbopack - Next.js 14+ fast refresh and bundling

πŸ”§ Requirements

  • Node.js 16.0.0 or higher
  • Package Manager - npm, yarn, pnpm, or bun

πŸ“š Example Usage

$ 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!

🎯 Tailwind CSS v4 Compatibility

This tool is specifically designed to work with Next.js 15's default Tailwind CSS v4 setup:

  • βœ… Preserves v4 Configuration - Keeps your postcss.config.mjs with @tailwindcss/postcss
  • βœ… shadcn/ui Compatible - Creates minimal tailwind.config.js only for component generation
  • βœ… Best of Both Worlds - Modern v4 features + beautiful UI components

πŸ› οΈ Manual Setup (if needed)

If you prefer to set up features manually:

shadcn/ui Setup

yarn add -D tailwindcss-animate
npx shadcn@latest init
npx shadcn@latest add button card input label

NextAuth.js Setup

yarn add next-auth@beta @auth/prisma-adapter prisma @prisma/client

πŸ“ Project Structure

After 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

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Development Setup

  1. Clone the repository
git clone https://github.com/rdp-datacenter/cli.git create-rdp-app
cd create-rdp-app
  1. Install dependencies
npm install
  1. Build the project
npm run build
  1. Test locally
npm link
create-rdp-app

πŸ“„ License

MIT License - see the LICENCE file for details.

πŸ™ Acknowledgments


Happy coding! πŸš€

About

A powerful CLI tool to quickly scaffold Next.js projects with popular features like shadcn/ui, NextAuth.js, and Turbopack

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors