TanStack CLI

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

  • 1,301 ★ on the repository
  • Last commit
  • MIT
CLI

Extended access

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.

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • 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

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.

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.

Discussion

No questions or reviews yet.

CLI tools

Four skills with prioritized rules for TanStack Query, Router and Start: caching, routing and server functions.

SkillMinimal access230Repository stars

ViraStack Start scaffolds a Next.js or TanStack Start project and sets up Claude Code and Cursor rules in one command.

CLIMinimal access103Repository stars

Rockpack Starter is a React CLI with app and library templates built around TypeScript and extensible Webpack configuration.

CLIExtended access1.2KRepository stars

Angular’s official CLI creates application workspaces, starts development servers and supports ongoing project maintenance.

CLIExtended access27KRepository stars

VibeStart composes a TypeScript project from chosen stack layers and gives the agent a verified base with rules and tests.

SkillExtended access292Repository stars

CLI and local MCP server for web projects: templates, design systems, static checks and verification scripts.

CLIExtended access110Repository stars

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.

README badge

Report a problem