DEV Community

ke jia
ke jia

Posted on

How I Built a CLI That Generates 12 Project Templates in 3 Seconds

Every developer knows the pain: you have a great idea, open your terminal, and then... spend the next 30 minutes setting up boilerplate.

npm create vite@latest my-app -- --template react-ts
cd my-app
npm install
npm install tailwindcss @tailwindcss/vite
# configure tsconfig...
# set up folder structure...
# write boilerplate components...
Enter fullscreen mode Exit fullscreen mode

I got tired of it. So I built ScaffoldX.

What is ScaffoldX?

A zero-dependency CLI that generates complete, production-ready starter code for 12 different project types. One command, 3 seconds, start coding.

npx scaffoldx-cli
# Choose template → Enter name → Done!
Enter fullscreen mode Exit fullscreen mode

What's Inside

Template Stack Files
React + Vite TS, Tailwind v4, Vite 6 9
Next.js App Router, TS 8
Express API Prisma, Zod, JWT 8
FastAPI Async, Pydantic, pytest 8
Chrome Extension Manifest V3 6
Discord Bot discord.js v14 3
+ 6 more CLI Tool, Landing Page, Electron... ...

Why It's Different

  • ✅ Compiles with zero errors
  • ✅ TypeScript strict mode
  • ✅ Best-practice configs
  • ✅ Auto git init
  • ✅ Runs immediately after npm install && npm run dev

Try It

npx scaffoldx-cli
Enter fullscreen mode Exit fullscreen mode

🔗 npmjs.com/package/scaffoldx-cli

Tags: #javascript #webdev #programming #productivity #opensource

Top comments (0)