$gpc tracks
--json
Manage release tracks — internal, alpha, beta, production, and custom tracks.
usage
gpc tracks <subcommand> [options]Commands
| Command | Description |
|---|---|
tracks list | List all tracks with status |
tracks get | Get track details including releases |
tracks create | Create a custom closed testing track |
tracks update | Update track configuration |
tracks list
List all tracks for the app, showing the current status and active release for each.
Synopsis
bash
gpc tracks list [options]1
Example
bash
gpc tracks list --app com.example.myapp1
json
{
"tracks": [
{ "track": "internal", "releases": [{ "versionCodes": ["42"], "status": "completed" }] },
{ "track": "alpha", "releases": [] },
{ "track": "beta", "releases": [{ "versionCodes": ["41"], "status": "completed" }] },
{
"track": "production",
"releases": [{ "versionCodes": ["40"], "status": "completed", "userFraction": 1.0 }]
}
]
}1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
tracks get
Get detailed information about a specific track, including all releases and their statuses.
Synopsis
bash
gpc tracks get <track> [options]1
Example
bash
gpc tracks get beta --app com.example.myapp1
json
{
"track": "beta",
"releases": [
{
"name": "Beta 41",
"versionCodes": ["41"],
"status": "completed",
"releaseNotes": [{ "language": "en-US", "text": "Bug fixes and performance improvements" }]
}
]
}1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
tracks create
Create a custom closed testing track.
Synopsis
bash
gpc tracks create <name> [options]1
Options
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--changes-not-sent-for-review | flag | Commit without sending for review | ||
--error-if-in-review | flag | Fail if changes are already in review |
Example
bash
gpc tracks create my-qa-track --app com.example.myapp1
tracks update
Update a track's configuration from a JSON file. This sets releases, status, and rollout fraction.
Synopsis
bash
gpc tracks update <track> --file <path> [options]1
Options
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--file | string | (required) | Path to JSON track configuration | |
--dry-run | boolean | false | Preview changes without applying | |
--changes-not-sent-for-review | flag | Commit without sending for review | ||
--error-if-in-review | flag | Fail if changes are already in review |
Example
bash
gpc tracks update beta --app com.example.myapp --file track-config.json1
Preview without applying:
bash
gpc tracks update beta --app com.example.myapp --file track-config.json --dry-run1
Errors
| Exit Code | Meaning |
|---|---|
| 2 | Invalid track name or missing required arguments |
| 3 | Authentication failure |
| 4 | API error (e.g., track not found, edit conflict) |
