TanStack CLI

The official CLI for creating TanStack Start and Router apps, with machine-readable JSON output for coding agents

CLI

Medium risk

We rate an entry medium when the tool runs code, makes network calls or reads project files. Check what exactly it does before installing.

Why this level

  • Creates project files and runs dependency installation through a package manager
  • Reaches the network for packages, docs and ecosystem data, and sends anonymous telemetry by default
All reasons and checks

tanstack/cli

Install

Manual install

npx @tanstack/cli create my-app

Creates a TanStack Start app. Add --router-only for a Router SPA, --add-ons for blocks, -y to accept defaults.

This is third-party code. Review the repository files before installing.

What it does

TanStack CLI scaffolds and configures TanStack Start and Router applications. The create command builds a project: a full SSR Start app by default, or a single-page app on file-based routing with the router-only flag. Add-ons wire in auth, a database, deployment, monitoring and other blocks, both at creation and into an existing project via the add command. For coding agents there is introspection: commands print the add-on list, add-on details, the ecosystem library list and a docs search as JSON, so an agent can decide deterministically. The former built-in MCP server has been removed; agents now use direct CLI commands with the json flag instead. The intent flag adds local skill mappings for coding agents to the project.

Who it is for. For React or Solid frontend developers and their coding agents who create and configure TanStack applications.

Good fit when

  • You need to create a new TanStack Start app or a Router-only SPA
  • You need to add auth, a database or deployment to a project via add-ons
  • You want an agent to discover available add-ons and docs through JSON output

Not a fit when

  • The project is not on TanStack, React or Solid
  • You specifically need an MCP server: it was removed from the CLI, only command introspection with json remains

Example request

Create a TanStack Start app with Clerk auth and a Drizzle database

Limitations

You need Node and a package manager. The create command installs dependencies and writes files into the project directory, supporting npm, pnpm, yarn, bun and deno. The CLI sends anonymous usage telemetry by default: disable it with DO_NOT_TRACK=1 or TANSTACK_CLI_TELEMETRY_DISABLED=1, or the tanstack telemetry disable command; it is off in CI. The built-in MCP server is removed and will not return.

How to disable. No separate install is needed when run via npx. If you installed the package globally, remove @tanstack/cli with your package manager.

Security check

  • Creates project files and runs dependency installation through a package manager
  • Reaches the network for packages, docs and ecosystem data, and sends anonymous telemetry by default

README in short

The README presents TanStack CLI as a tool to create and maintain TanStack Router and Start applications and shows the main entry via npx @tanstack/cli create my-app. It lists features: Start as a full SSR framework, Router for type-safe routing, add-ons for auth, database, deployment and monitoring, and introspection with JSON output for agents. It gives examples of the create and add commands and flags for a minimal project, framework and package-manager choice. It separately documents anonymous telemetry and how to disable it. The migration docs note that the built-in MCP server was removed in favor of direct CLI commands. MIT licensed.

FAQ

Does the CLI have an MCP server?

No, the tanstack mcp command was removed. Agents use direct CLI commands with the json flag to introspect add-ons, libraries and docs.

Which frameworks are supported?

React and Solid. By default it builds a TanStack Start app with SSR; the router-only flag produces a Router SPA.

Editors’ pick

Official Claude Code plugin from the Next.js repo: adopting Cache Components and Partial Prefetching, and verifying changes on a running dev server

PluginMedium riskNo VPN needed142.9KRepository stars
Editors’ pick

Official shadcn/ui skill and MCP server: the agent searches registries, adds components via the CLI and follows the library's rules

SkillMedium riskNo VPN needed124.8KRepository stars
Editors’ pick

A frontend design skill with 23 commands, live browser iteration and 61 detector rules for common AI-generated UI tells

SkillHigh risk72.1KRepository stars
Editors’ pick

Vercel's skills: React and Next.js performance, UI guideline audits, React Native, component composition and deploys

SkillMedium risk31.7KRepository stars
Foxx AITanStack CLI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.