npx @tanstack/cli create my-app
Interactive prompts guide you through project name, package manager, and integration selection.
# Defaults only
npx @tanstack/cli create my-app -y
# With integrations
npx @tanstack/cli create my-app --integrations tanstack-query,clerk,drizzle
cd my-app
pnpm dev
# Open http://localhost:3000
Some integrations require API keys. After creation:
cp .env.example .env
# Edit .env with your values
my-app/
├── src/
│ ├── routes/ # File-based routing
│ │ ├── __root.tsx # Root layout
│ │ └── index.tsx # Home page
│ └── integrations/ # Integration code
├── .tanstack.json # CLI config
└── .env.example # Required env vars