Agent commands

The App Store Connect command line in a Team: how it picks an Apple team, its output, pagination, exit codes and every command family.

asc is a command line for App Store Connect: apps, versions, metadata, screenshots, builds, TestFlight, review, in-app purchases, subscriptions, pricing, signing resources, reports and more. In AirBuild it runs in a Team’s Environment, on cloud Teams and Mac Teams alike, and always works with the Apple teams the Team owner connected in AirBuild.

This page covers what every command shares: picking an Apple team, flags, output, pagination and exit codes. The command families are listed at the end, each with a link to its page.

Synopsis

Terminal window
asc <command> [<subcommand> ...] [flags]
asc <command> --help
asc --version

Every command and subcommand has --help. asc search "<what you want to do>" finds the command for a task (see Finding commands).

Getting started

Terminal window
asc auth list                                # the connected Apple teams and their --auth names
asc apps list --paginate --output table      # your apps and their IDs
asc status --app APP_ID                      # one-screen release overview of an app

Most commands take resource IDs, such as an app ID, a version ID or a build ID. Find them with the list commands. Wherever a command says APP_ID or similar, put the real value in its place.

Apple teams and –auth

asc holds no Apple key and never signs in to Apple itself. The Team owner connects an Apple Developer account in AirBuild and switches on the Apple teams the Team may use (see Connect your Apple Developer account). Every asc request then goes through AirBuild for one of those Apple teams. Members of the Team, and their Agents, use the owner’s connected teams.

asc auth list shows them as a tab-separated table:

AUTH        APPLE TEAM          TEAM ID
my-company  My Company, Inc.    A1B2C3D4E5
side-apps   Jane Appleseed      F6G7H8I9J0

Select one per command: asc <command> --auth <name>
Column Meaning
AUTH The name to pass to --auth.
APPLE TEAM The Apple team’s name.
TEAM ID Apple’s Team ID.

The list is fetched fresh each time you run asc auth list.

Which Apple team a command uses:

Connected Apple teams What happens
None The command fails: no App Store Connect credentials are connected for this Team. Ask the Team owner to connect one, then run it again.
One It is used. No --auth needed.
Several Pass --auth <name> on each command, or set ASC_AUTH=<name> for the shell. Without either, the command fails and lists the names.

--auth can go before or after the command name: asc --auth my-company apps list and asc apps list --auth my-company are the same.

Commands under asc web, and a few others marked “Airbuild-served” in their help, use the Team owner’s Apple sign-in held in AirBuild, for the parts of App Store Connect and the Developer Portal that Apple’s API does not cover. asc web auth status shows that session for the selected Apple team. asc never asks for an Apple password or a verification code.

Global flags

Flag Value Default What it does
--auth name from asc auth list the only connected team The Apple team to use. Also ASC_AUTH.
--read-only — off Refuses every change (POST, PATCH, PUT, DELETE) before it is sent. ASC_READ_ONLY=1 does the same. A refused request exits 6.
--strict-auth — off Fails when the Apple team could be resolved from more than one source.
--debug — off Debug logging to stderr.
--api-debug — off HTTP debug logging to stderr, with sensitive values redacted.
--retry-log — off Logs retries to stderr (overrides ASC_RETRY_LOG).
--report format, e.g. junit none Writes a CI report in that format.
--report-file path none Where to write the --report file.
--version — — Prints the version and exits (asc version does the same).

Values from the environment or a file

Any flag that takes a value accepts @env:NAME (the value of an environment variable) or @file:PATH (the contents of a file). To pass a value that really starts with @, write @@. --output, --auth, --report and --report-file are always read literally.

Terminal window
asc review details-update --id "DETAIL_ID" --demo-account-password @env:DEMO_PASSWORD

Changes need –confirm

Commands that delete, replace, submit or release something require --confirm; without it they refuse. Many of them also take --dry-run, which shows what would happen and changes nothing. asc never stops to ask a question.

Output

Flag Value Default What it does
--output json, table, markdown see below The output format. Any other value fails: --output must be one of: json, table, markdown (got "yaml").
--pretty — off Indents JSON.

The default format is table when output goes to a terminal and json when it is piped, captured or run in CI, which is the case for Agents. ASC_DEFAULT_OUTPUT (json, table, markdown or md) sets a different default. The help pages show (default: json).

Data goes to stdout. Warnings, progress and errors go to stderr, so JSON on stdout stays clean to parse.

Commands that read App Store Connect resources print Apple’s JSON shape:

{
  "data": [
    { "type": "apps", "id": "1234567890", "attributes": { "name": "…", "bundleId": "com.example.app", "sku": "…", "primaryLocale": "en-US" } }
  ],
  "links": { "self": "https://api.appstoreconnect.apple.com/v1/apps?…", "next": "https://api.appstoreconnect.apple.com/v1/apps?…&cursor=…" },
  "meta": { "paging": { "total": 18, "limit": 1 } }
}

A single resource has an object in data; IDs are at data.id or data[].id. Workflow commands (status, validate, release stage, publish … and others) print their own summary object instead; their help describes it.

Pagination

List commands return one page at a time.

Flag Value Default What it does
--limit 1 to 200 Apple’s page size Results per page.
--paginate — off Fetches every page and prints them merged as one result.
--next a links.next URL — Fetches the page after the one that printed that URL.

When more pages exist and you did not ask for them, stderr says so:

Warning: showing 1 of 18 results; more pages exist (use --paginate or --next where supported)

Add --paginate whenever you need the full list, for example to find an old version or build.

Environment variables

Variable What it does
ASC_AUTH The Apple team, like --auth.
ASC_APP_ID Default for --app on the commands that say “or ASC_APP_ID”.
ASC_DEFAULT_OUTPUT Default output format.
ASC_READ_ONLY 1 refuses every change, like --read-only.
ASC_TIMEOUT / ASC_TIMEOUT_SECONDS Request timeout, as a duration (90s) or whole seconds. Default 30 seconds.
ASC_UPLOAD_TIMEOUT / ASC_UPLOAD_TIMEOUT_SECONDS Upload timeout, the same way. Default 300 seconds.
ASC_RETRY_LOG Logs retries to stderr.

Exit codes

Code Meaning What to do
0 Success. —
1 Other error, including a readiness check that failed (validate, release stage). Read the message on stderr.
2 Wrong usage: unknown command or flag, missing or bad value. Also: no Apple team connected, an unknown --auth name, or several teams and no --auth. Fix the command; --help shows the flags. Unknown flags come with a suggestion.
3 Not authorized: Apple refused, the Apple sign-in needs the owner, or an Apple agreement is waiting. See Errors.
4 Not found. Check the ID; find it with a list command.
5 Conflict: the resource already exists, or another Apple account operation is in progress. Read the message. Some create commands take --if-exists skip or update.
6 --read-only / ASC_READ_ONLY refused a change. Run without read-only if the change is intended.
7 A bounded wait ended before its target (status --until, builds wait --report-pending). Run the printed command again to keep waiting.
10–59 Another HTTP 4xx from Apple: 10 + (status − 400), e.g. 10 for 400, 32 for 422. Read Apple’s error in the message.
60–99 An HTTP 5xx from Apple: 60 + (status − 500), e.g. 63 for 503. Apple had a problem; try again later. asc system-status shows Apple’s service health.

Errors

Errors print as Error: <reason> on stderr, often followed by what to do next.

Message Exit What to do
no App Store Connect credentials are connected for this Team. 2 The Team owner connects an Apple Developer account and switches a team on in Settings › Developer. Then run the command again.
several Apple teams are connected; pass --auth <name>. Connected auths: … 2 Add --auth <name> or set ASC_AUTH.
unknown auth '<name>'. Connected auths: …. Run `asc auth list`. 2 Use one of the names listed.
could not reach Airbuild to fetch the connected Apple teams. 1 A network problem. Try again.
The Apple sign-in needs the owner (they have already been notified). 3 The Team owner signs in again in Settings › Developer › Sign In Again. Run the command after they confirm.
The Apple sign-in expired and could not be restored just now. 3 Try once more. If it keeps failing, ask the Team owner to sign in again.
Another Apple account operation is in progress. 5 Wait about a minute and run it again.
Apple refuses the team until an Apple agreement is accepted. 3 Don’t retry. The Apple team’s Account Holder accepts the agreement, by setting the team up again in AirBuild or at developer.apple.com/account. asc web agreements status shows what is waiting. Apple applies an acceptance within a few minutes.
The agreement is accepted and Apple is applying it. 3 Run the command again in about five minutes.
unknown command `asc …` 2 Check the name with asc --help or asc search.
unknown flag `--x` for `asc …` 2 Use the suggested flag, or read asc <command> --help.
--app is required (or set ASC_APP_ID) 2 Pass --app. Many commands accept an app ID, a bundle ID or the exact app name.

Finding commands

Command What it does
asc search [--limit N] "<query>" Searches the commands, their help, examples and flag names (not App Store Connect data). Default 10 results.
asc capabilities [--area A,B] [--status S] Shows which App Store Connect tasks asc covers: cli-supported, partial, not-public-api (Apple’s API can’t do it) or manual (a person must do it in Apple’s site; nextAction says what to tell them).
asc schema [--method M] [--list] <query> Looks up App Store Connect API endpoints: parameters, attributes, relationships and response types, as JSON. Query by path (apps), method and path ("GET /v1/apps") or action (apps.list, v2.gameCenterAchievements.get).
asc api <METHOD> <PATH> [--query k=v] [--body JSON] [--paginate] [--confirm] Sends a raw request to the App Store Connect API for the selected Apple team and prints Apple’s JSON unchanged. --body-file F can replace --body JSON. The path must be in the schema index unless --allow-unknown-path. Every non-GET needs --confirm. --paginate (GET only) merges all pages.
asc system-status [--service S] [--issues-only] [--watch] Apple Developer System Status. No Apple team needed.
asc docs list / asc docs show <guide> / asc docs init Built-in reference guides; init is the same as asc init. See asc docs.
asc init / asc install-skills Writes ASC.md into the repository / installs the asc skill pack. See asc init and asc install-skills.
asc version Prints the version.
asc completion --shell SHELL (bash, zsh or fish) Prints a shell completion script.

Two more utility groups: asc diff localizations (asc diff) compares localization metadata between local files and a version, or between two versions, without changing anything; asc snitch (asc snitch) drafts a GitHub issue about a problem with asc itself (--dry-run or --local to only preview or log it, --confirm to file it). asc telemetry status|enable|disable|reset-id (asc telemetry) exists, but in AirBuild asc sends no telemetry.

Command families

Page Families
asc: apps and App Store listing apps, app-setup, app-tags, versions, localizations, metadata, screenshots, video-previews, asset-library, background-assets, product-pages, routing-coverage, pricing, pre-orders, categories, age-rating, accessibility, encryption, eula, agreements, app-clips, android-ios-mapping, marketplace, alternative-distribution, nominations, game-center
asc: builds and TestFlight builds, testflight, build-bundles, build-localizations, distribute, ipa-info, pkg-info, sandbox
asc: review and release status, validate, publish, release, review, submit, reviews, release-notes
asc: in-app purchases and subscriptions iap, subscriptions, app-events, storekit
asc: signing, devices and users bundle-ids, certificates, profiles, merchant-ids, pass-type-ids, app-clip-ids, notarization, devices, users, actors, account
asc: analytics and finance analytics, finance, vendor-number, insights, performance, optimize
asc: web session commands web
asc: automation workflow, webhooks, xcode-cloud, notify, migrate

Examples

Check which Apple teams you can use, then list one team’s apps:

Terminal window
asc auth list
asc apps list --auth my-company --paginate --output table

Look at the newest build of an app and wait until it has processed:

Terminal window
asc builds info --app "com.example.app" --latest --platform IOS
asc builds wait --app "com.example.app" --latest --timeout 30m

Explore safely, refusing any change:

Terminal window
asc --read-only status --app "APP_ID" --output table

Read every TestFlight group of an app as JSON for a script:

Terminal window
asc testflight groups list --app "APP_ID" --paginate --output json --pretty