Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

PingCAP TiUP

$ tiup Official High Risk
PingCAP · Database & Data · Apache-2.0 · macos / linux

PingCAP tiup is the official Apache-2.0 Go CLI and package manager for the TiDB distributed SQL ecosystem. It spins up ephemeral local clusters (tiup playground), manages multi-node production clusters (tiup cluster with --format json display), installs TiDB tools (dumpling, br, pd-ctl), and ships an official SKILL.md.

FCRS-1.0 Score
84 /100
Good
Medium Confidence
Zero-Friction Install
https://github.com/pingcap/tiup/releases
CLI vs MCP Decision CLI Preferred vs MCP

tiup orchestrates multi-component TiDB downloads, local playgrounds, and SSH-backed cluster topology lifecycles directly with SKILL.md guidance.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
✓ Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

Ships SKILL.md (official_skill) and --format json on tiup cluster display, though tiup status and tiup list emit text tables.

  • tiup cluster display <name> --format json emits structured inventory JSON
  • Ships official SKILL.md in pingcap/tiup
Trust & Safety 19 / 25

Includes pre-flight tiup cluster check and explicit -y confirmation prompts for destructive operations like destroy.

  • Pre-flight tiup cluster check and confirmation prompts on destructive commands
Setup & Portability 13 / 15

Single Go binary installed cleanly via PingCAP's installer script or GitHub releases for Linux and macOS (native Windows unsupported).

  • Lightweight Go bootstrapper managing versioned TiDB components on Linux/macOS
Utility & Efficiency 14 / 15

Single entrypoint for TiDB local playground, multi-node cluster ops, bench, dumpling, and br.

  • Unified component manager for the entire TiDB toolchain
Maintenance & Lineage 9 / 10

Official pingcap/tiup repository actively maintained by PingCAP under Apache-2.0.

  • Official pingcap/tiup repo (Apache-2.0)
Docs & Verifiability 9 / 10

Extensive bilingual PingCAP documentation, SKILL.md, and modular component --help.

  • Comprehensive docs at docs.pingcap.com and SKILL.md

Security, Auth & Guardrails

Auth Modes
Config File
Credential Storage

Stores TiUP component metadata, SSH keys/topology configs, and local instance state under ~/.tiup/.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

CLI and TiDB Community Edition are free (Apache-2.0); host infrastructure incurs compute/storage costs.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# TiUP Agent Rules
- Run `tiup cluster list` and `tiup cluster display <name> --format json` before mutating any cluster.
- Always run `tiup cluster check` prior to `tiup cluster deploy` or `scale-out`.
- Never execute `tiup cluster destroy` or `scale-in` without explicit human confirmation.

Agent-Ready Command Recipes

Safe Read-Only Queries

List deployed TiDB clusters
tiup cluster list

Lists all TiDB clusters registered in local ~/.tiup/storage/cluster/clusters/.

Inspect cluster topology and node status in JSON
tiup cluster display prod-tidb --format json

Returns node roles, hosts, ports, and health states in structured JSON.

Controlled Writes & Previews

Check cluster deployment topology before applying
tiup cluster check ./topology.yaml --apply

Validates OS kernel limits, ports, and SSH connectivity before cluster deployment.

Strengths for Agents

  • + Ships official SKILL.md and supports --format json for tiup cluster display.
  • + Pre-flight tiup cluster check catches OS and network issues before deployment.
  • + Single entrypoint for both local tiup playground testing and production tiup cluster ops.

Caveats & Pitfalls

  • ! tiup status and tiup list still output plain tables without universal --json support.
  • ! Targets Linux and macOS; Windows requires WSL2.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI