Agent commands

asc web apps commands: create and delete app records, and the app settings Apple's public API leaves out: availability, Mac and Vision Pro compatibility, distribution, history, transfer, declarations, medical device, tax category and App Compliance.

App records and the app settings Apple’s public API leaves out. web apps create is how an app record is created.

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).

Subcommands

Subcommand What it does
create Creates an app record.
delete Removes an app from App Store Connect.
availability Creates the first availability record of an app.
compatibility Shows or changes whether an iPhone and iPad app is offered on Mac and Apple Vision Pro.
distribution Shows or sets public or private distribution, and manages private distribution recipients.
history Shows the app’s App Store version status history.
transfer Shows whether the app has an app transfer request.
declarations Lists the App Store Regulations & Permits declarations.
medical-device Shows or answers the regulated medical device declaration.
tax-category Lists, shows or sets the app’s tax category.
compliance Lists and answers the App Compliance declarations for China mainland.

web apps create

Creates an app record. The flags are described under Create an app record. Notes:

  • Run in a terminal without the required flags, it asks for them; otherwise it fails and lists the missing flags.
  • When the App Store Connect API is available for the Apple team, it checks the bundle ID first and registers it if needed. Otherwise the bundle ID must already exist.
  • --if-exists skip treats “already exists” as success when an app of this account has the requested bundle ID, SKU and name (or, with --auto-rename, one of the names it would have tried). The app is left unchanged and the receipt has alreadyExists. If the bundle ID or SKU belongs to a different app, the command fails without renaming. skip can’t be combined with --access. There is no update.
  • --access full|limited sets the users’ access to the new app; limited needs at least one --user, and each user must exist and have access to selected apps only. --user without --access limited is refused.
  • --if-exists skip and --access need App Store Connect API access for the Apple team; without it the command stops before creating anything.
  • If Apple asks for a company name for this account, the command fails and says so; run it again with --company-name.
  • If the command registered the bundle ID and then could not create the app, it removes that bundle ID again.

It prints the new app’s ID, name, bundle ID and SKU; with --access, the app ID, the access and the users.

Terminal window
asc web apps create --name "My App" --bundle-id "com.example.app" --sku "MYAPP123" --if-exists skip

web apps delete

Removes an app from App Store Connect, which Apple’s public API cannot do. Before changing anything it checks what it can see of Apple’s conditions: the app is removed from sale everywhere, not in a review state that blocks removal, and not distributed through an alternative marketplace. It does not check In-App Purchases still on sale, alternative marketplace memberships, app transfers in progress or app bundle membership. It reports success only when Apple confirms the app is removed. --dry-run runs the checks without changing anything.

“Removed from sale” also means availability in new territories is off. Each failed check names what to change first; when Apple leaves out a value the command needs, it stops instead of guessing. --expected-bundle-id and --expected-name stop the command before any change if the app is not the one you meant. An app that is already removed is reported as removed without a change.

It prints the app ID, name, bundle ID, removed and, with --dry-run, dryRun.

Flag What it does Default
--app App ID or exact bundle ID. Required. —
--dry-run Check whether the app can be removed, change nothing. off
--confirm Confirm the removal. Required unless --dry-run. off
--expected-bundle-id Stop unless the app has this bundle ID. —
--expected-name Stop unless the app has this name. —
Terminal window
asc web apps delete --app "1234567890" --expected-bundle-id "com.example.throwaway" --confirm

web apps availability

The first availability record of a new app, which Apple’s public API cannot create.

web apps availability create

Creates the first availability record of an app that has none yet. The territories given become available; every other current territory starts unavailable. If the app already has an availability record, the command stops without a change. To change availability later, use asc pricing availability (see asc pricing).

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--territory Territories to make available, comma-separated: two- or three-letter codes or exact English country names. Required. —
--available-in-new-territories true or false: whether the app becomes available in territories Apple adds later. Required. —
Terminal window
asc web apps availability create --app "123456789" --territory "US,France" --available-in-new-territories true

It prints the app ID, the new availability ID, availableInNewTerritories and the available territories.

web apps compatibility

Whether an iPhone and iPad app is also offered on Apple silicon Macs and on Apple Vision Pro.

web apps compatibility view

Shows whether an iPhone and iPad app is offered on the Mac App Store (Apple silicon Macs) and on Apple Vision Pro. It prints app_id, ios_app_on_mac and ios_app_on_vision_pro; a value Apple leaves out shows as unknown.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
Terminal window
asc web apps compatibility view --app APP_ID

web apps compatibility edit

Turns those two options on or off. Give at least one of the two flags. It prints the settings as Apple returns them after the change.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--ios-app-on-mac true or false: offer the app on the Mac App Store. unchanged
--ios-app-on-vision-pro true or false: offer the app on the Apple Vision Pro App Store. unchanged
Terminal window
asc web apps compatibility edit --app APP_ID --ios-app-on-mac false

web apps distribution

The app’s distribution method under App Store Connect’s Distribution › App Availability, and the Apple Accounts a privately distributed app goes to. Apple’s public API has neither.

web apps distribution view

Shows the app’s distribution method from App Store Connect’s Distribution › App Availability, exactly as Apple returns it: APP_STORE is public App Store distribution, CUSTOM private distribution through Apple Business Manager or Apple School Manager. Values Apple leaves out show as unknown in a table. Unlisted (direct link) distribution is a separate Apple process and is not shown or changed here. It prints app_id, name, bundle_id, distribution_type and education_discount_type.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
Terminal window
asc web apps distribution view --app 1234567890

web apps distribution set

Sets the distribution method to public (APP_STORE) or private (CUSTOM) and checks the result. For public distribution, leaving out --education-discount keeps Apple’s current value; private distribution has no education discount. Existing custom organizations and recipients are kept.

  • --education-discount with --method private is refused.
  • For public distribution, when Apple has no current education discount value, --education-discount is required.
  • An app with unlisted distribution is refused; that is changed through Apple’s unlisted distribution process.
  • When the app already has the requested settings, nothing is written and the receipt says changed: false.

It prints appId, distributionType, educationDiscountType, changed, verified and status (unchanged, verified or uncertain). An uncertain receipt comes with an error: Apple may have made the change, so check with web apps distribution view before running the command again.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--method public or private. Required. —
--education-discount Public only: discounted or not-discounted. the current value
--confirm Confirm the change. Required. off
Terminal window
asc web apps distribution set --app 1234567890 --method private --confirm

web apps distribution users

The Apple Accounts an app is privately (CUSTOM) distributed to. Organizations are managed separately and are not changed. create and delete need --confirm, never change the distribution method, and never retry an unclear write.

web apps distribution users list

Lists the Apple Accounts an app is privately distributed to, with each recipient’s ID. Works for any distribution method. A table shows the ID and Apple Account; JSON keeps Apple’s response. Without --paginate only the first page is read.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
Terminal window
asc web apps distribution users list --app 1234567890 --paginate --output json

web apps distribution users create

Adds one Apple Account to an app’s private distribution recipients. The app must already use private (CUSTOM) distribution. An account that is already a recipient is skipped and reported as unchanged. Organizations are managed separately and are not changed. The new recipient is read back before the command reports success.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--recipient-apple-id The recipient’s Apple Account. Required. —
--confirm Confirm adding the recipient. Required. off
Terminal window
asc web apps distribution users create --app 1234567890 --recipient-apple-id account@example.com --confirm

web apps distribution users delete

Removes one recipient from an app’s private distribution. The app must use private distribution. Only a recipient listed for this app is removed; an ID that is not among the app’s recipients, for example one already removed, is reported as unchanged. The command reads the recipients again to check the removal.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--id Recipient ID from web apps distribution users list. Required. —
--confirm Confirm removing the recipient. Required. off
Terminal window
asc web apps distribution users delete --app 1234567890 --id RECIPIENT_ID --confirm

create and delete print appId, recipientId, appleId, changed, verified and status (created, deleted, unchanged or uncertain). An app that does not use private distribution is refused; switch it with web apps distribution set --method private --confirm first. An uncertain receipt comes with an error: check with web apps distribution users list before running the command again.

web apps history

Shows the app’s status history, as in App Store Connect’s History view: each App Store version status change with its date and who made it. It reads every version, so an app with a long history can run past the request timeout; read one version with --version-id or raise ASC_TIMEOUT (see Environment variables). Apple shows this only to roles with access to the app’s status history. All pages are always read. A table shows one row per status change: version, platform, status, date and who made it.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--version-id Read only this App Store version. every version
Terminal window
asc web apps history --app 1234567890 --version-id 123456789

web apps transfer

App transfer requests. Only reading is supported here.

web apps transfer status

Shows whether an app has an app transfer request and its state, as Apple returns it. A table shows the request as none, present or unknown; a missing state stays unknown. No request does not mean the app can be transferred. Starting, accepting, canceling and declining a transfer are done in App Store Connect. A table shows the app ID, the request, the transfer ID and the state; JSON keeps Apple’s response.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
Terminal window
asc web apps transfer status --app 1234567890

web apps declarations

The App Store Regulations & Permits declarations under App Information. To answer the medical device declaration, use web apps medical-device.

web apps declarations list

Lists the App Store Regulations & Permits declarations App Store Connect tracks for an app under App Information, such as the regulated medical device declaration. A required declaration still at PENDING_COLLECTION blocks submission to the App Store; optional ones do not. A table shows each requirement’s name, status, whether it is required, its ID and the form ID; JSON also has the date it was signed.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
Terminal window
asc web apps declarations list --app "1234567890"

web apps medical-device

The regulated medical device declaration under App Information › App Store Regulations & Permits: the app-level answer, and the details for each region once the answer is “yes”.

web apps medical-device view

Shows the app’s regulated medical device declaration: yes or no once answered, empty while it is outstanding. It also prints the requirement, its status, whether it is required and the selected regions.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
Terminal window
asc web apps medical-device view --app "1234567890"

web apps medical-device set

Answers the regulated medical device declaration (App Information › App Store Regulations & Permits). A “yes” also selects the regions (EEA, GBR, USA); each region’s details are then filled in with region set. Existing registration, support and contact details are kept. When the stored answer already matches, nothing is written and the receipt says changed: false. The answer is read back before the command reports success.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--declared true (the app is a regulated medical device) or false. Required. —
--countries-or-regions Regions for a “yes”, comma-separated: EEA (or EU), GBR, USA. Only with --declared true. all three
--confirm Confirm a “yes” declaration. Required for --declared true. off
Terminal window
asc web apps medical-device set --app "1234567890" --declared true --countries-or-regions "EEA,GBR" --confirm

web apps medical-device region

The details of one region of a “yes” medical device declaration.

web apps medical-device region set

Sets the detailed answer for one region once the app-level answer is “yes”. The input is a JSON file with a boolean declaration. For true, USA and EEA also need registrationNumber (GBR takes none), and supportInfo lists at least one support language, each with locale, instruction (a link starting with http:// or https://), statement and safetyInfo (each at most 5,000 characters). For false, the file has only declaration and the existing details are kept. Other fields are refused. Contact details come from the existing form; the command never sets or prints them. A region without contact details is refused; add them in App Store Connect first. Other regions are left as they are. The form is read back and the command fails if the answer was not saved or anything else changed.

{
  "declaration": true,
  "supportInfo": [
    {
      "locale": "en-GB",
      "instruction": "https://example.com/instructions",
      "statement": "STATEMENT",
      "safetyInfo": "SAFETY_INFORMATION"
    }
  ]
}
Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--region EEA (or EU), GBR or USA. Required. —
--input Path of the JSON file. Required. —
--confirm Confirm saving the answer. Required. off
Terminal window
asc web apps medical-device region set --app "1234567890" --region "GBR" --input "./medical-gbr.json" --confirm

It prints the requirement, its status, the region, declared and changed.

web apps tax-category

The app’s tax category and conditions under App Information. Apple’s public API does not have them.

web apps tax-category list

Lists the app tax categories and conditions App Store Connect’s App Information tax picker offers. Their IDs are what set takes. A table has one row per category (ID, name, product type, whether a subcategory must be picked, and the IDs of the conditions it allows) and one per condition.

No flags besides --output and --pretty.

Terminal window
asc web apps tax-category list --output table

web apps tax-category view

Shows the app’s tax category and conditions. When none is set, configured is false and the category in effect is App Store Software, Apple’s default. It prints categoryId, categoryName, effectiveCategoryId, effectiveCategoryName and enabledConditionIds.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
Terminal window
asc web apps tax-category view --app "123456789"

web apps tax-category set

Sets the app’s tax category and its complete set of conditions, checked against the catalog first. Leaving out --condition clears all conditions. A category that needs a subcategory is refused (pick one of its subcategories), and so is a condition the category does not allow. When the app already has this category and these conditions, nothing is written. The result is read back; if the save or the check fails, the error says so: look with web apps tax-category view before running the command again.

It prints categoryId, categoryName, conditionIds, changed and verified.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--category Tax category ID from web apps tax-category list. Required. —
--condition Condition ID; repeatable. Leave out to clear the conditions. none
--confirm Confirm the change. Required. off
Terminal window
asc web apps tax-category set --app "123456789" --category "CATEGORY_ID" --condition "CONDITION_ID" --confirm

web apps compliance

The declarations on the app’s App Compliance page. Each answer is the Team owner’s legal declaration to Apple: answer from the app’s real features, confirm the answer with the person who asked, and never make up a filing name, a filing number or a document.

web apps compliance list

Lists the declarations on the app’s App Compliance page, answered or not. Today these are China’s Security Assessment and AI Generated or Synthetic Content (AIGC). Apple removes apps that have not answered from the App Store in China; existing apps must answer by 2027-01-31, and App Store Connect shows a banner on the version page until they do. Each requirement shows its status (missingInfo, pendingVerification, verificationFailed, active, or Apple’s own value), when it was last updated, what Apple is waiting for and whether it can be answered now. formId names the declaration a change updates.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
Terminal window
asc web apps compliance list --app "1234567890"

web apps compliance declare

Answers one App Compliance requirement. Each answer is the Team owner’s legal declaration to Apple, and Apple reviews a “yes” against the filing details and documents given. A first answer is filed for a requirement with missing information, and an active one can be changed; one pending verification is read-only. Apple verifies a “yes” at the app’s next submission for review. Nothing is filed unless App Store Connect’s form accepts every answer. When the form asks for something this command does not give, or the requirement can only be answered there, the error says to answer it in App Store Connect. It prints the requirement’s row as list shows it.

A “no” takes no evidence; evidence flags with --answer no are refused. A “yes” needs:

Requirement Evidence
Security Assessment --proof FILE --report FILE
AIGC --filing-type llm|algorithm --filing-name NAME --filing-number NUMBER, and --third-party no, or --third-party yes --authorization FILE

Files are .pdf, .png, .jpg, .jpeg, .doc or .docx, at most 7 MB each.

Flag What it does Default
--app App ID. Required, or set ASC_APP_ID. —
--requirement Requirement ID from web apps compliance list. Required. —
--answer yes or no. Required. —
--confirm Confirm filing the declaration. Required. off
--proof Security Assessment: proof of a completed assessment. —
--report Security Assessment: the assessment report. —
--filing-type AIGC: llm or algorithm. —
--filing-name AIGC: the filed name of the model or algorithm. —
--filing-number AIGC: its filing number. —
--third-party AIGC: yes when third-party technology powers the AI features, else no. —
--authorization AIGC with --third-party yes: the authorization or usage agreement. —
Terminal window
asc web apps compliance declare --app "1234567890" --requirement REQ_ID --answer no --confirm