npx @tanstack/cli create my-appInteractive prompts guide you through project name, package manager, and add-on selection.
# Defaults only (TanStack Start + file-router)
npx @tanstack/cli create my-app -y
# Minimal one-route Start project
npx @tanstack/cli create my-app --blank -y
# Minimal Start project configured for Cloudflare
npx @tanstack/cli create my-app --blank --deployment cloudflare -y
# With add-ons
npx @tanstack/cli create my-app --add-ons tanstack-query,clerk,drizzle -y
# Router-only SPA (no SSR)
npx @tanstack/cli create my-app --router-only -yBlank projects omit the default starter interface, examples, Tailwind, devtools, test stack, and TanStack Intent setup. Pass --intent to include local skill mappings for coding agents. Explicit add-ons can add their own required files and dependencies. Pass -y to skip selection prompts. A non-empty target also requires --force.
cd my-app
pnpm dev
# Open http://localhost:3000Some add-ons require API keys. When the project includes .env.example:
cp .env.example .env
# Edit .env with your valuesmy-app/
├── src/
│ ├── routes/ # File-based routing
│ │ ├── __root.tsx # Root layout
│ │ └── index.tsx # Home page
│ └── integrations/ # Present when selected add-ons need it
├── .cta.json # CLI config
└── .env.example # Present when selected add-ons need env vars