nextcraft-cli
v0.2.0
Published
CLI tool for creating NextCraft projects
Maintainers
Readme
nextcraft-cli
Smart Next.js project generator with CLI and templates.
Installation
npx nextcraft-cli my-appOr install globally:
npm install -g nextcraft-cli
nextcraft my-appFeatures
- Multiple UI frameworks (Shadcn, Chakra, Material-UI)
- Database support (PostgreSQL, MySQL, SQLite)
- Authentication ready
- RTL support
- SEO optimized
- Responsive design
Usage
nextcraft [project-name] [options]
Options:
-m, --mode <mode> Project mode (frontend|fullstack)
--ui <framework> UI framework (shadcn|chakra|material)
--db <database> Database (postgres|sqlite|mysql)
--auth Include authentication
--rtl Enable RTL support
--no-seo Disable SEO optimization
-y, --yes Use default options
-V, --version Show version
-h, --help Show help
Commands:
add <feature> Add a feature to your project (e.g. auth)
generate <type> <name> Generate a resource (e.g. resource post)New Features (v0.2.0)
Add Authentication
Instantly add NextAuth.js with Prisma adapter:
nextcraft add authGenerate CRUD Resource
Scaffold a full CRUD feature (Schema, Actions, Form, Page):
nextcraft generate resource postExamples
Interactive mode
npx nextcraft-cli my-appFullstack with options
npx nextcraft-cli my-app --mode fullstack --ui shadcn --db postgres --authWith RTL support
npx nextcraft-cli my-app --rtlRequirements
- Node.js >= 18.0.0
- npm, pnpm, or yarn
License
MIT
