create-t3-app scaffolds a new full-stack Next.js project with optional TypeScript, tRPC, Prisma, Tailwind, and NextAuth pieces you pick at install time.
Overview
create-t3-app is a command-line scaffolder for the T3 Stack, a web development setup centered on full-stack TypeScript safety and modularity. Running npm create t3-app prompts you to include or skip each major piece rather than forcing a monolithic template.
Typical optional modules are Next.js for the React framework layer, Prisma for database access, tRPC for end-to-end typed APIs between client and server, Tailwind CSS for styling, TypeScript throughout, and NextAuth.js for authentication tied to your database. The maintainers treat typesafety as non-negotiable for anything the CLI generates and avoid bundling unrelated state-management libraries.
The CLI encodes team opinions from long T3 Stack usage: solve concrete problems with included dependencies, adopt newer tech where rollback is easy (such as tRPC functions), and leave deployment and niche libraries to the application author. Output is a starter codebase you extend with your own packages.
Community chat runs on Discord; documentation covers advanced CLI flags beyond the default interactive flow.
Key features
- Prompt-driven modular stack selection
- Next.js and React foundation
- Optional Prisma database layer
- Optional tRPC typed API routes
- Optional Tailwind CSS setup
- Optional NextAuth.js integration
- Strict TypeScript project defaults
- npm, yarn, pnpm, and bun entrypoints
Use cases
- Bootstrapping a typesafe SaaS product
- Teaching full-stack TypeScript patterns
- Starting apps with auth and database
- Teams standardizing T3 conventions
- Prototypes with selective dependencies