PingCAP TiUP
$ tiup 官方出品 高风险PingCAP tiup 是 TiDB 分布式数据库生态的官方 Apache-2.0 Go 命令行与组件管理器,可一键拉起本地测试集群(tiup playground)、编排多节点生产集群(tiup cluster 支持 --format json 展示)、管理 dumpling/br/pd-ctl 等生态工具,并内置官方 SKILL.md。
https://github.com/pingcap/tiup/releases tiup 负责多组件下载、本地沙箱启动与基于 SSH 的集群拓扑运维,并自带 SKILL.md 指导,显著优于无状态 MCP 封装。
核心事实概览
- 命令名
- $ tiup
- FCRS-1.0 总分
- 84/100 (良好 (Good))
- 证据置信度
- 中置信度 (源码/文档)
- CLI vs MCP 建议
- 优先选 CLI
- 评测日期
Agent 友好度体检单
当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。
FCRS-1.0 六维评分拆解
内置官方 SKILL.md(official_skill)并在 tiup cluster display 支持 --format json,但 tiup status 与 tiup list 仍输出文本表格。
tiup cluster display <name> --format jsonemits structured inventory JSON- Ships official
SKILL.mdinpingcap/tiup
提供 tiup cluster check 上线前预检,并在 destroy 等破坏性操作上默认要求二次确认(或显式 -y)。
- Pre-flight
tiup cluster checkand confirmation prompts on destructive commands
轻量 Go 二进制引导器,通过官方安装脚本或 GitHub Releases 支持 Linux 与 macOS(Windows 需使用 WSL2)。
- Lightweight Go bootstrapper managing versioned TiDB components on Linux/macOS
统一托管 TiDB 本地 playground、生产 cluster 运维、bench、dumpling 与 br 等全套工具。
- Unified component manager for the entire TiDB toolchain
由 PingCAP 官方团队在 pingcap/tiup 仓库以 Apache-2.0 协议持续维护。
- Official
pingcap/tiuprepo (Apache-2.0)
在 docs.pingcap.com 具备详尽的中英文文档、SKILL.md 以及按组件拆分的 --help。
- Comprehensive docs at docs.pingcap.com and
SKILL.md
安全边界、鉴权与放权指南
在 ~/.tiup/ 目录下保存组件元数据、SSH 密钥/拓扑配置以及本地运行实例状态。
CLI 与 TiDB 社区版开源免费(Apache-2.0);运行集群需自备服务器与存储资源。
# 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 高频安全命令配方
只读查询(安全推荐)
tiup cluster list
展示本地 ~/.tiup/storage/cluster/clusters/ 中记录的所有 TiDB 集群。
tiup cluster display prod-tidb --format json
以结构化 JSON 输出各节点角色、主机地址、端口与健康状态。
受控写入与预演
tiup cluster check ./topology.yaml --apply
在正式部署前校验操作系统内核参数、端口占用与 SSH 连通性。
核心优势
- + 随附官方
SKILL.md,且tiup cluster display支持--format json结构化输出。 - + 内置
tiup cluster check预检,可在部署前拦截系统参数与网络异常。 - + 一套命令同时覆盖本地
tiup playground体验与生产级tiup cluster管理。
注意事项与踩坑点
- !
tiup status与tiup list尚未提供全局--json输出。 - ! 仅原生支持 Linux 与 macOS,Windows 环境下需依赖 WSL2。
已验证兼容的 Agent 宿主
Follow 家族生态联动
同分类相关 CLI: 数据库与数据处理
进入分类页 →面向 MySQL 与 MariaDB 的声明式纯 SQL Schema 管理工具,提供 `skeema diff` 预览与 `--allow-unsafe` 安全门控。
Google Cloud BigQuery 官方 CLI(`bq`),支持 `--format=json` 与 `--dry_run` 扫描字节预估。