Agent commands

asc web review commands: read App Review submissions and Resolution Center threads, reply, keep drafts, attach subscriptions and In-App Purchases to a review, and fill in macOS App Sandbox Information.

App Review as App Store Connect shows it: submissions, Resolution Center threads and messages, rejections, and what is attached to the next review. --app scopes each command to one app, except reply, which takes only a thread ID, and sandbox-entitlements, which takes a macOS version.

These commands use the Team owner’s Apple web session; see The web session. Picking an Apple team (--auth), output, pagination, --confirm and exit codes work as described on the asc page. The flag tables leave out --output and --pretty (see Output) and, where a command has them, --limit, --next and --paginate (see Pagination). Every command that writes something requires --confirm.

Subcommands

Subcommand What it does
list Lists an app’s review submissions.
show Shows one submission with its threads, messages and rejections, and downloads Apple’s screenshots and attachments.
threads Lists every Resolution Center thread of an app, optionally with each thread’s unsent draft.
reply Sends one reply in a Resolution Center thread.
drafts Creates, updates or deletes the unsent draft of a Resolution Center thread.
subscriptions Lists subscriptions and attaches them to, or removes them from, the next app version’s review.
iaps Adds a non-renewing In-App Purchase to a review draft.
sandbox-entitlements Reads and edits the App Sandbox Information of a macOS version.

web review list

Lists an app’s review submissions.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--state Comma-separated states to show: READY_FOR_REVIEW, WAITING_FOR_REVIEW, IN_REVIEW, UNRESOLVED_ISSUES, CANCELING, COMPLETING, COMPLETE. Case does not matter. all
Terminal window
asc web review list --app "123456789"

The table has one row per submission: submission ID, state, submitted date, version and platform (n/a where Apple gives none). JSON is the list of submissions. Any other --state value is refused before anything is read, naming the unsupported values.

web review show

Shows one submission with its threads, messages and rejections, and downloads the screenshots and attachments Apple sent. Without --submission it picks the latest submission with unresolved issues, else the latest one.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--submission Review submission ID. latest unresolved, else latest
--out Folder for the downloaded files. ./.asc/web-review/APP/SUBMISSION
--pattern Download only file names matching this glob, e.g. *.png. all
--overwrite Overwrite existing files instead of adding a suffix. off
--plain-text Show message bodies as plain text instead of HTML. off
Terminal window
asc web review show --app "123456789"

The table has Section, Field and Value columns. The Submission rows give the submission ID, review status, submitted date, platform, app version, how it was chosen (explicit, latest-unresolved or latest), and counts of items, threads, messages, rejections, files found and files downloaded, plus the folder they went to. Then come the reviewed items, each thread with its messages and rejection reasons (code, guideline section, description), the app’s other threads (App Threads, the ones not part of this submission), the files Apple attached and the files downloaded. JSON has the same parts as submission, submissionItems, threads, appThreads, attachments, downloads and downloadFailures; download links are not included.

When the app has no submission, selection is none and only the app’s threads are shown. Only files Apple marks as downloadable are saved. A file whose name already exists gets a -1, -2 … suffix unless --overwrite is given.

  • A --submission that is not one of the app’s submissions is refused: submission "ID" was not found for this app. Find the ID with web review list.
  • An invalid --pattern glob is refused before anything is read.
  • If the app’s other threads cannot be read, a warning goes to stderr and into the output (App Threads Warning), and the rest is still shown.
  • If some files cannot be downloaded, everything else is printed, each failure is listed under Download Failures, and the command exits with an error (review show completed with N download failure(s)). Run it again to fetch the missing files.

web review threads

Lists every Resolution Center thread of an app, including binary, metadata and informational threads that are not part of the submission show picks. All pages are read.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--drafts Also read each thread’s unsent draft (one more request per thread). Draft bodies keep Apple’s HTML; attachment links are not returned. off
--plain-text Show draft bodies as plain text. Needs --drafts. off
Terminal window
asc web review threads --app APP_ID --drafts

The table has one row per thread: thread ID, type, state, created date, last message date, submission ID and version IDs. With --drafts a Draft column adds the draft’s ID, created date, number of attachments and text, or none. JSON is a list of thread objects, each with draftMessage when --drafts is given and the thread has a draft. --plain-text without --drafts is refused.

web review reply

Sends one reply in a Resolution Center thread and checks that it arrived. A failed send is never retried, since Apple may have received it. Attachments are not supported. The message is never printed.

Flag What it does Default
--thread-id Resolution Center thread ID. Required. —
--message The reply. Required. —
--confirm Confirm sending. Required. off
Terminal window
asc web review reply --thread-id "THREAD_ID" --message "We updated the demo account." --confirm

The receipt has the thread ID, the draft ID it created, the sent message ID and Verified: true. A blank --message is refused.

If an error says the draft was created but the send outcome is unknown, or that the message was sent but could not be checked, do not run the command again right away: look at the thread with web review show or web review threads first, so the reply is not sent twice. An error before the draft exists (for example, a wrong thread ID) means nothing was sent.

web review drafts

The unsent draft Apple keeps for a Resolution Center thread: each thread has at most one. These commands never send a message (sending is web review reply) and do not support attachments. Before writing, each one checks that the thread belongs to --app and looks at the thread’s current draft.

web review drafts create

Creates the unsent draft of a Resolution Center thread. It never sends it and does not support attachments. Check the current draft first with web review threads --app APP_ID --drafts.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--thread-id Resolution Center thread ID. Required. —
--message Draft text. This or --body-file is required. —
--body-file Read the draft text from a file. —
--confirm Confirm creating the draft. Required. off

--message and --body-file cannot be combined. The text is kept exactly as given, but it must be valid UTF-8 and not blank. --body-file must be a regular file of at most 1 MiB; - (stdin) is not accepted.

Terminal window
asc web review drafts create --app "APP_ID" --thread-id "THREAD_ID" --message "We updated the demo account." --confirm

The command reads the draft back after writing. The receipt (also for update and delete) has the app ID, thread ID, draft ID, Action (created, updated or deleted) and Verified: true.

  • Refused when the thread is not one of the app’s threads: thread "ID" was not found under app "APP_ID". Check the IDs with web review threads.
  • Refused when the thread already has a draft; the error names it. Change it with drafts update or remove it with drafts delete.
  • If an error says the change was applied but could not be checked, or that the outcome may be unknown, look at the draft with web review threads --app APP_ID --drafts before running the command again.

web review drafts update

Replaces the text of a thread’s unsent draft. It never sends it.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--thread-id Resolution Center thread ID. Required. —
--draft-id Draft message ID. Required. —
--message New draft text. This or --body-file is required. —
--body-file Read the new text from a file. —
--confirm Confirm the change. Required. off

--message and --body-file follow the same rules as for drafts create.

Terminal window
asc web review drafts update --app "APP_ID" --thread-id "THREAD_ID" --draft-id "DRAFT_ID" --message "The updated demo account is ready." --confirm

Refused when the thread is not one of the app’s threads, has no draft, or has a different draft than --draft-id (the error names the current one). The receipt is the one described under drafts create, with Action: updated.

web review drafts delete

Deletes a thread’s unsent draft.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--thread-id Resolution Center thread ID. Required. —
--draft-id Draft message ID. Required. —
--confirm Confirm the deletion. Required. off
Terminal window
asc web review drafts delete --app "APP_ID" --thread-id "THREAD_ID" --draft-id "DRAFT_ID" --confirm

Refused in the same cases as update. The command reads the thread again to check the draft is gone; the receipt has Action: deleted.

web review subscriptions

Which subscriptions go to App Review with the next app version. Apple attaches a subscription only once it is READY_TO_SUBMIT. --subscription-id and --group-id take an ID or an exact current name; when a name matches more than one, the command is refused and lists the matches, so use the ID. Each change is checked by reading the subscriptions again.

web review subscriptions list

Lists the app’s subscriptions and whether each is attached to the next app version’s review.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
Terminal window
asc web review subscriptions list --app "123456789"

The table has one row per subscription: group ID, group, subscription ID, product ID, name, state, Next Version (true, false, or unknown when Apple did not say) and Review In Progress. JSON has appId, attachedCount and subscriptions.

web review subscriptions attach

Attaches one subscription to the next app version’s review.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--subscription-id Subscription ID, product ID or exact current name. Required. —
--confirm Confirm. Required. off
Terminal window
asc web review subscriptions attach --app APP_ID --subscription-id "com.example.monthly" --confirm

The receipt has Section, Field and Value columns: the operation, Changed, the submission ID Apple created, and the subscription’s ID, product ID, name, group, state, Next Version and Review In Progress as read after the change. A subscription that is already attached is left as it is, with Changed: false.

  • Refused when the subscription is not READY_TO_SUBMIT. Hints on stderr name the state and suggest asc validate subscriptions --app APP_ID; for MISSING_METADATA, check localizations, pricing, the App Store review screenshot and the promotional image (see asc subscriptions).
  • Refused when App Store Connect does not report whether the subscription is attached. Check with web review subscriptions list, then run it again.

web review subscriptions attach-group

Attaches every subscription of a group that is ready to submit (READY_TO_SUBMIT).

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--group-id Subscription group ID or exact current name. Required. —
--confirm Confirm. Required. off
Terminal window
asc web review subscriptions attach-group --app APP_ID --group-id GROUP_ID --confirm

The receipt lists the group, the operation, Changed Count and Skipped Count, then each changed subscription and each skipped one with the reason: already attached, not READY_TO_SUBMIT (with its state), attachment state unknown, or still not attached after the change.

Refused when no subscription of the group is ready to attach and none is attached yet; the hints on stderr are the same as for subscriptions attach. Refused when the group is not found for the app.

web review subscriptions remove

Removes one subscription from the next app version’s review.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--subscription-id Subscription ID, product ID or exact current name. Required. —
--confirm Confirm. Required. off
Terminal window
asc web review subscriptions remove --app APP_ID --subscription-id SUB_ID --confirm

The receipt is the one described under subscriptions attach, with operation remove and no submission ID. A subscription that is not attached is left as it is, with Changed: false. Refused when App Store Connect does not report whether it is attached; check with web review subscriptions list, then run it again.

web review subscriptions remove-group

Removes every attached subscription of a group.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--group-id Subscription group ID or exact current name. Required. —
--confirm Confirm. Required. off
Terminal window
asc web review subscriptions remove-group --app APP_ID --group-id GROUP_ID --confirm

The receipt is the one described under subscriptions attach-group. Subscriptions that are not attached, or whose state is unknown, are listed as skipped with the reason. Refused when the group is not found for the app.

web review iaps

Adds non-renewing In-App Purchases to an App Review draft that already exists. It stages them for review; it submits nothing.

web review iaps attach

Adds a non-renewing In-App Purchase’s editable version to an existing review draft that is ready for review (READY_FOR_REVIEW). It creates no draft and submits nothing. The receipt has the review draft and IAP version IDs; submission.reviewSubmissionItemId is the item added.

Flag What it does Default
--app Numeric App ID. Required, or set ASC_APP_ID. —
--iap-id The IAP’s product ID or exact current reference name (from asc iap list), or its web resource ID. Apple’s numeric App Store Connect API ID is not accepted. Required. —
--submission Review draft ID. Required when there are several drafts ready for review. the only one
--confirm Confirm. Required. off
Terminal window
asc web review iaps attach --app APP_ID --iap-id "com.example.lifetime" --confirm

The receipt has Section, Field and Value columns: app ID, IAP ID, operation, Changed, the item ID, review draft ID, IAP version ID, and Next Version, which is true only when the draft already has an App Store version. When the IAP version is already in the draft, nothing is written and Changed is false.

  • Refused when the IAP is not found under the app. When the product ID or name matches more than one IAP, the matches are listed; use the web resource ID instead.
  • Refused when the app has no draft ready for review: create a review submission first (see submissions-create).
  • Refused when several drafts are ready for review and --submission is not given; the error lists their IDs. A --submission that is not a draft ready for review under the app, or is blank, is refused too.
  • If the item was created but could not be found in the draft afterwards, the error names the item and the draft; look at the draft (for example with web review show --submission DRAFT_ID) before running the command again.

web review sandbox-entitlements

The App Sandbox Information section of a macOS version’s App Review details: one row per entitlement, with the usage information that explains it to App Review. list, set and delete take the version with --version-id (the version ID, or its App Store Connect API self-link), accept only macOS versions, and need the version to have App Review details already.

web review sandbox-entitlements catalog

Lists the entitlement keys App Store Connect accepts in a macOS version’s App Sandbox Information, which explains each sandbox entitlement to App Review. Apple’s public API does not have this section. JSON keeps Apple’s response.

No flags besides --output and --pretty.

Terminal window
asc web review sandbox-entitlements catalog --output json

The table has Entitlement (the key) and Optional, as Apple reports it.

web review sandbox-entitlements list

Lists the App Sandbox Information rows of a macOS version: entitlement key, usage information and row ID. The version must be a macOS version that already has App Review details.

Flag What it does Default
--version-id macOS App Store version ID. Required. —
Terminal window
asc web review sandbox-entitlements list --version-id "VERSION_ID"

The table has Entitlement, Justification and Usage ID; JSON keeps Apple’s response.

  • Refused for a version on another platform: App Sandbox Information applies only to MAC_OS versions.
  • Refused when the version has no App Review details yet; create them first with asc review details-create (see details-create).

web review sandbox-entitlements set

Creates or updates the usage information of one entitlement. A new key must be in the catalog. When the text already matches, nothing is written. Running it again is safe.

Flag What it does Default
--version-id macOS App Store version ID. Required. —
--entitlement Entitlement key, e.g. com.apple.security.network.server. Required. —
--justification Usage information for App Review; surrounding spaces are trimmed. Required. —
--confirm Confirm. Required. off
Terminal window
asc web review sandbox-entitlements set --version-id "VERSION_ID" --entitlement "com.apple.security.network.client" --justification "Downloads the demo film when the person asks for it." --confirm

The result is checked by reading the rows again. The receipt has the version ID, review detail ID, entitlement, usage ID, usage information, Changed and Status (created, updated or unchanged).

  • Refused in the cases listed under sandbox-entitlements list.
  • Refused when a new key is not in the catalog; see sandbox-entitlements catalog for accepted keys.
  • Refused when the version has several rows for the same entitlement; remove the extra rows in App Store Connect first.
  • If the row does not hold the text after the write, the error says so; run the command again.

web review sandbox-entitlements delete

Removes one entitlement’s row. When there is none, nothing is written and the receipt says unchanged.

Flag What it does Default
--version-id macOS App Store version ID. Required. —
--entitlement Entitlement key of the row. Required. —
--confirm Confirm. Required. off
Terminal window
asc web review sandbox-entitlements delete --version-id "VERSION_ID" --entitlement "com.apple.security.network.server" --confirm

The command checks with a fresh read that the row is gone. The receipt has the version ID, review detail ID, entitlement, the removed row’s usage ID, Changed and Status (deleted or unchanged). It is refused in the same cases as sandbox-entitlements set, except the catalog check; if the row is still there afterwards, run the command again.