Loading...
Loading...
Project scaffolding CLI with 30+ integrations, custom templates, and MCP server for AI agents.
npx skill4agent add tanstack-skills/tanstack-skills tanstack-cli@tanstack/cli# Create a new project (interactive)
npx @tanstack/cli create my-app
# Create with specific integrations
npx @tanstack/cli create my-app --integrations tanstack-query,clerk,drizzle
# Global install
npm install -g @tanstack/cli
tanstack create my-appnpx @tanstack/cli create my-app
# Prompts for:
# - Project name
# - Integration selection
# - Configuration options# Multiple integrations
npx @tanstack/cli create my-app --integrations tanstack-query,tanstack-form,drizzle,neon,clerk
# Deployment target
npx @tanstack/cli create my-app --integrations vercel
# Full stack setup
npx @tanstack/cli create my-app --integrations tanstack-query,tanstack-form,tanstack-table,clerk,drizzle,neon,vercel,sentry| Integration | Description |
|---|---|
| Async state management |
| Type-safe form management |
| Headless table/datagrid |
| Reactive data store |
| List virtualization |
| AI SDK integration |
| Client-side database |
| Debouncing/throttling utilities |
| Integration | Description |
|---|---|
| Clerk authentication |
| Better Auth integration |
| WorkOS identity management |
| Integration | Description |
|---|---|
| Drizzle ORM |
| Prisma ORM |
| Neon serverless Postgres |
| Convex backend platform |
| Integration | Description |
|---|---|
| Vercel deployment |
| Netlify deployment |
| Cloudflare Workers/Pages |
| Nitro server engine |
| Integration | Description |
|---|---|
| ESLint configuration |
| Biome linting/formatting |
| shadcn/ui component library |
| Storybook component development |
| Integration | Description |
|---|---|
| tRPC type-safe API |
| oRPC integration |
| Integration | Description |
|---|---|
| Error monitoring |
| Internationalization (i18n) |
| Strapi CMS |
# Create a project as a template base
npx @tanstack/cli create my-template --integrations tanstack-query,drizzle,clerk
# Share as a git repository or npm package# From git repository
npx @tanstack/cli create my-app --template https://github.com/myorg/my-template
# From local path
npx @tanstack/cli create my-app --template ./templates/my-templatemy-template/
├── template.config.ts # Template configuration
├── src/
│ ├── app/
│ │ ├── routes/
│ │ └── components/
│ └── lib/
├── package.json
├── tsconfig.json
├── app.config.ts
└── vite.config.ts// .claude/mcp.json or equivalent
{
"mcpServers": {
"tanstack": {
"command": "npx",
"args": ["@tanstack/cli", "mcp"]
}
}
}my-app/
├── src/
│ ├── app/
│ │ ├── routes/
│ │ │ ├── __root.tsx
│ │ │ └── index.tsx
│ │ ├── router.tsx
│ │ ├── routeTree.gen.ts
│ │ └── client.tsx
│ ├── lib/
│ │ ├── db.ts # (if drizzle/prisma)
│ │ ├── auth.ts # (if clerk/better-auth)
│ │ └── query.ts # (if tanstack-query)
│ └── components/
├── app.config.ts
├── vite.config.ts
├── package.json
├── tsconfig.json
└── .env.example| Command | Description |
|---|---|
| Create a new project |
| Create with specific integrations |
| Create from template |
| Start the MCP server |
--integrations.env.exampleclerk,drizzle,neon.env.examplenpm installpnpm installnpx @tanstack/cli