Skip to content

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 pnpm

Supported customizations

OptionCLI flagsType / valuesDefaultNotes
App Router--app-router
--no-app-router
booleantrueChoose App Router or the older pages-based structure.
tRPC--trpc
--no-trpc
booleantrueInclude or remove the tRPC package set.
Prisma--prisma
--no-prisma
booleantrueInclude or remove Prisma.
Tailwind CSS--tailwind
--no-tailwind
booleantrueInclude or remove Tailwind CSS.
NextAuth--next-auth
--no-next-auth
booleanfalseInclude or remove NextAuth.

--yes defaults

Keyvalue
appRoutertrue
packagestailwind, trpc, prisma
nextAuthfalse

Notes

  • In --yes mode Scafix enables Tailwind, tRPC, and Prisma, but leaves NextAuth disabled.
  • Scafix runs create-t3-app with 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 --debug apply 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.

Released under the MIT License.