Thanks to visit codestin.com
Credit goes to tanstack.com

Usage

CLI Reference

tanstack create

Create a new TanStack application. By default creates a TanStack Start app with SSR.

sh
tanstack create [project-name] [options]
OptionDescription
--add-ons <ids>Comma-separated add-on IDs
--starter <url>Starter URL or local path
--package-manager <pm>npm, pnpm, yarn, bun, deno
--framework <name>React, Solid
--router-onlyCreate Router-only SPA without TanStack Start (no SSR)
--toolchain <id>Toolchain add-on (use --list-add-ons to see options)
--deployment <id>Deployment add-on (use --list-add-ons to see options)
--tailwind / --no-tailwindInclude/skip Tailwind CSS
--no-gitSkip git init
--no-installSkip dependency install
-y, --yesUse defaults, skip prompts
--interactiveForce interactive mode
--target-dir <path>Custom output directory
-f, --forceOverwrite existing directory
--list-add-onsList all available add-ons
--addon-details <id>Show details for specific add-on
--add-on-config <json>JSON string with add-on options
--uiLaunch visual project builder
sh
# Examples
tanstack create my-app -y
tanstack create my-app --add-ons clerk,drizzle,tanstack-query
tanstack create my-app --router-only --add-ons tanstack-query
tanstack create my-app --starter https://example.com/starter.json

tanstack add

Add add-ons to an existing project.

sh
tanstack add [add-on...] [options]
OptionDescription
--forcedForce add-on installation even if conflicts exist
--uiLaunch visual add-on picker
sh
# Examples
tanstack add clerk drizzle
tanstack add tanstack-query,tanstack-form
tanstack add --ui

tanstack add-on

Create and manage custom add-ons.

init

Extract add-on from current project:

sh
tanstack add-on init

Creates .add-on/ folder with info.json and assets/.

compile

Rebuild after changes:

sh
tanstack add-on compile

See Creating Add-ons for full guide.


tanstack starter

Create reusable project presets.

init

sh
tanstack starter init

Creates starter-info.json and starter.json.

compile

sh
tanstack starter compile

See Starters for full guide.


tanstack mcp

Start MCP server for AI agents.

sh
tanstack mcp [options]
OptionDescription
--sseHTTP/SSE mode (default: stdio)

See MCP Server for setup.


tanstack pin-versions

Pin TanStack package versions to avoid conflicts.

sh
tanstack pin-versions

Removes ^ from version ranges for TanStack packages and adds any missing peer dependencies.


Configuration

Projects include .tanstack.json:

json
{
  "version": 1,
  "projectName": "my-app",
  "framework": "react",
  "mode": "file-router",
  "typescript": true,
  "tailwind": true,
  "packageManager": "pnpm",
  "chosenAddOns": ["tanstack-query", "clerk"]
}

Used by add-on init and starter init to detect changes.