# asc testflight

> asc testflight commands for beta groups, testers, feedback, crashes, beta app review, distribution settings, recruitment, metrics, beta app localizations and pre-release versions.

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

`asc testflight` manages everything around beta testing an app in TestFlight: groups and their testers, tester feedback and crash reports, beta app review, distribution settings, recruitment criteria, usage metrics, the beta app description per language, and pre-release versions. Uploading builds and handing one build to groups are `asc builds` commands (see [asc: builds and TestFlight](https://air.build/docs/cli/asc-builds/)). 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 flags tables below leave out `--output`, `--pretty`, `--limit`, `--next`, `--paginate` and the `--…-fields` flags, which are explained there (where `--output` names a file, as in `testers export` and `config export`, it is listed).

Notes that apply to the whole page:

- Commands that read App Store Connect resources print Apple's JSON, as described on [asc](https://air.build/docs/cli/asc/); sections note other output.
- A flag marked "Required" is checked before any request; leaving it out exits `2`. Where `--app` is required, `ASC_APP_ID` can stand in for it, except on `testers remove-apps`, which needs `--app` itself.
- List commands don't need their required ID flags when you pass `--next`, because the `links.next` URL already names the resource. `--type` on `links` commands and `--build-id` on `review submissions list` are still required.

| Subcommand | What it does |
| --- | --- |
| [groups](https://air.build/docs/cli/asc-testflight/#groups) | Manage TestFlight groups. |
| [testers](https://air.build/docs/cli/asc-testflight/#testers) | Manage TestFlight testers. |
| [feedback](https://air.build/docs/cli/asc-testflight/#feedback) | Manage TestFlight feedback. |
| [crashes](https://air.build/docs/cli/asc-testflight/#crashes) | Manage TestFlight crash submissions. |
| [agreements](https://air.build/docs/cli/asc-testflight/#agreements) | Manage TestFlight agreements. |
| [notifications](https://air.build/docs/cli/asc-testflight/#notifications) | Send TestFlight notifications. |
| [review](https://air.build/docs/cli/asc-testflight/#review) | Manage TestFlight review details. |
| [distribution](https://air.build/docs/cli/asc-testflight/#distribution) | Manage TestFlight distribution settings. |
| [recruitment](https://air.build/docs/cli/asc-testflight/#recruitment) | Manage TestFlight recruitment criteria. |
| [metrics](https://air.build/docs/cli/asc-testflight/#metrics) | Fetch TestFlight metrics. |
| [config](https://air.build/docs/cli/asc-testflight/#config) | Export TestFlight configuration. |
| [app-localizations](https://air.build/docs/cli/asc-testflight/#app-localizations) | Manage TestFlight app localizations. |
| [pre-release](https://air.build/docs/cli/asc-testflight/#pre-release) | Manage pre-release versions. |

## groups

Beta groups of an app: internal groups (App Store Connect users) and external groups (anyone, by email or public link).

| Subcommand | What it does |
| --- | --- |
| `list` | List TestFlight groups for an app or globally. |
| `create` | Create a TestFlight group. |
| `view` | View a TestFlight group by ID. |
| `app view` | View the app for a group. |
| `recruitment view` | View recruitment criteria for a group. |
| `compatibility view` | View recruitment compatibility for a group. |
| `edit` | Edit a TestFlight group. |
| `add-testers` | Add testers to a group. |
| `remove-testers` | Remove testers from a group. |
| `builds list` | List builds in a group. |
| `testers list` | List testers in a group. |
| `links view` | View group relationship linkages. |
| `delete` | Delete a TestFlight group. |

### groups list

Lists an app's groups, every group across apps (`--global`), or the groups that contain a build (`--build-id`).

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | The app ID. Required unless `--global` or `--build-id`. | — |
| `--global` | Lists groups across all apps. | `false` |
| `--build-id` | Lists the groups that contain this build, including groups with access to all builds. | — |
| `--internal` / `--external` | Only internal or only external groups. | `false` |
| `--name` | Only the group with this exact name. | — |
| `--id` | Only these group IDs, comma-separated. | — |
| `--public-link` | Only the group with this public link value. | — |
| `--public-link-enabled`, `--public-link-limit-enabled` | Filters on the public link settings (`true` or `false`). | — |
| `--sort` | `name`, `createdDate`, `publicLinkEnabled` or `publicLinkLimit`, with `-` for descending. | — |
| `--include` | Adds related resources: `app`, `builds`, `betaTesters`, `betaRecruitmentCriteria`. | — |
| `--testers-limit`, `--builds-limit` | Caps included testers (1–50) and builds (1–1000). | — |

Notes:

- With `--build-id`, the command pages through all of the app's groups itself and can be combined only with `--app`, `--internal` and `--external` (plus the output flags); `--global`, `--limit`, `--next`, `--paginate`, `--name`, `--sort` and the other filter and include flags are refused. A complete lookup with no groups prints an empty `groups` array and exits `0`; if some memberships could not be read, it prints what it found with `complete=false` and exits non-zero. `asc builds groups list` gives the same result.
- An app-scoped `--internal` or `--external` list (without `--name` or `--sort`) collects every page; `--limit` then caps the total. Other filtered and global lists return one page unless you add `--paginate`, which uses a page size of 200.
- `--name` with spaces that matches nothing is retried with the app's own spelling (such as the non-breaking space in the default group's name).
- `--next` can't be combined with filter, sort or include flags: the `links.next` URL already carries them.

```sh
asc testflight groups list --app "APP_ID" --internal
```

### groups create

Creates a group, optionally with builds and testers attached.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | The app ID. Required. | — |
| `--name` | Group name. Required. | — |
| `--internal` | Creates an internal group. | `false` |
| `--access-all-builds` | Gives the group access to all builds. | `false` |
| `--build-id` | Build IDs to attach, comma-separated. | — |
| `--tester` | Tester IDs to attach, comma-separated. | — |
| `--feedback-enabled` | Lets testers send feedback. | `false` |
| `--public-link-enabled` | Turns on the public link. | `false` |
| `--public-link-limit-enabled` | Turns on the cap on testers who can join by public link. | `false` |
| `--public-link-limit` | The cap, 1–10000. | — |

App Store Connect can create the group even when attaching builds or testers fails (for example, on an unknown build ID). The error then names the group it found and the commands to attach them or delete the group, so retrying does not make a duplicate.

```sh
asc testflight groups create --app "APP_ID" --name "Beta Testers" --build-id "BUILD_ID1,BUILD_ID2" --tester "TESTER_ID1,TESTER_ID2"
```

### groups view

Shows one group.

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

```sh
asc testflight groups view --id "GROUP_ID"
```

### groups app view

Shows the app a group belongs to.

| Flag | What it does | Default |
| --- | --- | --- |
| `--group-id` (or `--id`) | Group ID. Required. | — |

```sh
asc testflight groups app view --group-id "GROUP_ID"
```

### groups recruitment view

Shows a group's recruitment criteria (which devices and OS versions can join by public link).

| Flag | What it does | Default |
| --- | --- | --- |
| `--group-id` (or `--id`) | Group ID. Required. | — |

```sh
asc testflight groups recruitment view --group-id "GROUP_ID"
```

### groups compatibility view

Shows whether a group's builds are compatible with its recruitment criteria.

| Flag | What it does | Default |
| --- | --- | --- |
| `--group-id` (or `--id`) | Group ID. Required. | — |

```sh
asc testflight groups compatibility view --group-id "GROUP_ID"
```

### groups edit

Changes a group's name and settings.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Group ID. Required. | — |
| `--name` | New name. | — |
| `--feedback-enabled` | Lets testers send feedback. | `false` |
| `--public-link-enabled` | Turns on the public link. | `false` |
| `--public-link-limit-enabled` | Turns on the cap on testers who can join by public link. | `false` |
| `--public-link-limit` | The cap, 1–10000. | — |
| `--ios-builds-available-for-apple-silicon-mac` | Makes the group's iOS builds available on Apple silicon Macs. | — |
| `--ios-builds-available-for-apple-vision` | Makes the group's iOS builds available on Apple Vision. | — |

Pass at least one change. To turn a setting off, write it as `--flag=false`, such as `--ios-builds-available-for-apple-vision=false`.

```sh
asc testflight groups edit --id "GROUP_ID" --public-link-enabled --public-link-limit 100
```

### groups add-testers

Adds testers to a group, by tester ID or email.

| Flag | What it does | Default |
| --- | --- | --- |
| `--group` | Group ID. Required. | — |
| `--tester` | Tester IDs, comma-separated. | — |
| `--email` | Tester emails, comma-separated. Only finds people who are already testers of the group's app. | — |

Give `--tester` or `--email`. A tester who is already in the group is reported as skipped (`"action":"skipped"`) and the command exits `0`, once a read-back confirms every requested tester is in the group; any other conflict fails. To invite someone new, use [testers add](https://air.build/docs/cli/asc-testflight/#testers-add).

```sh
asc testflight groups add-testers --group "GROUP_ID" --email "tester@example.com"
```

### groups remove-testers

Removes testers from a group.

| Flag | What it does | Default |
| --- | --- | --- |
| `--group` | Group ID. Required. | — |
| `--tester` | Tester IDs, comma-separated. Required. | — |
| `--confirm` | Confirms the removal. Required. | `false` |

```sh
asc testflight groups remove-testers --group "GROUP_ID" --tester "TESTER_ID" --confirm
```

### groups builds list

Lists the builds in a group; no `--app` needed.

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

`--group-id`, `--fields` and `--limit` can't be combined with `--next`. With `--paginate`, `--limit` sets the page size (default 200).

```sh
asc testflight groups builds list --group-id "GROUP_ID"
```

### groups testers list

Lists the testers in a group; no `--app` needed.

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

`--group-id`, `--fields` and `--limit` can't be combined with `--next`. With `--paginate`, `--limit` sets the page size (default 200).

```sh
asc testflight groups testers list --group-id "GROUP_ID"
```

### groups links view

Lists the IDs a group is linked to, for one relationship.

| Flag | What it does | Default |
| --- | --- | --- |
| `--group-id` (or `--id`) | Group ID. Required. | — |
| `--type` | `betaTesters` or `builds`. Required. | — |

```sh
asc testflight groups links view --group-id "GROUP_ID" --type "betaTesters"
```

### groups delete

Deletes a group.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Group ID. Required. | — |
| `--confirm` | Confirms the deletion. Required. | `false` |

```sh
asc testflight groups delete --id "GROUP_ID" --confirm
```

## testers

Beta testers: adding, inviting, removing, moving them between groups and builds, and CSV import and export.

| Subcommand | What it does |
| --- | --- |
| `list` | List TestFlight testers for an app. |
| `view` | View a TestFlight tester by ID. |
| `add` | Add a TestFlight tester. |
| `invite` | Invite a TestFlight tester. |
| `export` | Export TestFlight testers to a CSV file. |
| `import` | Import TestFlight testers from a CSV file. |
| `remove` | Remove a TestFlight tester. |
| `add-groups` / `remove-groups` | Add a tester to groups / remove them. |
| `add-builds` / `remove-builds` | Add builds to a tester / remove them. |
| `remove-apps` | Remove apps from a tester. |
| `links view` | View tester relationship linkages. |
| `apps list` | List apps for a tester. |
| `groups list` | List groups for a tester. |
| `builds list` | List builds for a tester. |
| `metrics` | Fetch tester usage metrics. |

### testers list

Lists an app's testers. To list one group's testers without `--app`, use [groups testers list](https://air.build/docs/cli/asc-testflight/#groups-testers-list).

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | The app ID. Required. | — |
| `--group` | Only testers in this group (name or ID). | — |
| `--build-id` | Only testers of this build. | — |
| `--email` | Only the tester with this email. | — |
| `--first-name`, `--last-name` | Only testers with this name (exact match). | — |
| `--invite-type` | `EMAIL`, `PUBLIC_LINK`, comma-separated. | — |
| `--sort` | `firstName`, `lastName`, `email`, `inviteType` or `state`, with `-` for descending. | — |
| `--include` | Adds related `apps`, `betaGroups`, `builds` (JSON output only). | — |

Included relationships hold at most 50 items each, and `--paginate` pages testers, not those items; for a tester's full group list use [testers groups list](https://air.build/docs/cli/asc-testflight/#testers-groups-list). Filter, sort and include flags can't be combined with `--next`; invalid values and combinations exit `2` before any request.

```sh
asc testflight testers list --app "APP_ID" --group "Beta"
```

### testers view

Shows one tester. For the tester's groups, use [testers groups list](https://air.build/docs/cli/asc-testflight/#testers-groups-list).

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

```sh
asc testflight testers view --id "TESTER_ID"
```

### testers add

Adds a tester by email to groups, builds or both, in one create request.

| Flag | What it does | Default |
| --- | --- | --- |
| `--email` | Tester email. Required. | — |
| `--first-name`, `--last-name` | Tester name. | — |
| `--group` | Group names or IDs, comma-separated. Needs `--app`. | — |
| `--build-id` | Build IDs to attach, comma-separated. | — |
| `--app` | The app ID, used to find `--group`. | — |

At least one of `--group` or `--build-id` is required. A `--group` value that exactly matches one group name is used as-is, even with commas in it; to combine such a group with others, use its ID.

```sh
asc testflight testers add --app "APP_ID" --email "tester@example.com" --group "Beta"
```

### testers invite

Sends a TestFlight invitation to a tester.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | The app ID. Required. | — |
| `--email` | Tester email. Required. | — |
| `--group` | Group names or IDs, comma-separated; creates the tester if missing. | — |

```sh
asc testflight testers invite --app "APP_ID" --email "tester@example.com" --group "Beta"
```

### testers export

Writes an app's testers to a CSV file and prints a summary.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | The app ID. Required. | — |
| `--output` | Path of the CSV file. Required. | — |
| `--group` | Only testers in this group (name or ID). | — |
| `--build-id` | Only testers of this build. | — |
| `--email` | Only the tester with this email. | — |
| `--first-name`, `--last-name` | Only testers with this name (exact match). | — |
| `--include-groups` | Adds a `groups` column (takes extra requests). | `false` |
| `--format` | Format of the printed summary: `json`, `table`, `markdown`. | `json` |

The CSV columns are `email,first_name,last_name,groups`, with groups separated by semicolons. A cell that would start a spreadsheet formula (`=`, `+`, `-`, `@`) gets a leading single quote, and an `_asc_formula_escaping` column records it so `testers import` removes only those quotes.

```sh
asc testflight testers export --app "APP_ID" --group "Beta" --output "./testers.csv"
```

### testers import

Creates and updates testers from a CSV file and prints a summary.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | The app ID. Required. | — |
| `--input` | Path of the CSV file. Required. | — |
| `--dry-run` | Validates and prints the plan; changes nothing. | `false` |
| `--confirm` | Confirms the changes. Required unless `--dry-run`. | `false` |
| `--group` | A group name or ID applied to every row. | — |
| `--invite` | Invites newly created testers. | `false` |
| `--skip-existing` | Leaves the group membership of existing testers alone. | `false` |
| `--continue-on-error` | Keeps going after a failed row. | `true` |
| `--format` | Format of the printed summary: `json`, `table`, `markdown`. | `json` |

It reads the `email,first_name,last_name,groups` header, the fastlane `First,Last,Email,Groups` header, and headerless `First,Last,Email[,Groups]` rows. Groups are separated by semicolons, or by commas when there is no semicolon. A single quote that `testers export` added is removed only on rows its `_asc_formula_escaping` column marks; your own apostrophes stay.

```sh
asc testflight testers import --app "APP_ID" --input "./testflight-testers.csv" --dry-run
```

### testers remove

Deletes a tester record.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | The app ID used to find the tester. Required. | — |
| `--email` | Tester email. Required. | — |
| `--confirm` | Confirms the removal. Required. | `false` |
| `--wait` | Waits until the removal is visible (the tester is gone or `REVOKED`). | `false` |
| `--poll-interval` | How often `--wait` checks. | `5s` |
| `--timeout` | How long `--wait` waits. | `2m` |

This removes the tester from every group and build in every app, not only `--app`, and can't be undone. Removed testers can still show up in lists as `REVOKED`; `testers view --id` reports them gone.

```sh
asc testflight testers remove --app "APP_ID" --email "tester@example.com" --confirm --wait
```

### testers add-groups

Adds a tester to groups.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Tester ID. Required. | — |
| `--group` | Group IDs, comma-separated. Required. | — |

```sh
asc testflight testers add-groups --id "TESTER_ID" --group "GROUP_ID_1,GROUP_ID_2"
```

### testers remove-groups

Removes a tester from groups.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Tester ID. Required. | — |
| `--group` | Group IDs, comma-separated. Required. | — |
| `--confirm` | Confirms the removal. Required. | `false` |

```sh
asc testflight testers remove-groups --id "TESTER_ID" --group "GROUP_ID" --confirm
```

### testers add-builds

Gives a tester individual builds.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Tester ID. Required. | — |
| `--build-id` | Build IDs, comma-separated. Required. | — |

```sh
asc testflight testers add-builds --id "TESTER_ID" --build-id "BUILD_ID1,BUILD_ID2"
```

### testers remove-builds

Takes individual builds away from a tester.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Tester ID. Required. | — |
| `--build-id` | Build IDs, comma-separated. Required. | — |
| `--confirm` | Confirms the removal. Required. | `false` |

```sh
asc testflight testers remove-builds --id "TESTER_ID" --build-id "BUILD_ID" --confirm
```

### testers remove-apps

Removes a tester from apps.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Tester ID. Required. | — |
| `--app` | App IDs, comma-separated. Required. | — |
| `--confirm` | Confirms the removal. Required. | `false` |

```sh
asc testflight testers remove-apps --id "TESTER_ID" --app "APP_ID" --confirm
```

### testers links view

Lists the IDs a tester is linked to, for one relationship.

| Flag | What it does | Default |
| --- | --- | --- |
| `--tester-id` (or `--id`) | Tester ID. Required. | — |
| `--type` | `apps`, `betaGroups` or `builds`. Required. | — |

```sh
asc testflight testers links view --tester-id "TESTER_ID" --type "apps"
```

### testers apps list

Lists the apps a tester can test.

| Flag | What it does | Default |
| --- | --- | --- |
| `--tester-id` (or `--id`) | Tester ID. Required. | — |

```sh
asc testflight testers apps list --tester-id "TESTER_ID"
```

### testers groups list

Lists the groups a tester is in. Add `--paginate` for the complete membership.

| Flag | What it does | Default |
| --- | --- | --- |
| `--tester-id` (or `--id`) | Tester ID. Required. | — |

```sh
asc testflight testers groups list --tester-id "TESTER_ID"
```

### testers builds list

Lists the builds a tester has.

| Flag | What it does | Default |
| --- | --- | --- |
| `--tester-id` (or `--id`) | Tester ID. Required. | — |

```sh
asc testflight testers builds list --tester-id "TESTER_ID"
```

### testers metrics

Shows one tester's usage of an app.

| Flag | What it does | Default |
| --- | --- | --- |
| `--tester-id` (or `--id`) | Tester ID. Required. | — |
| `--app` | The app ID. Required. | — |
| `--period` | `P7D`, `P30D`, `P90D` or `P365D`. | — |

```sh
asc testflight testers metrics --tester-id "TESTER_ID" --app "APP_ID" --period "P30D"
```

## feedback

Feedback testers send from the TestFlight app.

| Subcommand | What it does |
| --- | --- |
| `list` | List TestFlight feedback. |
| `view` | View a feedback submission by ID. |
| `delete` | Delete a feedback submission by ID. |

### feedback list

Lists an app's feedback submissions.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | The app ID. Required. | — |
| `--build-id`, `--build-pre-release-version`, `--tester` | Filters by build, pre-release version or tester IDs, comma-separated. | — |
| `--app-platform`, `--device-platform` | Filters by platform: `IOS`, `MAC_OS`, `TV_OS`, `VISION_OS`, comma-separated. | — |
| `--device-model`, `--os-version` | Filters by device model and OS version, comma-separated. | — |
| `--sort` | `createdDate` or `-createdDate`. | — |
| `--include` | Adds related `build`, `tester`. | — |
| `--include-screenshots` | Adds the screenshot URLs. | `false` |

```sh
asc testflight feedback list --app "1234567890" --device-model "iPhone15,3" --os-version "17.2"
```

### feedback view

Shows one feedback submission.

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

```sh
asc testflight feedback view --submission-id "SUBMISSION_ID"
```

### feedback delete

Deletes a feedback submission.

| Flag | What it does | Default |
| --- | --- | --- |
| `--submission-id` | Feedback submission ID. Required. | — |
| `--confirm` | Confirms the deletion. Required. | `false` |

```sh
asc testflight feedback delete --submission-id "SUBMISSION_ID" --confirm
```

## crashes

Crash reports testers send from the TestFlight app.

| Subcommand | What it does |
| --- | --- |
| `list` | List TestFlight crash submissions. |
| `view` | View a crash submission by ID. |
| `log` | Fetch a crash log by submission ID or crash log ID. |
| `delete` | Delete a crash submission by ID. |

### crashes list

Lists an app's crash submissions.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | App ID, bundle ID or exact app name. Required. | — |
| `--build-id`, `--build-pre-release-version`, `--tester` | Filters by build, pre-release version or tester IDs, comma-separated. | — |
| `--app-platform`, `--device-platform` | Filters by platform: `IOS`, `MAC_OS`, `TV_OS`, `VISION_OS`, comma-separated. | — |
| `--device-model`, `--os-version` | Filters by device model and OS version, comma-separated. | — |
| `--sort` | `createdDate` or `-createdDate`. | — |
| `--include` | Adds related `build`, `tester`. | — |

```sh
asc testflight crashes list --app "1234567890"
```

### crashes view

Shows one crash submission.

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

```sh
asc testflight crashes view --submission-id "SUBMISSION_ID"
```

### crashes log

Fetches a crash log.

| Flag | What it does | Default |
| --- | --- | --- |
| `--submission-id` | Crash submission ID. | — |
| `--crash-log-id` | Crash log ID. | — |

Give exactly one of the two.

```sh
asc testflight crashes log --submission-id "SUBMISSION_ID"
```

### crashes delete

Deletes a crash submission.

| Flag | What it does | Default |
| --- | --- | --- |
| `--submission-id` | Crash submission ID. Required. | — |
| `--confirm` | Confirms the deletion. Required. | `false` |

```sh
asc testflight crashes delete --submission-id "SUBMISSION_ID" --confirm
```

## agreements

The beta license agreement testers accept.

| Subcommand | What it does |
| --- | --- |
| `list` | List agreements. |
| `view` | View an agreement by ID or app. |
| `edit` | Edit an agreement. |

### agreements list

Lists beta license agreements, of every app or only some.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | Only these app IDs, comma-separated. | all |
| `--include` | Adds related resources, such as `app`. | — |

```sh
asc testflight agreements list --app "APP_ID"
```

### agreements view

Shows an agreement, by its ID or by app.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Agreement ID. | — |
| `--app` | The app ID. | — |
| `--include` | Adds related resources, such as `app`. | — |

Give `--id` or `--app`, not both.

```sh
asc testflight agreements view --app "APP_ID"
```

### agreements edit

Changes an agreement's text.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Agreement ID. Required. | — |
| `--agreement-text` | The new text. Required. | — |

```sh
asc testflight agreements edit --id "AGREEMENT_ID" --agreement-text "Updated terms"
```

## notifications

Notifications to testers.

| Subcommand | What it does |
| --- | --- |
| `send` | Send a notification for a build. |

### notifications send

Notifies a build's testers that it is available.

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

```sh
asc testflight notifications send --build-id "BUILD_ID"
```

## review

Beta app review: the contact and demo account details Apple uses, and submitting builds for external testing.

| Subcommand | What it does |
| --- | --- |
| `view` | View review details for an app. |
| `app view` | View the app for a review detail. |
| `edit` | Edit review details. |
| `submit` | Submit a build for TestFlight review. |
| `submissions list` | List review submissions. |
| `submissions view` | View a review submission by ID. |
| `submissions build` | View the build for a review submission. |

### review view

Shows an app's beta app review details. Demo account passwords print as `(redacted)` unless `--include-sensitive`.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | The app ID. Required. | — |
| `--include-sensitive` | Prints secret values, such as the demo account password, instead of `(redacted)`, for this run only. Never paste this output into a chat, issue or log. | `off` |

```sh
asc testflight review view --app "APP_ID"
```

### review app view

Shows the app of a review detail.

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

```sh
asc testflight review app view --id "DETAIL_ID"
```

### review edit

Changes beta app review details.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Review detail ID. Required. | — |
| `--contact-first-name`, `--contact-last-name`, `--contact-email`, `--contact-phone` | The contact Apple reaches out to. | — |
| `--demo-account-required` | Whether reviewers need a demo account. | `false` |
| `--demo-account-name`, `--demo-account-password` | The demo account. Pass it as `@env:NAME` or `@file:PATH`, not as plain text (see [asc](https://air.build/docs/cli/asc/)). | — |
| `--notes` | Notes for the reviewer. | — |
| `--include-sensitive` | Prints secret values, such as the demo account password, instead of `(redacted)`, for this run only. Never paste this output into a chat, issue or log. | `off` |

Pass at least one change.

```sh
asc testflight review edit --id "DETAIL_ID" --contact-email "dev@example.com"
```

### review submit

Submits a build for beta app review.

| Flag | What it does | Default |
| --- | --- | --- |
| `--build-id` | Build ID. Required. | — |
| `--confirm` | Confirms the submission. Required. | `false` |

```sh
asc testflight review submit --build-id "BUILD_ID" --confirm
```

### review submissions list

Lists a build's beta app review submissions.

| Flag | What it does | Default |
| --- | --- | --- |
| `--build-id` | Build ID. Required, also with `--next`. | — |

```sh
asc testflight review submissions list --build-id "BUILD_ID"
```

### review submissions view

Shows one beta app review submission.

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

```sh
asc testflight review submissions view --id "SUBMISSION_ID"
```

### review submissions build

Shows the build of a beta app review submission.

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

```sh
asc testflight review submissions build --id "SUBMISSION_ID"
```

## distribution

A build's TestFlight distribution settings (its build beta detail). External distribution itself goes through groups: `asc builds add-groups … --submit --confirm` and `asc builds remove-groups … --confirm` (see [asc: builds and TestFlight](https://air.build/docs/cli/asc-builds/)).

| Subcommand | What it does |
| --- | --- |
| `view` | View distribution settings for a build. |
| `build view` | View the build for a distribution setting. |
| `edit` | Edit distribution settings. |

### distribution view

Shows a build's distribution settings. Find the build ID with `asc builds list --app "APP_ID" --paginate --output json`.

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

```sh
asc testflight distribution view --build-id "BUILD_ID"
```

### distribution build view

Shows the build of a distribution setting.

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

```sh
asc testflight distribution build view --id "DETAIL_ID"
```

### distribution edit

Changes a build's distribution settings.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Distribution setting ID. Required. | — |
| `--auto-notify` | Notifies external testers automatically when the build becomes available. | `false` |

Pass at least one change.

```sh
asc testflight distribution edit --id "DETAIL_ID" --auto-notify
```

## recruitment

Recruitment criteria: which device families and OS versions can join a group by its public link.

| Subcommand | What it does |
| --- | --- |
| `options` | List recruitment criteria options. |
| `set` | Set recruitment criteria for a group. |
| `delete` | Delete recruitment criteria. |

### recruitment options

Lists the device families and OS versions you can choose from. It has no flags besides the shared ones on [asc](https://air.build/docs/cli/asc/).

```sh
asc testflight recruitment options
```

### recruitment set

Sets a group's recruitment criteria.

| Flag | What it does | Default |
| --- | --- | --- |
| `--group` | Group ID. Required. | — |
| `--os-version-filter` | OS version filters per device family, such as `IPHONE=26,IPAD=26`. Required. | — |

```sh
asc testflight recruitment set --group "GROUP_ID" --os-version-filter "IPHONE=26,IPAD=26"
```

### recruitment delete

Deletes recruitment criteria.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Recruitment criteria ID. Required. | — |
| `--confirm` | Confirms the deletion. Required. | `false` |

```sh
asc testflight recruitment delete --id "CRITERIA_ID" --confirm
```

## metrics

Tester usage metrics. For one build, see `asc builds metrics beta-usages`; for one tester, [testers metrics](https://air.build/docs/cli/asc-testflight/#testers-metrics).

| Subcommand | What it does |
| --- | --- |
| `public-link` | Fetch TestFlight public link usage metrics. |
| `group-testers` | Fetch TestFlight group tester usage metrics. |
| `app-testers` | Fetch TestFlight app tester usage metrics. |

### metrics public-link

Shows public link usage for a group.

| Flag | What it does | Default |
| --- | --- | --- |
| `--group` | Group ID. Required. | — |

```sh
asc testflight metrics public-link --group "GROUP_ID"
```

### metrics group-testers

Shows tester usage for a group.

| Flag | What it does | Default |
| --- | --- | --- |
| `--group` | Group ID. Required. | — |

```sh
asc testflight metrics group-testers --group "GROUP_ID"
```

### metrics app-testers

Shows tester usage for an app.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | The app ID. Required. | — |
| `--period` | `P7D`, `P30D`, `P90D` or `P365D`. | — |
| `--filter-tester` | Only this tester ID. | — |
| `--group-by` | Dimension to group by; `testers` is the only one. | `testers` |
| `--resolve-testers` | Adds each tester's email and name (takes extra requests). | `false` |

```sh
asc testflight metrics app-testers --app "APP_ID" --period "P30D"
```

## config

Exports an app's TestFlight setup.

| Subcommand | What it does |
| --- | --- |
| `export` | Export TestFlight configuration to YAML. |

### config export

Writes an app's TestFlight setup (groups and, optionally, builds and testers) to a YAML file.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | App ID, bundle ID or exact app name. Required. | — |
| `--output` | Path of the YAML file. Required. | — |
| `--include-builds` | Adds builds and their group assignments. | `false` |
| `--include-testers` | Adds testers and their group memberships. | `false` |
| `--group` | Only this group (name or ID). | — |
| `--build-id` | Only these build IDs, comma-separated. | — |
| `--tester` | Only these tester IDs or emails, comma-separated. | — |

```sh
asc testflight config export --app "APP_ID" --output "./testflight.yaml" --include-builds --include-testers
```

## app-localizations

The beta app information testers see in TestFlight, per language: description, feedback email, marketing and privacy policy URLs.

| Subcommand | What it does |
| --- | --- |
| `list` | List app localizations for an app. |
| `view` | View an app localization by ID. |
| `app view` | View the app for an app localization. |
| `create` | Create an app localization. |
| `update` | Update an app localization. |
| `delete` | Delete an app localization. |

### app-localizations list

Lists an app's beta app localizations.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | The app ID. Required. | — |
| `--locale` | Only these locales, comma-separated. | — |

```sh
asc testflight app-localizations list --app "APP_ID" --locale "en-US,ja"
```

### app-localizations view

Shows one localization.

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

```sh
asc testflight app-localizations view --id "LOCALIZATION_ID"
```

### app-localizations app view

Shows the app of a localization.

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

```sh
asc testflight app-localizations app view --id "LOCALIZATION_ID"
```

### app-localizations create

Adds a language.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | The app ID. Required. | — |
| `--locale` | Locale, such as `en-US`. Required. | — |
| `--description` | Beta app description. | — |
| `--feedback-email` | Where tester feedback goes. | — |
| `--marketing-url` | Marketing URL. | — |
| `--privacy-policy-url` | Privacy policy URL. | — |
| `--tv-os-privacy-policy` | tvOS privacy policy text. | — |

```sh
asc testflight app-localizations create --app "APP_ID" --locale "en-US" --description "Welcome testers"
```

### app-localizations update

Changes a localization.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | App localization ID. Required. | — |
| `--description` | Beta app description. | — |
| `--feedback-email` | Where tester feedback goes. | — |
| `--marketing-url` | Marketing URL. | — |
| `--privacy-policy-url` | Privacy policy URL. | — |
| `--tv-os-privacy-policy` | tvOS privacy policy text. | — |

Pass at least one change.

```sh
asc testflight app-localizations update --id "LOCALIZATION_ID" --feedback-email "qa@example.com"
```

### app-localizations delete

Deletes a localization.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | App localization ID. Required. | — |
| `--confirm` | Confirms the deletion. Required. | `false` |

```sh
asc testflight app-localizations delete --id "LOCALIZATION_ID" --confirm
```

## pre-release

Pre-release versions: the marketing versions (such as `1.2.0`) that TestFlight builds are grouped under.

| Subcommand | What it does |
| --- | --- |
| `list` | List pre-release versions for an app. |
| `view` | View a pre-release version by ID. |
| `app view` | View the app for a pre-release version. |
| `builds list` | List builds for a pre-release version. |
| `links view` | View relationship linkages for a pre-release version. |

### pre-release list

Lists an app's pre-release versions.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | The app ID. Required. | — |
| `--platform` | `IOS`, `MAC_OS`, `TV_OS` or `VISION_OS`. | — |
| `--version` | Only this version string. | — |

```sh
asc testflight pre-release list --app "APP_ID" --platform IOS
```

### pre-release view

Shows one pre-release version.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Pre-release version ID. Required. | — |

```sh
asc testflight pre-release view --id "PR_ID"
```

### pre-release app view

Shows the app of a pre-release version.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Pre-release version ID. Required. | — |

```sh
asc testflight pre-release app view --id "PR_ID"
```

### pre-release builds list

Lists the builds of a pre-release version.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Pre-release version ID. Required. | — |

```sh
asc testflight pre-release builds list --id "PR_ID"
```

### pre-release links view

Lists the IDs a pre-release version is linked to, for one relationship.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Pre-release version ID. Required. | — |
| `--type` | `app` or `builds`. Required. | — |

`--limit`, `--next` and `--paginate` work only with `--type builds`.

```sh
asc testflight pre-release links view --id "PR_ID" --type "builds"
```
