npx @tanstack/cli create my-appnpx @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
# With add-ons
npx @tanstack/cli create my-app --add-ons tanstack-query,clerk,drizzle
# Router-only SPA (no SSR)
npx @tanstack/cli create my-app --router-only# Defaults only (TanStack Start + file-router)
npx @tanstack/cli create my-app -y
# With add-ons
npx @tanstack/cli create my-app --add-ons tanstack-query,clerk,drizzle
# Router-only SPA (no SSR)
npx @tanstack/cli create my-app --router-onlycd my-app
pnpm dev
# Open http://localhost:3000cd my-app
pnpm dev
# Open http://localhost:3000Some add-ons require API keys. After creation:
cp .env.example .env
# Edit .env with your valuescp .env.example .env
# Edit .env with your valuesmy-app/
├── src/
│ ├── routes/ # File-based routing
│ │ ├── __root.tsx # Root layout
│ │ └── index.tsx # Home page
│ └── integrations/ # Add-on integration code
├── .tanstack.json # CLI config
└── .env.example # Required env varsmy-app/
├── src/
│ ├── routes/ # File-based routing
│ │ ├── __root.tsx # Root layout
│ │ └── index.tsx # Home page
│ └── integrations/ # Add-on integration code
├── .tanstack.json # CLI config
└── .env.example # Required env vars