TeamCity CLI Help

AI Agent Integration

TeamCity CLI includes a built-in skill that teaches AI coding agents how to use teamcity commands for common TeamCity workflows. The skill follows the Agent Skills specification, so it works with any compatible agent (for example, Claude Code, Cursor, and others).

Installing the skill

Install the skill for all detected AI agents:

teamcity skill install

The command auto-detects which AI coding agents are installed on your system and configures the skill for each one. If your agent is not auto-detected, pass --agent to target it explicitly.

Installing the AI agent skill

Install for specific agents

Target one or more specific agents:

teamcity skill install --agent claude-code teamcity skill install --agent claude-code --agent cursor

Project-level installation

Install the skill for the current project only, rather than globally:

teamcity skill install --project

Updating the skill

Update the skill to the latest version bundled with your current teamcity release:

teamcity skill update

The command skips the update if the installed version already matches the bundled version.

Target specific agents or install at the project level:

teamcity skill update --agent claude-code teamcity skill update --project

Removing the skill

Remove the skill from AI coding agents:

teamcity skill remove

Target specific agents or remove from the project level:

teamcity skill remove --agent claude-code teamcity skill remove --project

skill flags

These flags are shared across skill install, skill update, and skill remove:

Flag

Description

-a, --agent

Target agent(s). Can be repeated. Auto-detects installed agents if omitted.

--project

Install to the current project instead of globally

Read-only mode for AI agents

When giving AI agents access to TeamCity, you may want to prevent them from triggering builds, canceling runs, or modifying configuration. Set TEAMCITY_RO=1 to restrict the CLI to read-only operations:

export TEAMCITY_RO=1 teamcity skill install --agent claude-code

In read-only mode, the agent can list builds, view logs, inspect failures, and query the API, but any command that would modify data is blocked. You can also set ro: true per server in the configuration file.

Alternative installation for Claude Code

If you use Claude Code, you can also install the TeamCity skill directly through the plugin system:

/plugin marketplace add JetBrains/teamcity-cli /plugin install teamcity-cli@teamcity-cli
24 February 2026