teamcity-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTeamCity CLI (tc
)
tcTeamCity CLI(tc
)
tcInteract with TeamCity CI/CD servers using the command-line tool.
tc使用命令行工具与TeamCity CI/CD服务器进行交互。
tcQuick Start
快速开始
bash
tc auth status # Check authentication
tc run list --status failure # Find failed builds
tc run log <id> --failed # View failed build logbash
tc auth status # 检查认证状态
tc run list --status failure # 查找失败的构建
tc run log <id> --failed # 查看失败构建的日志Before Running Commands
运行命令前注意事项
Do not guess flags or syntax. Only use flags in the Command Reference. If unsure, run first. If a command doesn't support what you need, fall back to .
tc <command> --helptc api /app/rest/...请勿猜测参数或语法。 仅使用命令参考中列出的参数。如有疑问,请先运行。如果某个命令无法满足你的需求,请使用作为替代方案。
tc <command> --helptc api /app/rest/...Core Commands
核心命令
| Area | Commands |
|---|---|
| Builds | |
| Artifacts | |
| Metadata | |
| Jobs | |
| Projects | |
| Queue | |
| Agents | |
| Pools | |
| API | |
| 领域 | 命令 |
|---|---|
| 构建 | |
| 制品 | |
| 元数据 | |
| 任务 | |
| 项目 | |
| 队列 | |
| 代理 | |
| 代理池 | |
| API | |
Quick Workflows
快速工作流
Investigate failure: → →
From a URL: Extract build ID from →
Start build:
Find jobs: →
tc run list --status failuretc run log <id> --failedtc run tests <id> --failedhttps://host/buildConfiguration/ConfigId/12345tc run view 12345tc run start <job-id> --branch <branch> --watchtc project listtc job list --project <id>排查失败问题: → →
从URL获取信息: 从中提取构建ID →
启动构建:
查找任务: →
tc run list --status failuretc run log <id> --failedtc run tests <id> --failedhttps://host/buildConfiguration/ConfigId/12345tc run view 12345tc run start <job-id> --branch <branch> --watchtc project listtc job list --project <id>References
参考资料
- Command Reference - All commands and flags
- Workflows - URL handling, failure investigation, artifacts, agents, and more
- Output Formats - JSON, plain text, scripting
- 命令参考 - 所有命令及参数
- 工作流 - URL处理、失败排查、制品、代理等更多内容
- 输出格式 - JSON、纯文本、脚本相关