MCPcopy Index your code
hub / github.com/TanStack/cli

github.com/TanStack/cli @release-2026-06-22-2236

Chat with this repo
repository ↗ · DeepWiki ↗ · release release-2026-06-22-2236 ↗ · + Follow
1,397 symbols 3,316 edges 387 files 61 documented · 4%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

TanStack CLI

Become a Sponsor!

TanStack CLI

Create and manage TanStack Router and Start applications.

npx @tanstack/cli create my-app

Features

  • TanStack Start - Full-stack SSR framework (default)
  • TanStack Router - Type-safe routing (--router-only for SPA)
  • Add-ons - Auth, database, deployment, monitoring, and more
  • CLI Introspection - Agent-friendly discovery via JSON CLI output

Quick Start

# Create TanStack Start app (recommended)
npx @tanstack/cli create my-app

# Create Router-only SPA (no SSR)
npx @tanstack/cli create my-app --router-only

# With add-ons
npx @tanstack/cli create my-app --add-ons clerk,drizzle,tanstack-query

# Add to existing project
npx @tanstack/cli add clerk drizzle

# List available add-ons
npx @tanstack/cli create --list-add-ons

# Agent-friendly introspection
npx @tanstack/cli create --addon-details tanstack-query --json
npx @tanstack/cli libraries --json
npx @tanstack/cli search-docs "loaders" --library router --framework react --json

Documentation

Telemetry

TanStack CLI sends anonymous usage telemetry by default.

  • Sent: command usage, durations, selected framework/package manager/add-on ids, and coarse result metadata
  • Never sent: project names, file paths, target directories, raw search queries, raw template URLs/paths, add-on config values, env vars, or raw error messages
  • Disabled automatically in CI, or when DO_NOT_TRACK=1 or TANSTACK_CLI_TELEMETRY_DISABLED=1

Manage it with:

tanstack telemetry status
tanstack telemetry disable
tanstack telemetry enable

Get Involved

TanStack Ecosystem

More at TanStack.com

Extension points exported contracts — how you extend this code

ServiceWorkerGlobalScope (Interface)
* This ServiceWorker API interface represents the global execution context of a service worker. * Available only in sec
examples/custom-cli/create-rwsdk/project/base/worker-configuration.d.ts
FileUpdate (Interface)
(no doc)
packages/cli/src/file-syncer.ts
AttributionInput (Interface)
(no doc)
packages/create/src/attribution.ts
Register (Interface)
(no doc)
examples/react/blog/src/router.tsx
Register (Interface)
(no doc)
examples/solid/blog/src/router.tsx
Performance (Interface)
* The Workers runtime supports a subset of the Performance API, used to measure timing and performance, * as well as ti
examples/custom-cli/create-rwsdk/project/base/worker-configuration.d.ts
SyncResult (Interface)
(no doc)
packages/cli/src/file-syncer.ts
AttributionOutput (Interface)
(no doc)
packages/create/src/attribution.ts

Core symbols most depended-on inside this repo

replace
called by 93
examples/custom-cli/create-rwsdk/project/base/worker-configuration.d.ts
log
called by 85
examples/custom-cli/create-rwsdk/project/base/worker-configuration.d.ts
createMemoryEnvironment
called by 74
packages/create/src/environment.ts
error
called by 63
examples/custom-cli/create-rwsdk/project/base/worker-configuration.d.ts
formatCommand
called by 59
packages/create/src/utils.ts
add
called by 51
packages/cli/src/dev-watch.ts
createTemplateFile
called by 40
packages/create/src/template-file.ts
startStep
called by 38
packages/cli/src/telemetry.ts

Shape

Function 689
Interface 363
Method 240
Class 105

Languages

TypeScript100%

Modules by API surface

examples/custom-cli/create-rwsdk/project/base/worker-configuration.d.ts583 symbols
packages/cli/tests-e2e/helpers.ts27 symbols
packages/cli/src/cli.ts27 symbols
packages/cli/src/telemetry.ts23 symbols
packages/create/scripts/generate-manifest.mjs21 symbols
packages/create/src/worker.ts20 symbols
packages/cli/src/dev-watch.ts20 symbols
packages/create/src/file-helpers.ts17 symbols
packages/create/src/edge-create-app.ts13 symbols
packages/create/src/custom-add-ons/add-on.ts13 symbols
packages/cli/src/ui-prompts.ts13 symbols
packages/cli/src/telemetry-config.ts13 symbols

For agents

$ claude mcp add cli \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact