Introduction
Create T3 App is an interactive CLI that scaffolds a production-ready Next.js project with a curated, type-safe stack. It was born from the T3 Stack philosophy: keep things simple, modular, and fully typed end-to-end.
What Create T3 App Does
- Scaffolds a Next.js project with optional tRPC, Prisma, NextAuth.js, and Tailwind CSS
- Generates a fully typed codebase from database to UI with zero boilerplate friction
- Provides an interactive CLI that lets you pick only the pieces you need
- Sets up environment variable validation with Zod out of the box
- Configures TypeScript strict mode and ESLint with sensible defaults
Architecture Overview
The CLI runs as a single npx command that prompts for stack choices, then copies and configures template files accordingly. Each optional integration (tRPC, Prisma, NextAuth, Tailwind) is a composable add-on layered onto the base Next.js template. The result is a monolithic Next.js app where the API layer lives in tRPC routers, the ORM is Prisma, and auth flows through NextAuth.js — all sharing TypeScript types.
Self-Hosting & Configuration
- Run
npm create t3-app@latestand follow the interactive prompts - Choose your package manager: npm, yarn, pnpm, or bun
- Select integrations: tRPC for end-to-end type-safe APIs, Prisma for database access
- Environment variables are validated at build time via
src/env.jsusing Zod schemas - Deploy to Vercel, Railway, or any Node.js host; configure
DATABASE_URLand auth secrets
Key Features
- End-to-end type safety from database schema to React components
- Modular opt-in architecture: only install what you choose
- Built-in env validation prevents runtime crashes from missing config
- First-class App Router support with React Server Components
- Active community with extensive documentation and tutorials
Comparison with Similar Tools
- Next.js CLI — bare scaffold without opinionated integrations; T3 adds a curated full-stack layer
- Blitz.js — similar full-stack approach but uses its own RPC layer; T3 relies on tRPC
- RedwoodJS — batteries-included React + GraphQL framework; T3 is lighter and Next.js-native
- create-next-app — official Next.js starter; T3 extends it with Prisma, tRPC, and auth
- SvelteKit — different framework ecosystem; T3 is React/Next.js-specific
FAQ
Q: Do I have to use every integration? A: No. The CLI lets you pick only what you need — you can skip tRPC, Prisma, or any other add-on.
Q: Does it support the Next.js App Router? A: Yes, Create T3 App supports both the App Router and Pages Router.
Q: Can I add integrations after scaffolding? A: The CLI is designed for initial setup, but each integration can be added manually following the T3 docs.
Q: Is it production-ready? A: Yes. The generated project includes TypeScript strict mode, ESLint, env validation, and is deployed by thousands of teams.