# asc: signing, devices and users

> asc commands for bundle IDs and capabilities, certificates, provisioning profiles, merchant and pass type IDs, App Clip IDs, notarization, devices and App Store Connect users.

Source: https://air.build/docs/cli/asc-signing/

These [asc](https://air.build/docs/cli/asc/) families manage the Apple Developer resources an app is signed with, and the people and devices on the Apple team. Picking an Apple team (`--auth`), output, pagination, `--confirm` and exit codes work as described on the [asc](https://air.build/docs/cli/asc/) page.

> [!NOTE]
> Builds made with [runbuild](https://air.build/docs/cli/runbuild/) `--sign` don't need `certificates` or `profiles`. `runbuild --sign` issues, renews and embeds the provisioning profiles each bundle signs with, against the Apple team's managed signing certificates, including after a capability, App Group or iCloud change. A profile it issued that you delete is issued again at the next signed build. Use `profiles` only for a profile outside AirBuild's builds.

The **Main flags** columns and the flag tables below leave out the flags almost every command has: `--output` and `--pretty` (see [Output](https://air.build/docs/cli/asc/#output)), `--limit`, `--next` and `--paginate` on list commands (see [Pagination](https://air.build/docs/cli/asc/#pagination)), and the `--…-fields` flags that pick which attributes Apple returns. Run `asc <family> <subcommand> --help` for every flag, its values and examples. Where a subcommand has subcommands of its own, they are listed instead.

## bundle-ids

Every subcommand and flag: [asc bundle-ids](https://air.build/docs/cli/asc-bundle-ids/).

Manage bundle IDs and capabilities.

| Subcommand | What it does | Main flags |
| --- | --- | --- |
| `list` | List bundle IDs. | `--capabilities-limit`, `--id`, `--identifier`, `--include`, `--name`, `--platform`, `--profiles-limit`, `--seed-id`, `--sort` |
| `view` | View a bundle ID by ID. | `--id` |
| `app` | View the app linked to a bundle ID. | subcommands: `view` |
| `profiles` | List profiles linked to a bundle ID. | subcommands: `list` |
| `create` | Create a bundle ID. | `--identifier`, `--name`, `--platform`, `--seed-id` |
| `update` | Update a bundle ID. | `--id`, `--name` |
| `delete` | Delete a bundle ID. | `--confirm`, `--id` |
| `capabilities` | Manage bundle ID capabilities. | subcommands: `list`, `add`, `update`, `remove`, `reconcile` |

`bundle-ids capabilities --help` lists every capability ID and whether Apple's public API can set it. The public ones are set with `bundle-ids capabilities add --bundle BUNDLE_ID --capability ICLOUD` (and `remove`, `update`). The others are set through the Team owner's Apple sign-in with `asc web bundle-ids capabilities enable|disable --bundle-id BUNDLE_RESOURCE_ID --capability ID --confirm` (see [asc: web session commands](https://air.build/docs/cli/asc-web/)). After a change, match the app's entitlements and build again so its profile is reissued.

## certificates

Every subcommand and flag: [asc certificates](https://air.build/docs/cli/asc-certificates/).

Manage signing certificates.

| Subcommand | What it does | Main flags |
| --- | --- | --- |
| `list` | List signing certificates. | `--certificate-type`, `--display-name`, `--id`, `--include`, `--serial-number`, `--sort` |
| `view` | View a signing certificate by ID. | `--id`, `--include` |
| `developer-id-check` | Find Developer ID certificates from the Sub-CA that expires on February 1, 2027. | `--strict` |
| `csr` | Generate certificate signing requests (CSR). | subcommands: `generate` |
| `export` | Package a certificate and private key as a protected PKCS#12 identity. | `--certificate`, `--confirm`, `--csr`, `--force`, `--p12-out`, `--password-file`, `--private-key` |
| `create` | Create a Wallet pass or Apple Pay certificate. | `--certificate-type`, `--common-name`, `--country`, `--csr`, `--csr-out`, `--email`, `--force`, `--generate-csr`, `--key-out`, `--key-size`, `--key-type`, `--merchant-id`, `--organization`, `--organizational-unit`, `--pass-type-id` |
| `update` | Update a signing certificate. | `--activated`, `--id` |
| `links` | View certificate relationship linkages. | subcommands: `pass-type-id` |

Signing certificates are managed by AirBuild, and `certificates create` makes only Wallet pass and Apple Pay certificates: `PASS_TYPE_ID`, `PASS_TYPE_ID_WITH_NFC`, `APPLE_PAY`, `APPLE_PAY_MERCHANT_IDENTITY`, `APPLE_PAY_PSP_IDENTITY`, `APPLE_PAY_RSA`. Pass `--csr FILE`, or `--generate-csr` with `--key-out` and `--csr-out` to make a key and request on the spot. `certificates developer-id-check` finds Developer ID certificates from the Apple authority that expires on February 1, 2027.

## profiles

Every subcommand and flag: [asc profiles](https://air.build/docs/cli/asc-profiles/).

Manage provisioning profiles.

| Subcommand | What it does | Main flags |
| --- | --- | --- |
| `list` | List provisioning profiles. | `--id`, `--include`, `--include-stale`, `--limit-certificates`, `--limit-devices`, `--name`, `--profile-state`, `--profile-type`, `--sort`, `--stale-only` |
| `view` | View a profile by ID. | `--id`, `--include` |
| `links` | View profile relationship linkages. | subcommands: `bundle-id`, `certificates`, `devices` |
| `create` | Create a provisioning profile. | `--bundle`, `--certificate`, `--device`, `--name`, `--profile-type` |
| `delete` | Delete a provisioning profile. | `--confirm`, `--id` |
| `download` | Download a provisioning profile. | `--id`, `--output` (the file to write), `--output-format` |
| `inspect` | Inspect a local provisioning profile. | `--entitlements`, `--path` |

## merchant-ids

Every subcommand and flag: [asc merchant-ids](https://air.build/docs/cli/asc-merchant-ids/).

Manage merchant IDs and certificates.

| Subcommand | What it does | Main flags |
| --- | --- | --- |
| `list` | List merchant IDs. | `--certificates-limit`, `--identifier`, `--include`, `--name`, `--sort` |
| `view` | View a merchant ID by ID. | `--certificates-limit`, `--include`, `--merchant-id` |
| `create` | Create a merchant ID. | `--identifier`, `--name` |
| `update` | Update a merchant ID. | `--clear-name`, `--merchant-id`, `--name` |
| `delete` | Delete a merchant ID. | `--confirm`, `--merchant-id` |
| `certificates` | Manage merchant ID certificates. | subcommands: `list`, `view`, `create` |

## pass-type-ids

Every subcommand and flag: [asc pass-type-ids](https://air.build/docs/cli/asc-pass-type-ids/).

Manage pass type IDs.

| Subcommand | What it does | Main flags |
| --- | --- | --- |
| `list` | List pass type IDs. | `--id`, `--identifier`, `--include`, `--limit-certificates`, `--name`, `--sort` |
| `view` | View a pass type ID by ID. | `--include`, `--limit-certificates`, `--pass-type-id` |
| `create` | Create a pass type ID. | `--identifier`, `--name` |
| `update` | Update a pass type ID. | `--name`, `--pass-type-id` |
| `delete` | Delete a pass type ID. | `--confirm`, `--pass-type-id` |
| `certificates` | List pass type ID certificates. | subcommands: `list`, `view` |

## app-clip-ids

Register App Clip App IDs (served by AirBuild, through the Team owner's Apple sign-in). `bundle-ids create` cannot make an App Clip App ID; these commands can. Both print JSON `{items: [...]}` and take no output flags.

| Subcommand | What it does |
| --- | --- |
| [`list`](https://air.build/docs/cli/asc-signing/#app-clip-ids-list) | List the team's App Clip App IDs. |
| [`create`](https://air.build/docs/cli/asc-signing/#app-clip-ids-create) | Register an App Clip App ID under its parent. |

After creating one, turn on the App Clip's own capabilities with `asc bundle-ids capabilities add` (or `asc web bundle-ids capabilities enable` for the web-only types, see [asc bundle-ids](https://air.build/docs/cli/asc-bundle-ids/)).

### app-clip-ids list

List the team's App Clip App IDs. No flags.

```sh
asc app-clip-ids list
```

### app-clip-ids create

Register an App Clip App ID under its parent App ID. The parent must already be registered, and the App Clip identifier must start with the parent's (Xcode's default is `PARENT.Clip`). If the App Clip already exists it is returned; an identifier already taken by a regular App ID is refused.

| Flag | What it does | Default |
| --- | --- | --- |
| `--identifier` | App Clip bundle identifier, starting with the parent's (`PARENT.Clip`). Required. | — |
| `--name` | App Clip App ID name. Required. | — |
| `--parent-bundle-id` | Bundle identifier of the registered parent App ID. Required. | — |

```sh
asc app-clip-ids create --parent-bundle-id com.example.app --identifier com.example.app.Clip --name "Example Clip"
```

## notarization

Manage macOS notarization submissions through Apple's notary service. Notarization is for Mac apps shared outside the App Store and signed with a Developer ID certificate. AirBuild's builds don't produce those, so you notarize a file you bring yourself. `staple` and `validate` are Mac only; the other commands work wherever `asc` runs.

| Subcommand | What it does |
| --- | --- |
| [`submit`](https://air.build/docs/cli/asc-signing/#notarization-submit) | Submit software for notarization. |
| [`staple`](https://air.build/docs/cli/asc-signing/#notarization-staple) | Mac only. Attach and validate a macOS notarization ticket locally. |
| [`validate`](https://air.build/docs/cli/asc-signing/#notarization-validate) | Mac only. Validate a stapled macOS notarization ticket locally. |
| [`status`](https://air.build/docs/cli/asc-signing/#notarization-status) | Get the status of a notarization submission. |
| [`log`](https://air.build/docs/cli/asc-signing/#notarization-log) | Get the developer log URL or content for a notarization submission. |
| [`list`](https://air.build/docs/cli/asc-signing/#notarization-list) | List previous notarization submissions. |

### notarization submit

Submit a zip, dmg or pkg file for macOS notarization, and optionally wait for the result. Prints the submission, including its ID for `status` and `log`.

| Flag | What it does | Default |
| --- | --- | --- |
| `--file` | Path to the file to notarize (zip, dmg or pkg). Required. | — |
| `--poll-interval` | Polling interval when using `--wait`. | `15s` |
| `--timeout` | Timeout when using `--wait`. | `30m` |
| `--wait` | Wait for notarization to complete. | `false` |

```sh
asc notarization submit --file ./MyApp.zip --wait
```

### notarization staple

Attach Apple's notarization ticket to a local file and validate it right after. The file must be a notarized app bundle, disk image (UDIF) or signed flat installer package. A zip can't be stapled: staple the item inside it and make the archive again. Mac only. Apple's stapler may need network access.

| Flag | What it does | Default |
| --- | --- | --- |
| `--confirm` | Confirm stapling the ticket into the file in place. Required. | `false` |
| `--file` | Path to a notarized app bundle, disk image or signed flat package. Required. | — |

```sh
asc notarization staple --file ./MyApp.dmg --confirm
```

### notarization validate

Validate a ticket already stapled to a local app bundle, disk image or signed flat package. Never changes the file. A zip can't be validated: validate the item inside it. Mac only. Apple's stapler may need network access.

| Flag | What it does | Default |
| --- | --- | --- |
| `--file` | Path to a file with a stapled notarization ticket. Required. | — |

```sh
asc notarization validate --file ./MyApp.dmg
```

### notarization status

Get the status of a submission: `Accepted`, `In Progress`, `Invalid` or `Rejected`.

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

```sh
asc notarization status --id "SUBMISSION_ID"
```

### notarization log

Get the developer log of a submission, with the details of the result and any issues found. By default it prints the log's download URL. `--fetch` downloads the log and prints it as JSON, whatever the output format; with `--path` it writes the log to that file and prints a receipt instead.

| Flag | What it does | Default |
| --- | --- | --- |
| `--fetch` | Fetch the log JSON instead of printing its URL. | `false` |
| `--id` | Submission ID. Required. | — |
| `--overwrite` | With `--path`, replace an existing file. | `false` |
| `--path` | With `--fetch`, write the log JSON to this file and print a receipt. Needs `--fetch`. | — |

```sh
asc notarization log --id "SUBMISSION_ID" --fetch --path ./log.json
```

### notarization list

List previous notarization submissions. Here `--limit` caps how many are shown (`0`, the default, shows all).

```sh
asc notarization list
```

## devices

Manage the devices registered on the Apple team. Development and ad hoc profiles only install on registered devices.

| Subcommand | What it does |
| --- | --- |
| [`list`](https://air.build/docs/cli/asc-signing/#devices-list) | List devices in App Store Connect. |
| [`view`](https://air.build/docs/cli/asc-signing/#devices-view) | View a device by ID. |
| [`local-udid`](https://air.build/docs/cli/asc-signing/#devices-local-udid) | Get the local macOS hardware UDID. |
| [`register`](https://air.build/docs/cli/asc-signing/#devices-register) | Register a new device. |
| [`register-batch`](https://air.build/docs/cli/asc-signing/#devices-register-batch) | Register devices from a tab-separated file. |
| [`update`](https://air.build/docs/cli/asc-signing/#devices-update) | Update a device. |

### devices list

List the team's devices, with name, UDID, platform, status, model and date added.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Filter by device ID(s), comma-separated. | — |
| `--name` | Filter by device name(s), comma-separated. | — |
| `--platform` | Filter by platform(s), comma-separated: `IOS`, `MAC_OS`, `UNIVERSAL`. | — |
| `--sort` | Sort by `id`, `-id`, `name`, `-name`, `platform`, `-platform`, `status`, `-status`, `udid`, `-udid`. | — |
| `--status` | Filter by status: `ENABLED`, `DISABLED`. | — |
| `--udid` | Filter by UDID(s), comma-separated. | — |

```sh
asc devices list --platform IOS
```

### devices view

View one device by its resource ID.

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

```sh
asc devices view --id "DEVICE_ID"
```

### devices local-udid

Print the hardware UDID of the Mac `asc` runs on, with platform `MAC_OS`. macOS only: elsewhere it fails. No flags besides the output ones.

```sh
asc devices local-udid
```

### devices register

Register a new device. Give `--name`, `--udid` and `--platform` for one device, `--udid-from-system` to register the Mac `asc` runs on (macOS only), or `--via-url` to collect UDIDs from people's devices through a registration link and QR code.

With `--via-url`, `--confirm` registers each collected device; without it, the UDIDs are written to `--output-file` for `register-batch`. The session ends after `--ttl`, or after `--max-devices` new devices.

| Flag | What it does | Default |
| --- | --- | --- |
| `--confirm` | Register collected devices in App Store Connect. With `--via-url`, required unless `--output-file` is set. | `false` |
| `--listen` | Loopback address for the registration server. Needs `--via-url`. | `127.0.0.1:0` |
| `--max-devices` | End the session after this many new devices (at least 1); unbounded when unset. Needs `--via-url`. | `0` |
| `--name` | Device name. Required, except with `--via-url`. | — |
| `--output-file` | Collect-only TSV for `register-batch` when `--confirm` is not set. Needs `--via-url`. | — |
| `--platform` | Device platform: `IOS`, `MAC_OS`, `UNIVERSAL`. Required, except with `--via-url`. | `IOS` with `--via-url` |
| `--public-url` | Externally reachable URL printed in the profile and QR code. Needs `--via-url`. | — |
| `--stream` | Write one JSON receipt line per device before the final summary (needs `--output json`). Needs `--via-url`. | `false` |
| `--ttl` | How long to wait for devices. Needs `--via-url`. | `30m` |
| `--udid` | Device UDID. Required unless `--udid-from-system` or `--via-url`; not with `--udid-from-system`. | — |
| `--udid-from-system` | Use the local Mac's hardware UUID as the UDID (macOS only). | `false` |
| `--via-url` | Collect a remote device's UDID from a registration URL. | `false` |

```sh
asc devices register --name "iPhone 15" --udid "UDID" --platform IOS
```

### devices register-batch

Register devices from a tab-separated file. Each row is a UDID, a device name and an optional platform; a header row (`Device ID`, `Device Name`, `Device Platform`) is optional, and blank rows and rows starting with `#` are ignored. The whole file is checked before anything is sent. Devices already registered, and repeated UDIDs, are skipped (hyphens and colons are ignored when comparing).

| Flag | What it does | Default |
| --- | --- | --- |
| `--confirm` | Confirm registering the devices. Required unless `--dry-run`. | `false` |
| `--continue-on-error` | Keep registering after an API failure. | `true` |
| `--dry-run` | Validate and show the plan without creating devices. | `false` |
| `--file` | Tab-separated device file (UDID, name, optional platform). Required. | — |
| `--platform` | Platform for rows that leave it out: `IOS`, `MAC_OS`, `UNIVERSAL`. | — |

```sh
asc devices register-batch --file "./devices.txt" --confirm
```

### devices update

Rename a device or turn it on or off. Give `--name`, `--status` or both.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Device ID. Required. | — |
| `--name` | Device name. | — |
| `--status` | Device status: `ENABLED`, `DISABLED`. | — |

```sh
asc devices update --id "DEVICE_ID" --status DISABLED
```

## users

Every subcommand and flag: [asc users](https://air.build/docs/cli/asc-users/).

Manage users and invitations in App Store Connect.

| Subcommand | What it does | Main flags |
| --- | --- | --- |
| `list` | List users in App Store Connect. | `--email`, `--include`, `--role`, `--sort`, `--visible-app`, `--visible-apps-limit` |
| `view` | View a user by ID. | `--id`, `--include` |
| `update` | Update a user. | `--confirm`, `--id`, `--provisioning-allowed`, `--roles`, `--visible-app` |
| `delete` | Delete a user. | `--confirm`, `--id` |
| `invite` | Invite a user. | `--all-apps`, `--email`, `--first-name`, `--last-name`, `--provisioning-allowed`, `--roles`, `--visible-app` |
| `invites` | Manage user invitations. | subcommands: `list`, `view`, `revoke`, `visible-apps` |
| `visible-apps` | View visible apps for a user. | subcommands: `list`, `view` |

`users invite --email EMAIL --first-name NAME --last-name NAME --roles ADMIN` invites someone to the App Store Connect team; `--all-apps` or `--visible-app` sets which apps they see. `users update` changes roles and apps; `users delete` needs `--confirm`.

## actors

Look up actors (users and API keys) by ID, for audit fields such as `submittedByActor`. Each actor has a type and either the user's name and email or the API key's ID.

| Subcommand | What it does |
| --- | --- |
| [`list`](https://air.build/docs/cli/asc-signing/#actors-list) | List actors by ID. |
| [`view`](https://air.build/docs/cli/asc-signing/#actors-view) | View an actor by ID. |

### actors list

List several actors by ID.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Actor ID(s), comma-separated. Required. | — |

```sh
asc actors list --id "ACTOR_ID"
```

### actors view

View one actor by ID.

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

```sh
asc actors view --id "ACTOR_ID"
```

## account

Inspect account-level health and access signals.

| Subcommand | What it does |
| --- | --- |
| [`status`](https://air.build/docs/cli/asc-signing/#account-status) | Show account health checks. |

### account status

Run account health checks and print a summary and each check. The checks are authentication health, a read-only API access probe and whether Apple's API shows agreements (it does not; `asc web agreements status` does). `summary.health` is `yellow` at best, because Apple's API does not report agreement status, or `red` when a check fails, and `summary.nextAction` says what to do; each entry in `checks` has a `name`, `status` (`ok`, `warn`, `fail` or `unavailable`) and `message`.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | App ID for the access probe (or `ASC_APP_ID`). | — |

```sh
asc account status --app "1234567890"
```

## Examples

Register a bundle ID and turn on a capability:

```bash
asc bundle-ids create --identifier "com.example.app" --name "Example" --platform IOS
asc bundle-ids capabilities add --bundle "BUNDLE_ID" --capability PUSH_NOTIFICATIONS
```

Register a tester's iPhone:

```bash
asc devices register --name "Tester iPhone" --udid "UDID" --platform IOS
```

Notarize a Mac app and staple the ticket:

```bash
asc notarization submit --file ./MyApp.dmg --wait
asc notarization staple --file ./MyApp.dmg --confirm
```
