T3 Stack
Scaffold a T3 project (Next.js + tRPC + Prisma + Tailwind) via create-t3-app
Primary commands
bash
npx scafix create t3
npx scafix create t3 --no-trpc --no-prisma --tailwind --no-next-auth
npx scafix create t3 --app-router --package-manager pnpmSupported customizations
| Option | CLI flags | Type / values | Default | Notes |
|---|---|---|---|---|
| App Router | --app-router--no-app-router | boolean | true | Choose App Router or the older pages-based structure. |
| tRPC | --trpc--no-trpc | boolean | true | Include or remove the tRPC package set. |
| Prisma | --prisma--no-prisma | boolean | true | Include or remove Prisma. |
| Tailwind CSS | --tailwind--no-tailwind | boolean | true | Include or remove Tailwind CSS. |
| NextAuth | --next-auth--no-next-auth | boolean | false | Include or remove NextAuth. |
--yes defaults
| Key | value |
|---|---|
| appRouter | true |
| packages | tailwind, trpc, prisma |
| nextAuth | false |
Notes
- In
--yesmode Scafix enables Tailwind, tRPC, and Prisma, but leaves NextAuth disabled. - Scafix runs
create-t3-appwith install and git initialization disabled, then installs dependencies with the package manager you selected.
Shared flow reminder
- Shared flags such as
--name,--directory,--package-manager,--git, and--debugapply here as well. - If required values are omitted and a TTY is available, Scafix prompts for them before calling the stack adapter.
- See CLI Reference for the shared command surface used by
scafix.
