NXT-GEN

CLI v2.0

The ultimate scaffold for modern Next.js engineering.

npm versionlicensedownloadsstars
Prisma
Drizzle
NextAuth
Clerk
Shadcn/UI
HeroUI
TanStack Query
Axios
Zod
React Hook Form
Vitest
Playwright
Docker
GitHub Actions
Prisma
Drizzle
NextAuth
Clerk
Shadcn/UI
HeroUI
TanStack Query
Axios
Zod
React Hook Form
Vitest
Playwright
Docker
GitHub Actions

BATTERIES INCLUDED

Dual ORM Support

Whether you prefer the robust ecosystem of Prisma or the lightweight speed of Drizzle, we've got you covered. Pre-configured schemas, migrations, and type-safe clients ready to go.

Prisma
Drizzle

Auth Ready

Secure your app instantly. Choose between NextAuth (Auth.js) for self-hosted control or Clerk for managed ease.

import {auth} from "auth"

React Query

Server state management pre-wired with HydrationBoundary.

Playwright

End-to-end testing scaffolded and ready to run.

Docker & CI/CD

Production-grade Dockerfiles and GitHub Actions.

UI Libraries

Shadcn/UI + HeroUI support.

CHOOSE
YOUR FLOW

Two powerful ways to start. Guided simplicity or rapid-fire efficiency.

Interactive Mode

The CLI asks you questions. You pick the answers. Perfect for first-time setup or exploring options.

Turbo Flags

One command. Zero questions. Pass your stack preferences as flags and generate in milliseconds.

setup-wizard
npx nxt-gen-cli@latest
? What is your project named?
› my-awesome-app
? Which ORM would you like to use?
Prisma
Drizzle
None
Quick Start Scenarios

Full Stack Powerhouse

Everything you need for a robust SaaS application.

nxt-gen-cli my-app --orm prisma --auth next-auth --ui both --react-query --axios --forms --docker

Modern Frontend

Perfect for landing pages and client-heavy apps.

nxt-gen-cli landing-page --ui shadcn --framer-motion --lucide --storybook

Minimal API

Lightweight backend service with type-safe database access.

nxt-gen-cli api-service --orm drizzle --axios --docker --ci
Command Reference
FlagDescription
--orm <type>ORM choice: prisma, drizzle, or none
--auth <type>Auth Provider: next-auth, clerk, or none
--ui <type>UI Library: shadcn, heroui, both, or none
--react-queryInstall React Query (TanStack Query)
--axiosInstall Axios HTTP client
--formsAdd React Hook Form and Zod
--intlAdd Internationalization (next-intl)
--dockerAdd Dockerfile and .dockerignore
--ciAdd GitHub Actions workflow
--vitestAdd Vitest for unit testing
--playwrightAdd Playwright for E2E testing
--storybookAdd Storybook component workshop
--framer-motionInstall Framer Motion
--lucideInstall Lucide React icons
--examples <type>Templates: crud, auth, both, or none
Generated Structure
my-project/
├── .github/workflows/     # CI/CD workflows
├── .husky/                # Git hooks
├── e2e/                   # Playwright E2E tests
├── messages/              # i18n locales
├── prisma/                # Prisma schema
├── src/
│   ├── app/
│   │   ├── api/           # API routes
│   │   ├── auth/          # Auth pages
│   │   ├── layout.tsx
│   │   └── page.tsx
│   ├── components/
│   │   ├── examples/      # CRUD/Auth usage
│   │   ├── providers/     # App providers
│   ├── db/                # Drizzle schema
│   ├── lib/
│   │   ├── auth.ts        # Auth config
│   │   ├── axios.ts       # API client
│   │   ├── db.ts          # DB connection
│   │   └── utils.ts
│   ├── i18n.ts            # Locale config
│   └── middleware.ts
├── Dockerfile
├── next.config.mjs
└── package.json

Prerequisites

Node.jsv18.17.0+
npmv9.0.0+

START BUILDING
IN SECONDS

Stop configuring. Start creating.

$npx nxt-gen-cli@latest
0%