A CLI tool (v1.1.6) to scaffold a production-ready NestJS 11 backend with JWT + OAuth2 authentication, Prisma ORM v7, PostgreSQL/SQLite support, and additional features like RBAC, avatar upload, email verification, Socket.IO, and event-driven architecture. It auto-generates .env with random JWT secrets, supports switching between SQLite and PostgreSQL, and provides an upgrade mechanism to keep existing projects in sync with the latest template. Release cadence is irregular; maintained on GitHub. Key differentiators include OAuth2 support (Google, Discord), upgrade utility, and configurable database selection at scaffold time.
npm install create-base-nestjsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Scaffolds a new NestJS project named 'my-project' using defaults (SQLite, prompts skipped).
Always commit or backup before running `npx create-base-nestjs --upgrade`. Review changes with `git diff` after upgrade.
Manually update .env after scaffolding to use secure credentials.
After scaffolding, fill in GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET in .env.
Review dependency changes in package.json before upgrade; consider running in a test branch.
Do not manually delete .base-nest-version; if missing, recreate by running `npx create-base-nestjs --upgrade` again.
Run `npm install` inside the scaffolded project directory before starting.
Ensure PostgreSQL is running and credentials match .env. Run `npx prisma migrate dev` after fixing.
Copy .env.example to .env and run `npx create-base-nestjs --jwt-secret` to generate secrets, or manually set JWT_SECRET and JWT_REFRESH_SECRET.
Kill the process occupying port 3000 or change port in .env (APP_PORT).