Use when working with TeamCity CI/CD. Use tc CLI for builds, logs, jobs, queues, and pipelines.
teamcity)teamcity auth status # Check authentication
teamcity run list --status failure # Find failed builds
teamcity run log <id> --failed --raw # Full failure diagnostics
Do not guess flags or syntax. Use the command reference or teamcity <command> --help. Builds are runs (teamcity run); build configurations are jobs (teamcity job). Never use --count β use --limit (or -n).
teamcity run tree <id>.--local-changes excludes Kotlin DSL β push .teamcity/ changes before running.TEAMCITY_URL β TEAMCITY_URL=https://cli.teamcity.com teamcity run list uses stored credentials for that server; set TEAMCITY_TOKEN to override them.TEAMCITY_RO=1 or per-server ro: true rejects agent exec and agent term before connecting.--revision ROOT=SHA[@BRANCH]; ROOT=@BRANCH uses a fetched branch head. Bare SHA pins every root.--raw and dump to a temp file. Builds: use --watch when starting them.pipeline push does not validate β always teamcity pipeline validate first.--auth password. See workflows.Cross-origin downloads drop request headers; HTTPS downgrades and cross-origin terminal redirects are rejected.
| Area | Commands |
|---|---|
| Auth | auth login, logout, status |
| Builds | run list, view, start, watch, log, cancel, restart, tests, changes, tree |
| Artifacts | run artifacts, run download |
| Metadata | run pin/unpin, run tag/untag, run comment |
| Jobs | job list, view, create, tree, pause/resume, step list/view/add/delete, param list/get/set/delete, settings list/get/set |
| Projects | project list, view, create, tree, param, token put/get, settings export/status/enable |
| VCS/Conn | project vcs list/view/create/delete, project connection list/create/authorize/delete |
| Queue | queue list, approve, remove, top |
| Agents | agent list, view, enable/disable, authorize/deauthorize, exec, term, reboot, move |
| Pools | pool list, view, link/unlink |
| Server | server plugin upload (optionally with --hot-reload) |
| Pipelines | pipeline list, view, create, validate, pull, push, schema, delete |
| API | teamcity api <endpoint> β raw REST access |
| Link | teamcity link β bind repo via teamcity.toml |
Artifact downloads stay within --output: escaping directory symlinks are rejected, and failed transfers preserve existing files.
See Workflows for full details on each.
run list --status failure β run log <id> --failed --raw β run tests <id> --failedrun tree <id> β drill to deepest failed childrun start --watch (use --local-changes for personal builds)pipeline pull <id> β edit β pipeline validate β pipeline push <id>, pipeline schema to get the complete schema with enabled runners and features from the serverconnection create github-app β connection authorize β install App on repo β vcs create --auth token --connection-id <id>echo $TOKEN | connection create docker -p <id> --name X --url https://ghcr.io --username U --stdinproject settings status reports the serverβs runtime message and missing DSL context parameters. Its βRecordedβ timestamp is when the status was recorded, not the last successful sync.