nestjs-prisma-cli
v1.0.12
Published
A CLI to generate NestJS + Prisma project boilerplate with Swagger, Auth, and AWS S3 setup
Maintainers
Readme
NestJS + Prisma Project Generator
A CLI tool to quickly scaffold a NestJS + Prisma project with pre-configured Swagger, Authentication, AWS S3 integration, and Prisma setup.
NestJS Prisma Generator CLI
A CLI tool to quickly scaffold a NestJS + Prisma project with built-in support for:
- Prisma ORM with migrations and seeding
- Swagger (OpenAPI) setup
- Authentication boilerplate
- AWS S3 integration
- Logging via Winston (rotating logs and DB persistence)
Compatible with Node.js >=18 and NestJS v10+.
Installation
Quick Start Guide
Once the CLI is installed, you can use the following commands:
1️⃣ Install CLI globally
npm install -g nestjs-prisma-cli2️⃣ Check CLI version
nestgen -vor
nestgen --version3️⃣ Generate a new project
nestgen? Enter your project name: my-app
Step 2: ? Select your database: (Use arrow keys)
MySQL
PostgreSQL
SQLite
MongoDB
CockroachDB
SQLServer
Step 3: 🎉 Project ready! Next steps:Navigate into your project
cd my-appUpdate .env
DATABASE_URL="your_database_connection_string"npx prisma generateSQL Databases
(PostgreSQL, MySQL, SQLite, CockroachDB, SQLServer)
npx prisma migrate dev --name initNoSQL Database
(MongoDB)
npx prisma db pushThen, follow this
npx ts-node prisma/seed.tsnpm run start:dev