# Use npx instead
npx @tanstack/cli create my-app
# Or reinstall globally
npm install -g @tanstack/cli# Use npx instead
npx @tanstack/cli create my-app
# Or reinstall globally
npm install -g @tanstack/cliUse a Node version manager:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install 20curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install 20Requires Node.js 18+:
node --version # Check
nvm install 20 # Upgradenode --version # Check
nvm install 20 # Upgradetanstack create my-app-v2 # Different name
tanstack create my-app --target-dir ./new/path # Different path
tanstack create my-app -f # Force overwritetanstack create my-app-v2 # Different name
tanstack create my-app --target-dir ./new/path # Different path
tanstack create my-app -f # Force overwriteCheck internet. Or use local:
git clone https://github.com/TanStack/cli.git
cd cli && pnpm install && pnpm build
node packages/cli/dist/index.js create my-appgit clone https://github.com/TanStack/cli.git
cd cli && pnpm install && pnpm build
node packages/cli/dist/index.js create my-appSome add-ons conflict with each other (e.g., multiple ORMs, multiple auth providers). Use --addon-details <id> to see what conflicts with what:
tanstack create --addon-details clerktanstack create --addon-details clerkcp .env.example .env
# Edit .env with your values
pnpm dev # Restartcp .env.example .env
# Edit .env with your values
pnpm dev # RestartCheck .tanstack.json has "tailwind": true and styles.css imports @import 'tailwindcss'.
tanstack mcp has been removed from the CLI. Use the CLI introspection commands instead:
tanstack create --list-add-ons --json
tanstack create --addon-details clerk --json
tanstack libraries --json
tanstack search-docs "server functions" --library start --json
tanstack ecosystem --category database --jsontanstack create --list-add-ons --json
tanstack create --addon-details clerk --json
tanstack libraries --json
tanstack search-docs "server functions" --library start --json
tanstack ecosystem --category database --jsonIf you need MCP in your generated app, keep using the mcp add-on during app creation.
See MCP Migration for command-by-command replacements.
Include when reporting:
Links: