Managing Projects
Projects organize build configurations and subprojects in TeamCity. The teamcity project command group lets you browse projects, manage parameters, handle secure tokens for versioned settings, and export or validate project configuration.
Listing projects
View all TeamCity projects:

Filter by parent project:
Limit results and output as JSON:
project list flags
Flag | Description |
|---|---|
| Filter by parent project ID |
| Maximum number of projects to display |
| Output as JSON. Use |
Project tree
Display the project hierarchy as a tree, including subprojects and build configurations:

Show a specific subtree:
Hide build configurations to see only the project structure:
Limit the tree depth:
project tree flags
Flag | Description |
|---|---|
| Hide build configurations, show only projects |
| Limit tree depth (0 = unlimited) |
Viewing project details
View details of a project:
Open the project page in your browser:
Output as JSON:
Managing project parameters
Project parameters are inherited by all build configurations within the project. They work identically to job parameters.
Listing parameters
Getting a parameter value
Setting a parameter
Deleting a parameter
Secure tokens
Secure tokens allow you to reference sensitive values (passwords, API keys) in versioned settings without storing them in version control. The actual values are kept securely in TeamCity and referenced using credentialsJSON:<token> identifiers.
Storing a secure token
Store a sensitive value and receive a token reference:
The command returns a token in the format credentialsJSON:<uuid>. Use this token in your versioned settings configuration files.
Retrieving a secure token value
Retrieve the original value for a secure token:
Versioned settings
Exporting project settings
Export project settings as a ZIP archive containing Kotlin DSL or XML configuration:
The exported archive can be used to version control your CI/CD configuration, migrate settings between TeamCity instances, or review settings as code.
settings export flags
Flag | Description |
|---|---|
| Export as Kotlin DSL (default) |
| Export as XML |
| Output file path (default: |
| Use relative IDs in the exported settings |
Viewing versioned settings sync status
Check the synchronization status of versioned settings for a project:
This displays whether versioned settings are enabled, the current sync state, last successful sync timestamp, VCS root and format information, and any errors from the last sync attempt.
Validating Kotlin DSL
Validate Kotlin DSL configuration by running the TeamCity configuration generator:
The command auto-detects the .teamcity directory in the current directory or its parents. It requires Maven (mvn) or uses the Maven wrapper (mvnw) if present in the DSL directory.