# Use npx instead
npx @tanstack/cli create my-app
# Or reinstall globally
npm install -g @tanstack/cli
Use a Node version manager:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install 20
Requires Node.js 18+:
node --version # Check
nvm install 20 # Upgrade
tanstack create my-app-v2 # Different name
tanstack create my-app --target-dir ./new/path # Different path
Check internet. Or use local:
git clone https://github.com/TanStack/cli.git
tanstack create my-app --integrations-path ./cli/integrations
Choose one per group:
cp .env.example .env
# Edit .env with your values
pnpm dev # Restart
Check .tanstack.json has "tailwind": true and styles.css imports @import 'tailwindcss'.
Config location:
Config format:
{
"mcpServers": {
"tanstack": {
"command": "npx",
"args": ["@tanstack/cli", "mcp"]
}
}
}
Restart Claude Desktop completely
lsof -i :8080 # Check port
tanstack mcp --sse --port 3001 # Use different port
Include when reporting:
Links: