看文档 https://docs.pingcap.com/zh/tidb/stable/tiup-reference#-t---tag-string
-B, --binary
打印指定组件的二进制文件路径:
- 执行
tiup -B/--binary <component>
将打印已安装的<component>
组件的最新稳定版路径,若<component>
组件未安装,则报错- 执行
tiup -B/--binary <component>:<version>
将打印已经安装的<component>
组件的<version>
版本所在的路径,若该版本未安装,则报错
做了下实验,居然报错了。。
~$ tiup --version
1.11.0 tiup
Go Version: go1.19
Git Ref: v1.11.0
GitHash: 1a4714d7146fa85240a1ff4ef7451df719e0b4f0
~$ tiup --binary tiflash:v6.0.0
/Users/hqh/.tiup/components/tiflash/v6.0.0/tiflash/tiflash
~$ tiup --binary tidb:v6.0.0
/Users/hqh/.tiup/components/tidb/v6.0.0/tidb-server
~$ tiup -B tidb:v6.0.0
tiup is checking updates for component -B ...timeout!
The component `-B` version is not installed; downloading from repository.
The component `-B` not found (may be deleted from repository); skipped