# asc web: Xcode Cloud

> asc web xcode-cloud commands: Xcode Cloud usage, products, workflows and their options, environment variables, build numbers, version aliases and source control connections.

Source: https://air.build/docs/cli/asc-web-xcode-cloud/

Xcode Cloud compute usage, workflows, environment variables and product settings. Products are Xcode Cloud's apps; find their IDs with `web xcode-cloud products` and workflow IDs with `web xcode-cloud workflows list`. For builds and runs through Apple's public API, see [asc xcode-cloud](https://air.build/docs/cli/asc-xcode-cloud/).

These commands use the Team owner's Apple web session; see [The web session](https://air.build/docs/cli/asc-web/#the-web-session). Picking an Apple team (`--auth`), output, pagination, `--confirm` and exit codes work as described on the [asc](https://air.build/docs/cli/asc/) page. The flag tables leave out `--output` and `--pretty` (see [Output](https://air.build/docs/cli/asc/#output)) and, where a command has them, `--limit`, `--next` and `--paginate` (see [Pagination](https://air.build/docs/cli/asc/#pagination)). `settings next-build-number set` and the version alias changes read the result back from Apple before they report success; the Reference section of [asc web](https://air.build/docs/cli/asc-web/) says what to do when the outcome is unclear.

## Subcommands

| Subcommand | What it does |
| --- | --- |
| [`products`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-products) | Lists the team's Xcode Cloud products and their IDs. |
| [`usage`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-usage) | Compute usage: plan summary, monthly, daily and per-workflow usage, and threshold alerts. |
| [`workflows`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-workflows) | Lists, describes, creates, edits, enables and disables workflows, and shows the workflow editor's options. |
| [`env-vars`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-env-vars) | Workflow environment variables and a product's shared environment variables. |
| [`settings`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings) | Product settings: the next build number and custom version aliases. |
| [`scm`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-scm) | Source control providers and their connection status. Read-only. |

## web xcode-cloud products

Lists the team's Xcode Cloud products and their IDs.

No flags besides `--output` and `--pretty`.

```sh
asc web xcode-cloud products --output table
```

Prints each product's ID, name, bundle ID and type (JSON: `items`). Use the IDs as `--product-id` / `--product-ids` in the other commands.

## web xcode-cloud usage

Xcode Cloud compute minutes for the team's plan. These commands only read from Apple; `usage alert` can also post to Slack or a webhook.

- [`usage summary`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-usage-summary)
- [`usage months`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-usage-months)
- [`usage days`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-usage-days)
- [`usage workflows`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-usage-workflows)
- [`usage alert`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-usage-alert)

## web xcode-cloud usage summary

Shows the plan's compute minutes: used, available, total, and when they reset.

No flags besides `--output` and `--pretty`.

```sh
asc web xcode-cloud usage summary --output table
```

Prints the plan name, minutes used, available and total, the reset date, and a link to manage the plan in App Store Connect. Table and Markdown add a usage bar.

## web xcode-cloud usage months

Shows monthly compute usage with a breakdown by product.

| Flag | What it does | Default |
| --- | --- | --- |
| `--start-month`, `--start-year` | First month (1–12) and its year. | 12 months ago |
| `--end-month`, `--end-year` | Last month and its year. | this month |
| `--product-ids` | Show only these products, comma-separated. | all |

```sh
asc web xcode-cloud usage months --start-month 1 --start-year 2025 --output table
```

Prints minutes and builds per month and per product (product ID, name, bundle ID, minutes, builds, and the previous period's minutes and builds). Table and Markdown also show the current and previous period and each product's share of the plan. A month outside 1–12, or an empty entry in `--product-ids`, is refused before anything is read (exit `2`).

## web xcode-cloud usage days

Shows daily compute usage with a breakdown by workflow. The first product drives the daily and workflow tables; every product given appears in the comparison table.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-ids` | Product IDs, comma-separated. Required. | — |
| `--start` | First day, `YYYY-MM-DD`. | 30 days ago |
| `--end` | Last day, `YYYY-MM-DD`. | today |

```sh
asc web xcode-cloud usage days --product-ids "UUID" --start 2025-01-01 --end 2025-01-31 --output table
```

JSON is the first product's daily and per-workflow usage. Table and Markdown add the team's overall usage and a comparison row for every product given; when the overall figures can't be read, they say so and show only the selected products. Dates that aren't `YYYY-MM-DD`, or an empty entry in `--product-ids`, are refused (exit `2`).

## web xcode-cloud usage workflows

Shows a product's compute usage by workflow, or one workflow's usage by day with `--workflow-id`.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--workflow-id` | Show this workflow day by day. | all workflows |
| `--start` | First day, `YYYY-MM-DD`. | 30 days ago |
| `--end` | Last day, `YYYY-MM-DD`. | today |

```sh
asc web xcode-cloud usage workflows --product-id "UUID" --workflow-id "WF-UUID" --output table
```

Without `--workflow-id` it prints the product ID, the date range and, per workflow, its ID, name, minutes and builds, with the previous period's figures. With `--workflow-id` it prints that workflow's totals and one row per day. A workflow ID with no usage in the range fails with `workflow … not found in product …`; check the ID with `workflows list` or widen `--start`/`--end`.

## web xcode-cloud usage alert

Checks the plan's usage against thresholds, optionally with the monthly trend, and can post an alert to Slack or a webhook. It exits `0` below the `--fail-on` level (or with `--fail-on none`), `1` at or above it, and `2` for wrong flags.

| Flag | What it does | Default |
| --- | --- | --- |
| `--warn-at` | Warning threshold, percent of the plan (1–99). | `80` |
| `--critical-at` | Critical threshold, percent (1–100). | `95` |
| `--fail-on` | Exit non-zero from this level: `none`, `warning`, `critical`. | `critical` |
| `--notify-on` | Notify from this level: `none`, `warning`, `critical`, `always`. | `warning` |
| `--trend-months` | Months of trend to include, 0 to 24 (0 turns it off). | `6` |
| `--slack-webhook` | Slack incoming webhook URL. Or set `ASC_SLACK_WEBHOOK`. | — |
| `--webhook` | Any webhook URL; receives the alert as JSON. | — |
| `--webhook-header` | Header for `--webhook`, as `Key: Value`; repeatable. | — |

```sh
asc web xcode-cloud usage alert --warn-at 75 --critical-at 90 --fail-on warning --output table
```

Prints the severity (`ok`, `warning`, `critical`, or `unknown` when Apple returns no plan total), a one-line message, the thresholds, the plan's used, available and total minutes with the percent used, the trend (average and peak minutes per month) and, when a webhook was given, whether each notification was sent. The result is printed before the command exits non-zero.

- `--warn-at` must be lower than `--critical-at`. Webhook URLs must be `http` or `https` with a host name; `--webhook-header` must be `Key: Value`. Wrong values exit `2` before anything is read.
- Notifications are sent only when the severity reaches `--notify-on`. A notification that fails is shown in the output and makes the command exit non-zero. Sending is refused under `--read-only`.

## web xcode-cloud workflows

A product's Xcode Cloud workflows. `list` and `describe` only read; `create`, `edit`, `enable` and `disable` change the workflow in App Store Connect.

- [`workflows list`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-workflows-list)
- [`workflows describe`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-workflows-describe)
- [`workflows create`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-workflows-create)
- [`workflows edit`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-workflows-edit)
- [`workflows enable`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-workflows-enable)
- [`workflows disable`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-workflows-disable)
- [`workflows options`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-workflows-options)

## web xcode-cloud workflows list

Lists a product's workflows: ID, name and description. Use `describe` for everything else.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |

```sh
asc web xcode-cloud workflows list --product-id "UUID"
```

Prints `productId` and `workflows`, each with `id`, `name` and `description`. Whether a workflow is enabled is not in this list; use `describe`.

## web xcode-cloud workflows describe

Shows a workflow's configuration: state, toolchain versions, start conditions, actions and linked shared environment variables.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--workflow-id` | Workflow ID. Required. | — |

```sh
asc web xcode-cloud workflows describe --product-id "UUID" --workflow-id "WF-UUID" --output table
```

JSON has the name, description, `disabled`, `locked`, the Xcode and macOS versions, the clean-build setting, the project or workspace path, the linked shared variables, and the start conditions, actions, post-actions and repository as Apple stores them. Table and Markdown show one summary row.

## web xcode-cloud workflows create

Creates a workflow from a complete workflow JSON file, as App Store Connect's workflow editor saves it.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--file` | The workflow JSON file. Required. | — |
| `--workflow-id` | ID for the new workflow. | a generated UUID |

```sh
asc web xcode-cloud workflows create --product-id "UUID" --file ./workflow.json
```

The file must hold a JSON object; `--file -` reads it from standard input. When `--workflow-id` names a workflow that already exists, the command refuses and points to `edit`. It prints the new workflow like `describe` does, with `created: true`.

## web xcode-cloud workflows edit

Applies a JSON merge patch to a workflow. Fields the patch leaves out are kept. To clear a text field such as the description, set it to an empty string rather than `null`, which Apple does not always accept.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--workflow-id` | Workflow ID. Required. | — |
| `--patch-file` | The JSON merge patch file. Required. | — |

```sh
asc web xcode-cloud workflows edit --product-id "UUID" --workflow-id "WF-UUID" --patch-file ./workflow.patch.json
```

`--patch-file -` reads the patch from standard input. A `"description": null` in the patch is sent as an empty string. When the patch changes nothing, nothing is sent. It prints the resulting workflow like `describe` does, with `changed` true or false.

## web xcode-cloud workflows enable

Enables a workflow. One already enabled is reported as unchanged.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--workflow-id` | Workflow ID. Required. | — |

```sh
asc web xcode-cloud workflows enable --product-id "UUID" --workflow-id "WF-UUID"
```

Prints the workflow name and ID, the action (`enabled` or `already-enabled`), whether it was disabled before and after, and `changed`.

## web xcode-cloud workflows disable

Disables a workflow. One already disabled is reported as unchanged.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--workflow-id` | Workflow ID. Required. | — |
| `--confirm` | Confirm. Required. | off |

```sh
asc web xcode-cloud workflows disable --product-id "UUID" --workflow-id "WF-UUID" --confirm
```

Prints the same fields as `enable`, with the action `disabled` or `already-disabled`.

## web xcode-cloud workflows options

The `workflows options` commands show the choices App Store Connect's workflow editor offers, useful when writing a workflow file. They print JSON only, as Apple returns it; any other `--output` is refused before anything is read.

- [`workflows options team-config`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-workflows-options-team-config)
- [`workflows options build-versions`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-workflows-options-build-versions)
- [`workflows options product-config`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-workflows-options-product-config)
- [`workflows options schemes`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-workflows-options-schemes)
- [`workflows options test-destinations`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-workflows-options-test-destinations)
- [`workflows options slack-provider`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-workflows-options-slack-provider)
- [`workflows options slack-channels`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-workflows-options-slack-channels)

## web xcode-cloud workflows options team-config

Shows team settings for workflows: available platforms and the default time zone.

No flags besides `--output` and `--pretty`.

```sh
asc web xcode-cloud workflows options team-config
```

## web xcode-cloud workflows options build-versions

Shows the default and available build versions for workflows.

No flags besides `--output` and `--pretty`.

```sh
asc web xcode-cloud workflows options build-versions
```

## web xcode-cloud workflows options product-config

Shows a product's workflow options, such as repository defaults and suggested project or workspace paths.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |

```sh
asc web xcode-cloud workflows options product-config --product-id "UUID"
```

## web xcode-cloud workflows options schemes

Shows the schemes and test plans of a product's projects or workspaces.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--container-file-path` | Only this project or workspace path, e.g. `App.xcodeproj`. | all |
| `--limit` | Maximum schemes to return; must be greater than 0. | Apple's page size |
| `--continuation-offset` | Fetch the next page from this offset. | — |

```sh
asc web xcode-cloud workflows options schemes --product-id "UUID" --container-file-path "App.xcodeproj"
```

## web xcode-cloud workflows options test-destinations

Shows the test destinations available for an Xcode version.

| Flag | What it does | Default |
| --- | --- | --- |
| `--xcode-version` | Xcode version selector, e.g. `latest:stable`. Required. | — |

```sh
asc web xcode-cloud workflows options test-destinations --xcode-version "latest:stable"
```

## web xcode-cloud workflows options slack-provider

Shows whether Slack is connected for workflow notifications.

No flags besides `--output` and `--pretty`.

```sh
asc web xcode-cloud workflows options slack-provider
```

## web xcode-cloud workflows options slack-channels

Shows the Slack channels workflow notifications can post to.

No flags besides `--output` and `--pretty`.

```sh
asc web xcode-cloud workflows options slack-channels
```

## web xcode-cloud env-vars

Environment variables for Xcode Cloud builds: `list`, `set` and `delete` work on one workflow's variables, `shared` on a product's shared variables.

- [`env-vars list`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-env-vars-list)
- [`env-vars set`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-env-vars-set)
- [`env-vars delete`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-env-vars-delete)
- [`env-vars shared`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-env-vars-shared)

## web xcode-cloud env-vars list

Lists a workflow's environment variables. Plain values are shown; secret ones show `(redacted)`.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--workflow-id` | Workflow ID. Required. | — |

```sh
asc web xcode-cloud env-vars list --product-id "UUID" --workflow-id "WF-UUID" --output table
```

Table and Markdown show name, type (`plaintext` or `secret`) and value. JSON has `workflow_id` and `variables`, each with its ID, name and value; a secret never has a plain value.

## web xcode-cloud env-vars set

Creates or updates a workflow environment variable.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--workflow-id` | Workflow ID. Required. | — |
| `--name` | Variable name. Required. | — |
| `--value` | Value. Required. `@env:NAME` keeps a secret out of the command line. | — |
| `--secret` | Store the value encrypted as a secret, as App Store Connect does. | off |

```sh
asc web xcode-cloud env-vars set --product-id "UUID" --workflow-id "WF-UUID" --name MY_VAR --value hello
```

Names are matched without regard to case; an existing variable gets the new value and keeps its ID. `--secret` applies to each call, so updating a secret without `--secret` stores the new value as plain text. Prints the action (`created` or `updated`), name, type and workflow.

## web xcode-cloud env-vars delete

Deletes a workflow environment variable by name.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--workflow-id` | Workflow ID. Required. | — |
| `--name` | Variable name. Required. | — |
| `--confirm` | Confirm. Required. | off |

```sh
asc web xcode-cloud env-vars delete --product-id "UUID" --workflow-id "WF-UUID" --name MY_VAR --confirm
```

The name is matched without regard to case. A name the workflow doesn't have fails with `environment variable … not found in workflow …` and changes nothing; check it with `env-vars list`. Prints `deleted` with the name and workflow.

## web xcode-cloud env-vars shared

A product's shared environment variables, which can be linked to several of its workflows.

- [`env-vars shared list`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-env-vars-shared-list)
- [`env-vars shared set`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-env-vars-shared-set)
- [`env-vars shared delete`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-env-vars-shared-delete)

## web xcode-cloud env-vars shared list

Lists a product's shared environment variables, which can be linked to several workflows. Secret values show `(redacted)`.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |

```sh
asc web xcode-cloud env-vars shared list --product-id "UUID"
```

Table and Markdown show name, type, value, whether it is locked, and the names of the linked workflows. JSON has `product_id` and `variables` as Apple returns them.

## web xcode-cloud env-vars shared set

Creates or updates a shared environment variable.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--name` | Variable name. Required. | — |
| `--value` | Value. Required. | — |
| `--secret` | Store the value encrypted as a secret. | off |
| `--locked` | Restrict editing of the variable. | off |
| `--workflow-ids` | Link the variable to these workflows, comma-separated; give the flag once. | none; on update, the current links |

```sh
asc web xcode-cloud env-vars shared set --product-id "UUID" --name MY_VAR --value hello --workflow-ids "wf-1,wf-2"
```

Names are matched without regard to case. Updating an existing variable replaces its value, and `--secret` and `--locked` apply each time: leaving them off stores the value as plain text and unlocked. Without `--workflow-ids` an update keeps the current links; with it the links are replaced. Prints the action (`created` or `updated`), name, type, locked state and product.

## web xcode-cloud env-vars shared delete

Deletes a shared environment variable by name.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--name` | Variable name. Required. | — |
| `--confirm` | Confirm. Required. | off |

```sh
asc web xcode-cloud env-vars shared delete --product-id "UUID" --name MY_VAR --confirm
```

A name the product doesn't have fails with `shared environment variable … not found in product …` and changes nothing. Prints `deleted` with the name and product.

## web xcode-cloud settings

A product's Xcode Cloud settings.

- [`settings next-build-number`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-next-build-number): [`show`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-next-build-number-show), [`set`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-next-build-number-set)
- [`settings version-aliases`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-version-aliases): [`list`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-version-aliases-list), [`view`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-version-aliases-view), [`create`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-version-aliases-create), [`update`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-version-aliases-update), [`delete`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-version-aliases-delete)

## web xcode-cloud settings next-build-number

The build number Xcode Cloud gives a product's next build.

- [`settings next-build-number show`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-next-build-number-show)
- [`settings next-build-number set`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-next-build-number-set)

## web xcode-cloud settings next-build-number show

Shows the next build number Xcode Cloud will use for a product.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |

```sh
asc web xcode-cloud settings next-build-number show --product-id "UUID"
```

Prints `productId` and `nextBuildNumber`.

## web xcode-cloud settings next-build-number set

Sets the next build number. It must be higher than the current one. Needs the App Store Connect Admin or App Manager role.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--value` | The next build number, greater than 0. Required. | — |
| `--confirm` | Confirm. Required. | off |

```sh
asc web xcode-cloud settings next-build-number set --product-id "UUID" --value 102 --confirm
```

It reads the current number first and refuses a value that isn't higher (`next build number must be greater than current value …`). After the change it reads the number again and succeeds only when it matches, printing `previousNextBuildNumber`, `nextBuildNumber` and `updated`. When Apple denies the change, the error names the roles needed. When the outcome is unclear, the error says the change may have succeeded; check with `next-build-number show` before trying again.

## web xcode-cloud settings version-aliases

Custom version aliases: named Xcode or macOS versions that a product's workflows can use. `create`, `update` and `delete` need `--confirm` and read the alias back before they report success.

- [`settings version-aliases list`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-version-aliases-list)
- [`settings version-aliases view`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-version-aliases-view)
- [`settings version-aliases create`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-version-aliases-create)
- [`settings version-aliases update`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-version-aliases-update)
- [`settings version-aliases delete`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-settings-version-aliases-delete)

## web xcode-cloud settings version-aliases list

Lists up to 100 of a product's custom version aliases (named Xcode or macOS versions that workflows can use). There is no way to read more.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |

```sh
asc web xcode-cloud settings version-aliases list --product-id "UUID"
```

Prints `productId` and, per alias, `id`, `name`, `type`, `locked`, `buildName` and `buildSupported`.

## web xcode-cloud settings version-aliases view

Shows one version alias. JSON keeps Apple's full response, including the build and workflows.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--id` | Version alias ID. Required. | — |

```sh
asc web xcode-cloud settings version-aliases view --product-id "UUID" --id "ALIAS_UUID"
```

Table and Markdown show the alias's ID, name, type, locked state, build name and whether the build is supported.

## web xcode-cloud settings version-aliases create

Creates a version alias. Apple checks that the build is supported for the product, and may require a permission for locked aliases.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--type` | `macos_version` or `xcode_version`. Required. | — |
| `--name` | Name, at most 40 UTF-16 code units; surrounding spaces are trimmed. Required. | — |
| `--build` | The version it points to, e.g. `latest:stable`. Required. | — |
| `--locked` | Create it locked. | off |
| `--confirm` | Confirm. Required. | off |

```sh
asc web xcode-cloud settings version-aliases create --product-id "UUID" --type xcode_version --name "Stable" --build "latest:stable" --confirm
```

The alias gets a new ID. A blank or too long name, an empty `--build` or another `--type` is refused before anything is sent (exit `2`). After creating it, the command reads the alias back and succeeds only when it matches; it prints `action: created` with the alias's fields. When the outcome is unclear, the error says so; check with `version-aliases list` before trying again.

## web xcode-cloud settings version-aliases update

Changes the fields given; the others are kept. Apple may refuse changes to locked aliases or aliases workflows use.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--id` | Version alias ID. Required. | — |
| `--name` | New name, at most 40 UTF-16 code units. | unchanged |
| `--type` | New type: `macos_version` or `xcode_version`. | unchanged |
| `--build` | New build value. | unchanged |
| `--locked` | `--locked` or `--locked=true` locks it, `--locked=false` unlocks it. | unchanged |
| `--confirm` | Confirm. Required. | off |

```sh
asc web xcode-cloud settings version-aliases update --product-id "UUID" --id "ALIAS_UUID" --name "Stable" --confirm
```

At least one of `--name`, `--type`, `--build` or `--locked` is required. The command reads the alias, applies the flags given, sends the whole alias, reads it back and succeeds only when it matches; it prints `action: updated` with the alias's fields.

## web xcode-cloud settings version-aliases delete

Deletes a version alias and checks that it is gone. Apple may refuse to delete locked aliases or aliases workflows use.

| Flag | What it does | Default |
| --- | --- | --- |
| `--product-id` | Product ID. Required. | — |
| `--id` | Version alias ID. Required. | — |
| `--confirm` | Confirm. Required. | off |

```sh
asc web xcode-cloud settings version-aliases delete --product-id "UUID" --id "ALIAS_UUID" --confirm
```

Prints `productId`, `id` and `deleted: true` once Apple no longer finds the alias. If it is still there, the command fails with `alias … still exists`.

## web xcode-cloud scm

The source control providers connected to Xcode Cloud. These commands only read.

- [`scm providers`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-scm-providers): [`list`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-scm-providers-list)
- [`scm connection-status`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-scm-connection-status)

## web xcode-cloud scm providers

Source control providers. Its one subcommand is [`scm providers list`](https://air.build/docs/cli/asc-web-xcode-cloud/#web-xcode-cloud-scm-providers-list).

## web xcode-cloud scm providers list

Lists the source control providers connected to Xcode Cloud. It only reads.

No flags besides `--output` and `--pretty`.

```sh
asc web xcode-cloud scm providers list
```

Prints every provider at once (no pagination): its ID, provider, display name, and whether it is registered and connected for the user (`unknown` when Apple doesn't say).

## web xcode-cloud scm connection-status

Shows the connection status of one source control provider from `scm providers list`.

| Flag | What it does | Default |
| --- | --- | --- |
| `--scm-provider-id` | Provider ID. Required. | — |

```sh
asc web xcode-cloud scm connection-status --scm-provider-id SCM_PROVIDER_ID
```

Prints the provider ID and its status as Apple reports it.
