teamcity-cli
Use when working with TeamCity CI/CD or when user provides a TeamCity build URL. Use `teamcity` CLI for builds, logs, jobs, queues, and agents.
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
TeamCity CLI (teamcity)
Quick Start
teamcity auth status # Check authentication
teamcity run list --status failure # Find failed builds
teamcity run log <id> --failed # Full failure diagnostics
Do not guess flags or syntax. Use the [Command Reference](references/commands.md) or teamcity <command> --help. Fall back to teamcity api /app/rest/... when needed. Builds are runs (teamcity run), build configurations are jobs (teamcity job).
Core Commands
| Area | Commands |
|-----------|---------------------------------------------------------------------------------------------------|
| Builds | run list, view, start, watch, log, cancel, restart, tests, changes |
| Artifacts | run artifacts, run download |
| Metadata | run pin/unpin, run tag/untag, run comment |
| Jobs | job list, view, tree, pause/resume, param list/get/set/delete |
| Projects | project list, view, tree, param, token put/get, settings export/status/validate |
| Queue | queue list, approve, remove, top |
| Agents | agent list, view, enable/disable, authorize/deauthorize, exec, term, reboot, move |
| Pools | pool list, view, link/unlink |
| API | teamcity api <endpoint> — raw REST API access |
Quick Workflows
Investigate failure: teamcity run list --status failure → teamcity run log <id> --failed → teamcity run tests <id> --failed
From a URL: Extract build ID from https://host/buildConfiguration/ConfigId/12345 → teamcity run view 12345
Start build: teamcity run start <job-id> --branch <branch> --watch
Find jobs: teamcity project list → teamcity job list --project <id>
Validate Kotlin DSL: teamcity project settings validate (not mvn compile — see [Workflows](references/workflows.md))
References
- [Command Reference](references/commands.md) - All commands and flags
- [Workflows](references/workflows.md) - URL handling, failure investigation, artifacts, agents, and more
- [Output Formats](references/output.md) - JSON, plain text, scripting
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。