# asc：App 與 App Store 頁面

> 用於 App 記錄、版本、中繼資料、截圖、預覽影片、定價、供應情況、聲明、App Clip 與 Game Center 的 asc 指令。

Source: https://air.build/tw/docs/cli/asc-apps/

這些 [asc](https://air.build/tw/docs/cli/asc/) 指令系列用來管理 App 記錄，以及 App Store 頁面上的所有內容。選擇 Apple 團隊（`--auth`）、輸出、分頁、`--confirm` 與結束代碼的運作方式，請參閱 [asc](https://air.build/tw/docs/cli/asc/) 頁面。

下列表格中的 **主要旗標** 省略了幾乎每個指令都有的旗標：`--output` 與 `--pretty`（請參閱[輸出](https://air.build/tw/docs/cli/asc/#output)）、列表指令的 `--limit`、`--next` 與 `--paginate`（請參閱[分頁](https://air.build/tw/docs/cli/asc/#pagination)），以及用來選擇 Apple 回傳哪些屬性的 `--…-fields` 旗標。執行 `asc <family> <subcommand> --help` 可查看所有旗標、可用值與範例。若子指令本身還有子指令，則改為列出這些子指令。

## 開始之前

- **找出 App ID。** `asc apps list --paginate --output table`。許多指令的 `--app` 也接受 Bundle ID 或完整的 App 名稱，其說明會寫「app ID, bundle ID, or exact app name」。其他指令則需要數字 ID。
- **建立 App 記錄**：使用 `asc web apps create --name "My App" --bundle-id "com.example.app" --sku "MYAPP123"`（請參閱 [asc：網頁工作階段指令](https://air.build/tw/docs/cli/asc-web/)）。`asc apps` 不會建立 App。Bundle ID 必須先存在（`asc bundle-ids create`，請參閱 [asc：簽署、裝置與使用者](https://air.build/tw/docs/cli/asc-signing/)）。
- **版本 ID 與在地化 ID** 是 App Store Connect 的資源 ID，不是版本字串或語系代碼。可用 `asc versions list --app APP_ID` 與 `asc localizations list --app APP_ID --version 1.2.3` 查看。部分指令可接受 `--version-id`，或以版本字串指定的 `--version`。

## apps

列出並管理 App Store Connect 中的 App。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `list` | 列出 App Store Connect 中的 App。 | `--bundle-id`, `--name`, `--review-submission-state`, `--sku`, `--sort`, `--version-state` |
| `published` | 列出已上架的 App 及其上架地區數量。 |  |
| `wall` | 顯示社群 Wall of Apps 或提交至其中。 | `--sort`；子指令：`submit` |
| `public` | 檢視公開的 App Store 店面資料。 | 子指令：`view`, `search`, `rank`, `prices`, `descriptions`, `storefronts` |
| `registry` | 管理供自動化使用的本機 App 登錄。 | 子指令：`pull` |
| `view` | 依 ID 檢視 App 詳細資料。 | `--id` |
| `rename` | 重新命名某個 App Store 語系的 App 名稱。 | `--app`, `--app-info`, `--locale`, `--name` |
| `info` | 管理 App Store 版本中繼資料。 | 子指令：`list`, `view`, `edit`, `relationships`, `territory-age-ratings` |
| `ci-product` | 檢視 App 的 CI 產品。 | 子指令：`view` |
| `update` | 更新 App 中繼資料與 App Store Server Notifications URL。 | `--accessibility-url`, `--bundle-id`, `--content-rights`, `--id`, `--primary-locale`, `--sandbox-subscription-status-url`, `--streamlined-purchasing-enabled`, `--subscription-status-url` |
| `remove-beta-testers` | 從 App 移除 Beta 測試人員。 | `--app`, `--confirm`, `--tester` |
| `subscription-grace-period` | 檢視 App 的訂閱寬限期。 | 子指令：`view` |
| `search-keywords` | 讀取 App 關鍵字，並更新各版本在地化的關鍵字文字。 | 子指令：`list`, `set` |
| `app-encryption-declarations` | 列出 App 的加密聲明。 | 子指令：`list` |
| `content-rights` | 管理 App 的內容權利聲明。 | 子指令：`view`, `edit` |

## app-setup

建立 App 後的設定自動化。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `info` | 更新 App 資訊與 App 資訊在地化。 | 子指令：`set` |
| `categories` | 設定 App 的類別。 | 子指令：`set` |
| `availability` | 編輯 App 供應情況。 | 子指令：`edit` |
| `pricing` | 設定 App 定價。 | 子指令：`set` |
| `localizations` | 上傳 App Store 在地化內容。 | 子指令：`upload` |

## app-tags

檢視 Apple 產生的 App Store 探索標籤。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `list` | 列出 App 的標籤。 | `--app`, `--include`, `--sort`, `--territory-limit`, `--visible-in-app-store` |
| `view` | 依 ID 檢視 App 標籤。 | `--app`, `--id`, `--include`, `--territory-limit` |
| `update` | 更新 App 標籤。 | `--confirm`, `--id`, `--visible-in-app-store` |
| `territories` | 列出 App 標籤的地區（API 4.5 已棄用）。 | `--id` |
| `territories-links` | 列出 App 標籤的地區關聯（API 4.5 已棄用）。 | `--id` |
| `links` | 列出 App 的標籤關聯。 | `--app` |

## versions

管理 App Store 版本。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `list` | 列出 App 的 App Store 版本。 | `--app`, `--include`, `--include-sensitive`, `--latest`, `--platform`, `--state`, `--version` |
| `view` | 檢視 App Store 版本的詳細資料。 | `--app`, `--include`, `--include-build`, `--include-sensitive`, `--include-submission`, `--platform`, `--version`, `--version-id` |
| `links` | 列出 App Store 版本的關聯連結。 | `--type`, `--version-id` |
| `experiments-v2` | 管理 App Store 版本實驗（v2）。 | 子指令：`list` |
| `customer-reviews` | 管理 App Store 版本的顧客評論。 | 子指令：`list` |
| `app-clip-default-experience` | 管理版本的 App Clip 預設體驗。 | 子指令：`view` |
| `create` | 建立新的 App Store 版本。 | `--app`, `--build-id`, `--copy-metadata-from`, `--copyright`, `--earliest-release-date`, `--if-exists`, `--platform`, `--release-type`, `--review-type`, `--version` |
| `update` | 更新 App Store 版本。 | `--confirm`, `--copyright`, `--downloadable`, `--earliest-release-date`, `--release-type`, `--review-type`, `--version`, `--version-id` |
| `delete` | 刪除 App Store 版本（僅限 PREPARE_FOR_SUBMISSION 狀態的版本）。 | `--confirm`, `--version-id` |
| `attach-build` | 將建置版本附加到 App Store 版本。 | `--app`, `--build-id`, `--build-number`, `--latest`, `--platform`, `--poll-interval`, `--timeout`, `--version`, `--version-id`, `--wait` |
| `release` | 發布已核准、等待開發者發布的版本。 | `--confirm`, `--version-id` |
| `phased-release` | 管理 App Store 版本的分階段發布。 | 子指令：`view`, `create`, `update`, `delete`, `guard` |
| `rating-reset` | 管理 App Store 版本的整體評分重設。 | 子指令：`view`, `create`, `delete` |
| `promotions` | 管理 App Store 版本推廣。 | 子指令：`create` |

### versions create

| 旗標 | 值 | 預設 | 作用 |
| --- | --- | --- | --- |
| `--app` | App ID | `ASC_APP_ID` | App。 |
| `--version` | 版本字串，例如 `2.0.0` | 必填 | 新版本。 |
| `--platform` | `IOS`, `MAC_OS`, `TV_OS`, `VISION_OS` | `IOS` | 平台。 |
| `--copyright` | 文字 | 無 | 版權文字，例如 `2026 My Company`。版權在此處或以 `versions update` 設定，而非透過 `metadata`。 |
| `--release-type` | `MANUAL`, `AFTER_APPROVAL`, `SCHEDULED` | Apple 的預設值 | 版本核准後的發布方式。 |
| `--earliest-release-date` | ISO 8601 | 無 | 搭配 `SCHEDULED` 使用。 |
| `--review-type` | `APP_STORE`, `NOTARIZATION` | Apple 的預設值 | 審查類型。 |
| `--build-id` | 建置版本 ID | 無 | 附加該建置版本。 |
| `--copy-metadata-from` | 版本字串 | 無 | 從另一個版本複製在地化文字。`--copy-fields` / `--exclude-fields` 可從 `description`、`keywords`、`marketingUrl`、`promotionalText`、`supportUrl`、`whatsNew` 中挑選。 |
| `--if-exists` | `fail`, `skip`, `update` | `fail` | 版本已存在時：失敗；讀回該版本並回報 `"action":"skipped"`；或套用指定的設定與建置版本並回報 `"action":"updated"`。`skip` 不能與 `--build-id` 併用。 |

`versions update --downloadable false` 會讓已發布的版本無法在舊裝置上下載；此操作需要 `--confirm`，且並非在所有狀態下都能復原。

## localizations

管理 App Store 在地化中繼資料。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `list` | 列出 App 或版本的在地化中繼資料。 | `--app`, `--app-info`, `--include`, `--locale`, `--placements-limit`, `--platform`, `--type`, `--version` |
| `view` | 依 ID 檢視單一在地化內容。 | `--id`, `--include`, `--placements-limit`, `--type` |
| `create` | 為 App Store 版本建立新語系。 | `--app`, `--description`, `--if-exists`, `--keywords`, `--locale`, `--marketing-url`, `--platform`, `--promotional-text`, `--support-url`, `--version`, `--whats-new` |
| `update` | 直接更新在地化欄位。 | `--app`, `--app-info`, `--clear-privacy-policy-url`, `--clear-promotional-text`, `--clear-subtitle`, `--confirm`, `--description`, `--id`, `--keywords`, `--locale`, `--marketing-url`, `--name`, `--platform`, `--privacy-choices-url`, `--privacy-policy-text`, `--privacy-policy-url`, `--promotional-text`, `--subtitle`, `--support-url`, `--type`, `--version`, `--whats-new` |
| `supported-locales` | 列出版本支援的 App Store 在地化語系。 | `--version` |
| `search-keywords` | 管理 App Store 在地化的原始搜尋關鍵字關聯。 | 子指令：`list`, `add`, `delete` |
| `placements` | 管理在地化的素材庫擺放位置。 | 子指令：`list`, `view`, `create`, `reorder`, `swap`, `delete` |
| `preview-sets` | 管理 App Store 在地化的預覽影片組。 | 子指令：`list`, `view`, `links` |
| `screenshot-sets` | 管理 App Store 在地化的截圖組。 | 子指令：`list`, `view`, `delete`, `links` |
| `download` | 將在地化內容下載為 .strings 檔案。 | `--app`, `--app-info`, `--locale`, `--path`, `--type`, `--version` |
| `upload` | 從 .strings 檔案上傳在地化內容。 | `--app`, `--app-info`, `--dry-run`, `--locale`, `--path`, `--type`, `--version` |

## metadata

以可重現的工作流程與關鍵字工具管理 App 中繼資料。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `init` | 建立標準中繼資料範本檔案。 | `--dir`, `--force`, `--locale`, `--version` |
| `pull` | 將 App Store Connect 的中繼資料拉取到標準檔案中。 | `--app`, `--app-info`, `--dir`, `--force`, `--include`, `--platform`, `--version` |
| `plan` | 規劃中繼資料變更並寫出審閱檔案。 | `--allow-deletes`, `--app`, `--app-info`, `--dir`, `--if-exists`, `--include`, `--platform`, `--review-dir`, `--version` |
| `approve` | 核准中繼資料審閱計畫。 | `--all`, `--key`, `--note`, `--review-dir`, `--scope` |
| `apply` | 從標準檔案套用中繼資料變更。 | `--allow-deletes`, `--app`, `--app-info`, `--confirm`, `--dir`, `--dry-run`, `--if-exists`, `--include`, `--platform`, `--review-dir`, `--version` |
| `status` | 顯示本機中繼資料審閱的核准狀態。 | `--review-dir` |
| `keywords` | 管理標準的版本在地化關鍵字中繼資料。 | 子指令：`import`, `audit`, `plan`, `diff`, `localize`, `apply`, `push`, `sync` |
| `push` | 從標準檔案推送中繼資料變更。 | `--allow-deletes`, `--app`, `--app-info`, `--confirm`, `--dir`, `--dry-run`, `--if-exists`, `--include`, `--platform`, `--version` |
| `validate` | 驗證標準中繼資料檔案（預設為離線）。 | `--check-urls`, `--dir`, `--subscription-app` |

`metadata` 將 App 的頁面文字保存在本機檔案中，並且只根據這些檔案變更 App Store Connect：

| 步驟 | 指令 | 作用 |
| --- | --- | --- |
| 開始 | `asc metadata init --dir ./metadata --version 1.2.3 --locale en-US` | 寫出空白範本檔案。 |
| 讀取 | `asc metadata pull --app APP_ID --version 1.2.3 --dir ./metadata` | 寫出 App Store Connect 目前的內容。未指定 `--version` 時：使用可編輯的版本，否則使用開發者已下架的版本，再否則使用上架中的版本。`--force` 會覆寫檔案。 |
| 規劃 | `asc metadata plan --app APP_ID --version 1.2.3 --dir ./metadata` | 進行比較，並將審閱計畫寫入 `--review-dir`（預設 `.asc/metadata/review`）。不做任何變更。 |
| 核准 | `asc metadata approve --all` | 將計畫標示為已核准（`--key` 或 `--scope` 可只核准其中一部分）。`asc metadata status` 會顯示已核准的內容。 |
| 套用 | `asc metadata apply --app APP_ID --version 1.2.3 --dir ./metadata --review-dir .asc/metadata/review --confirm` | 套用已核准的變更。`--dry-run` 可預覽。 |

預設涵蓋 App 資訊在地化（名稱、副標題、隱私權政策 URL、隱私權選項 URL、隱私權政策文字）與版本在地化（描述、關鍵字、行銷 URL、宣傳文字、支援 URL、新功能）。可在 `pull`、`plan` 與 `apply` 上用 `--include` 加入更多項目：`categories`、`age-rating`、`review-information`、`app-clip`、`previews`。審查資訊絕不會將示範帳號密碼存入檔案：`pull` 會寫入 `@env:ASC_DEMO_ACCOUNT_PASSWORD`，檔案中必須使用 `@env:NAME` 或 `@file:PATH`。截圖不屬於 `metadata`，請使用 `screenshots`。`--allow-deletes` 允許移除；刪除、清空欄位、`--review-dir` 與素材範圍都需要 `--confirm`。

## screenshots

上傳並管理 App Store 截圖，包括本機擷取、加上裝置外框與矩陣擷取。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `run` | 依 JSON 執行可重現的截圖流程。 | `--bundle-id`, `--output-dir`, `--plan`, `--udid` |
| `matrix` | 擷取有限範圍的本機截圖矩陣，並寫出離線審閱。 | `--max-attempts`, `--max-concurrency`, `--plan`, `--retry-backoff` |
| `capture` | 從模擬器或執行中的 macOS App 擷取單張截圖。 | `--bundle-id`, `--name`, `--output-dir`, `--provider`, `--udid` |
| `frame` | 將截圖合成到 Apple 裝置外框中。 | `--bg-color`, `--config`, `--device`, `--font`, `--frame-color`, `--input`, `--input-dir`, `--name`, `--output-dir`, `--output-path`, `--overlay-config`, `--parallel-workers`, `--resume`, `--subtitle`, `--subtitle-color`, `--text-box`, `--text-box-color`, `--text-box-padding`, `--text-box-radius`, `--text-position`, `--title`, `--title-color`, `--watch`, `--watch-debounce`, `--watch-raw-dir`, `--watch-review-dir` |
| `list-frame-devices` | 列出支援的外框裝置與預設值。 |  |
| `review-generate` | 產生並排比較的 HTML 審閱頁面與 JSON 清單。 | `--approval-path`, `--framed-dir`, `--output-dir`, `--raw-dir` |
| `review-open` | 在預設瀏覽器中開啟 HTML 審閱報告。 | `--dry-run`, `--html-path`, `--output-dir` |
| `review-approve` | 依審閱清單的選擇條件寫入或更新 approved.json。 | `--all-ready`, `--approval-path`, `--device`, `--id`, `--key`, `--locale`, `--manifest-path`, `--output-dir` |
| `plan` | 依已核准的審閱檔案規劃截圖上傳。 | `--app`, `--approval-path`, `--manifest-path`, `--platform`, `--replace`, `--review-output-dir`, `--skip-existing`, `--version`, `--version-id` |
| `apply` | 依已核准的審閱檔案執行截圖上傳。 | `--app`, `--approval-path`, `--confirm`, `--manifest-path`, `--platform`, `--replace`, `--review-output-dir`, `--skip-existing`, `--version`, `--version-id` |
| `list` | 列出某個在地化的截圖。 | `--app`, `--locale`, `--platform`, `--set-id`, `--version`, `--version-id`, `--version-localization` |
| `sizes` | 列出支援的截圖顯示尺寸。 | `--all`, `--display-type` |
| `validate` | 上傳前在本機驗證截圖素材。 | `--device-type`, `--path` |
| `upload` | 為一個或多個在地化上傳截圖。 | `--app`, `--asset-library`, `--concurrency`, `--confirm`, `--device-type`, `--dry-run`, `--locale`, `--max-screenshots`, `--path`, `--placement-group`, `--platform`, `--replace`, `--resume`, `--skip-existing`, `--version`, `--version-id`, `--version-localization` |
| `download` | 將 App Store 截圖下載到磁碟。 | `--format`, `--id`, `--output-dir`, `--overwrite`, `--version-localization` |
| `reorder` | 重新排列截圖組中的截圖。 | `--ids`, `--set-id` |
| `delete` | 依 ID 刪除截圖。 | `--confirm`, `--id` |

`screenshots sizes` 會印出各顯示類型可接受的像素尺寸。預設顯示 `APP_IPHONE_65` 與 `APP_IPAD_PRO_3GEN_129`，這是大多數 iOS 提交所需的兩組；`--all` 會列出所有類型。自 2027 年 4 月起，以 iOS 27.1 SDK 或更新版本建置的 App 提交到 App Store 時，也需要 iPhone Duo 截圖（`APP_IPHONE_DUO`）。若要製作這些尺寸的截圖，請參閱 [storeshot](https://air.build/tw/docs/cli/storeshot/)。

### screenshots upload

```bash
asc screenshots upload (--version-localization ID | --app APP_ID (--version 1.2.3 | --version-id ID) [--locale en-US]) \
  --path ./screenshots --device-type IPHONE_65
```

| 旗標 | 值 | 預設 | 作用 |
| --- | --- | --- | --- |
| `--app` 搭配 `--version` 或 `--version-id` | App ID；版本字串或 ID | — | 為該版本上傳。未指定 `--locale` 時，`--path` 底下第一層的資料夾必須是語系資料夾（`en-US`、`de-DE`、…），系統會在每個資料夾中尋找 `--device-type` 的檔案。 |
| `--locale` | 語系代碼 | — | 只上傳一個語系；此時 `--path` 指向該語系的檔案。版本必須已有該語系。 |
| `--version-localization` | 在地化 ID | — | 依 ID（`asc localizations list` 的 ID 欄）上傳到單一在地化，而非語系代碼。 |
| `--path` | 檔案或資料夾 | 必填 | 截圖。檔案依排序後的順序上傳。 |
| `--device-type` | 例如 `IPHONE_65`、`IPAD_PRO_3GEN_129`、`IPHONE_DUO` | 必填 | 截圖組。 |
| `--replace` | — | 關閉 | 先刪除截圖組中現有的所有截圖。需要 `--confirm`。 |
| `--skip-existing` | — | 關閉 | 略過校驗和已存在於截圖組中的檔案。 |
| `--max-screenshots` | 1–10 | 全部 | 每組只上傳前 N 張。 |
| `--dry-run` | — | 關閉 | 顯示將上傳、略過或刪除的項目。 |
| `--asset-library` | — | 關閉 | 上傳到素材庫並放置到在地化上，而非上傳到截圖組。需要 `--version-localization`。`--placement-group` 可覆寫群組。 |
| `--resume` | 失敗記錄檔 | — | 依失敗時寫出的檔案，繼續未完成的上傳。 |
| `--concurrency` | 1–10 | `10` | 同一組內的平行上傳數。 |

建議先用 `asc screenshots validate --path ./screenshots --device-type IPHONE_65` 檢查檔案：它會回報隱藏檔、無法讀取的圖片、該類型不接受的尺寸、錯誤的副檔名與重複檔案，且不會上傳。

## video-previews

管理 App Store 的 App 預覽影片。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `list` | 列出某個在地化的預覽影片。 | `--version-localization` |
| `upload` | 為某個在地化上傳預覽影片。 | `--asset-library`, `--confirm`, `--device-type`, `--dry-run`, `--path`, `--placement-group`, `--replace`, `--skip-existing`, `--time-code`, `--version-localization` |
| `download` | 將 App Store 的 App 預覽影片下載到磁碟。 | `--format`, `--id`, `--output-dir`, `--overwrite`, `--version-localization` |
| `delete` | 依 ID 刪除預覽影片。 | `--confirm`, `--id` |
| `set-poster-frame` | 設定預覽影片的封面影格時間碼。 | `--id`, `--time-code` |

## asset-library

檢視素材庫的媒體與規格，並上傳圖片與影片。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `view` | 讀取 App 的素材庫。 | `--app` |
| `images` | 檢視並上傳素材庫圖片。 | 子指令：`upload`, `list`, `view`, `placements`, `rename`, `archive`, `unarchive`, `delete` |
| `videos` | 檢視並上傳素材庫影片。 | 子指令：`upload`, `list`, `view`, `placements`, `rename`, `archive`, `unarchive`, `delete`, `set-poster-frame` |
| `specs` | 讀取 Apple 目前的素材尺寸與擺放規則。 | `--feature`, `--placement-profile-group`, `--placement-type`, `--spec` |

## background-assets

管理背景素材。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `list` | 列出 App 的背景素材。 | `--app`, `--archived`, `--asset-pack-identifier`, `--sort`, `--versions-locale`, `--versions-platform` |
| `view` | 依 ID 檢視背景素材。 | `--id` |
| `create` | 建立背景素材。 | `--app`, `--asset-pack-identifier` |
| `update` | 更新背景素材。 | `--archived`, `--id` |
| `versions` | 管理背景素材版本。 | 子指令：`list`, `view`, `create` |
| `app-store-releases` | 取得背景素材的 App Store 發布。 | 子指令：`view` |
| `external-beta-releases` | 取得背景素材的外部 Beta 發布。 | 子指令：`view` |
| `internal-beta-releases` | 取得背景素材的內部 Beta 發布。 | 子指令：`view` |
| `upload-files` | 管理背景素材上傳檔案。 | 子指令：`list`, `view`, `create`, `update` |
| `submit` | 將背景素材版本提交至 App Store 審查。 | `--all`, `--app`, `--asset-pack-identifier`, `--background-asset-id`, `--confirm`, `--dry-run`, `--no-submit`, `--platform`, `--review-submission-id`, `--version-id` |

## product-pages

管理自訂產品頁面與產品頁面實驗。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `custom-pages` | 管理自訂產品頁面。 | 子指令：`list`, `view`, `create`, `update`, `delete`, `versions`, `localizations` |
| `experiments` | 管理產品頁面最佳化實驗。 | 子指令：`list`, `view`, `create`, `update`, `delete`, `treatments` |

## routing-coverage

管理路線規劃 App 涵蓋範圍檔案。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `view` | 檢視版本的路線規劃 App 涵蓋範圍。 | `--version-id` |
| `info` | 依 ID 取得路線規劃 App 涵蓋範圍。 | `--id` |
| `create` | 為版本上傳路線規劃 App 涵蓋範圍。 | `--file`, `--version-id` |
| `delete` | 刪除路線規劃 App 涵蓋範圍。 | `--confirm`, `--id` |

## pricing

管理 App 定價與供應情況。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `current` | 顯示 App 目前的價格。 | `--all-territories`, `--app`, `--territory` |
| `territories` | 列出定價地區。 | 子指令：`list` |
| `price-points` | 列出並檢視 App 價格點。 | `--app`, `--include`, `--territory`；子指令：`view`, `equalizations` |
| `tiers` | 列出 App 在某地區的價格級距。 | `--app`, `--refresh`, `--territory` |
| `schedule` | 管理 App 價格排程。 | 子指令：`view`, `create`, `manual-prices`, `automatic-prices` |
| `ppp` | 依基準價格規劃並套用購買力平價價格。 | `--app`, `--base-price`, `--base-territory`, `--confirm`, `--dry-run`, `--round`, `--start-date`, `--territory`, `--workers` |
| `availability` | 管理 App 供應情況。 | 子指令：`view`, `create`, `territory-availabilities`, `edit`, `platforms`, `remove-from-sale` |

地區可使用二或三個字母的代碼，或完整的英文名稱（`US`、`USA`、`United States`）。`pricing ppp --app APP_ID --base-price 4.99 --dry-run` 會依單一基準價格顯示所有地區的購買力價格（`--base-territory` 預設為 `USA`；`--round` 可為 `exact`、`nearest`、`up` 或 `down`，預設 `nearest`；`--territory` 可只變更部分地區）。加上 `--confirm` 再執行一次即會取代價格排程；`--start-date` 會讓目前價格維持到該日為止。`pricing availability remove-from-sale` 需要 `--confirm`。

## pre-orders

管理 App 預購。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `view` | 檢視 App 的預購供應情況。 | `--app` |
| `list` | 列出預購的地區供應情況。 | `--availability` |
| `enable` | 為地區啟用預購。 | `--app`, `--release-date`, `--territory` |
| `update` | 更新某個地區供應情況的預購設定。 | `--available`, `--pre-order-enabled`, `--release-date`, `--territory-availability` |
| `disable` | 停用某個地區供應情況的預購。 | `--territory-availability` |
| `end` | 結束地區供應情況的預購。 | `--confirm`, `--territory-availability` |

## categories

管理 App Store 類別。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `list` | 列出可用的 App Store 類別。 |  |
| `view` | 依 ID 檢視 App Store 類別。 | `--category-id` |
| `parent` | 取得類別的上層類別。 | `--category-id` |
| `subcategories` | 列出類別的子類別。 | `--category-id` |
| `set` | 設定 App 的主要與次要類別。 | `--app`, `--app-info`, `--primary`, `--primary-subcategory-one`, `--primary-subcategory-two`, `--secondary`, `--secondary-subcategory-one`, `--secondary-subcategory-two` |

## age-rating

管理 App Store 年齡分級聲明。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `view` | 檢視年齡分級聲明。 | `--app`, `--app-info-id`, `--version-id` |
| `edit` | 更新年齡分級聲明。 | `--advertising`, `--age-assurance`, `--age-rating-override`, `--age-rating-override-v2`, `--alcohol-tobacco-drug-use`, `--all-none`, `--app`, `--app-info-id`, `--clear-grac-rating-classification-number`, `--contests`, `--developer-age-rating-info-url`, `--gambling`, `--gambling-simulated`, `--grac-rating-classification-number`, `--guns-or-other-weapons`, `--health-or-wellness-topics`, `--horror-fear`, `--id`, `--kids-age-band`, `--korea-age-rating-override`, `--loot-box`, `--mature-suggestive`, `--medical-treatment`, `--messaging-and-chat`, `--parental-controls`, `--profanity-humor`, `--sexual-content-graphic-nudity`, `--sexual-content-nudity`, `--social-media`, `--social-media-age-restricted`, `--unrestricted-web-access`, `--user-generated-content`, `--version-id`, `--violence-cartoon`, `--violence-realistic`, `--violence-realistic-graphic` |
| `audit` | 稽核各 App 的社群媒體年齡分級回答。 | `--app` |

## accessibility

管理輔助使用聲明。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `list` | 列出 App 的輔助使用聲明。 | `--app`, `--device-family`, `--state` |
| `view` | 依 ID 檢視輔助使用聲明。 | `--id` |
| `create` | 建立輔助使用聲明。 | `--app`, `--device-family`, `--supports-audio-descriptions`, `--supports-captions`, `--supports-dark-interface`, `--supports-differentiate-without-color-alone`, `--supports-larger-text`, `--supports-reduced-motion`, `--supports-sufficient-contrast`, `--supports-voice-control`, `--supports-voiceover` |
| `update` | 更新輔助使用聲明。 | `--id`, `--publish`, `--supports-audio-descriptions`, `--supports-captions`, `--supports-dark-interface`, `--supports-differentiate-without-color-alone`, `--supports-larger-text`, `--supports-reduced-motion`, `--supports-sufficient-contrast`, `--supports-voice-control`, `--supports-voiceover` |
| `delete` | 刪除輔助使用聲明。 | `--confirm`, `--id` |

## encryption

管理 App 加密聲明與文件。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `declarations` | 管理 App 加密聲明。 | 子指令：`list`, `view`, `app`, `app-encryption-declaration-document`, `create`, `exempt-declare`, `assign-builds` |
| `documents` | 管理加密聲明文件。 | 子指令：`view`, `upload` |

## eula

管理使用者授權合約（EULA）。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `view` | 依 ID 或 App 檢視 EULA。 | `--app`, `--id` |
| `list` | 列出 App 的 EULA。 | `--app` |
| `create` | 為 App 建立 EULA。 | `--agreement-text`, `--app`, `--territory` |
| `update` | 更新 EULA。 | `--agreement-text`, `--id`, `--territory` |
| `delete` | 刪除 EULA。 | `--confirm`, `--id` |

## agreements

管理 App Store Connect 中的協議。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `territories` | 列出 EULA 地區。 | 子指令：`list` |

## app-clips

管理 App Clip 體驗與呼叫方式。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `list` | 列出 App 的 App Clip。 | `--app`, `--bundle-id` |
| `view` | 依 ID 檢視 App Clip 詳細資料。 | `--id` |
| `default-experiences` | 管理 App Clip 預設體驗。 | 子指令：`list`, `view`, `review-detail`, `release-with-app-store-version`, `links`, `header-image`, `create`, `update`, `delete`, `localizations` |
| `advanced-experiences` | 管理 App Clip 進階體驗。 | 子指令：`list`, `view`, `create`, `update`, `delete`, `images` |
| `default-experiences-links` | 列出 App Clip 的預設體驗關聯。 | `--app-clip-id` |
| `advanced-experiences-links` | 列出 App Clip 的進階體驗關聯。 | `--app-clip-id` |
| `header-images` | 管理 App Clip 標題圖片。 | 子指令：`view`, `create`, `delete` |
| `invocations` | 管理 Beta App Clip 呼叫方式。 | 子指令：`list`, `view`, `create`, `update`, `delete`, `localizations` |
| `domain-status` | 取得建置套件的 App Clip 網域狀態。 | 子指令：`cache`, `debug` |
| `review-details` | 管理 App Clip 的 App Store 審查詳細資料。 | 子指令：`view`, `create`, `update` |

## android-ios-mapping

管理 Android 對 iOS 的 App 對應詳細資料。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `list` | 列出 App 的 Android 對 iOS App 對應。 | `--app` |
| `view` | 依 ID 檢視 Android 對 iOS App 對應。 | `--mapping-id` |
| `create` | 建立 Android 對 iOS App 對應。 | `--android-package-name`, `--app`, `--fingerprints` |
| `update` | 更新 Android 對 iOS App 對應。 | `--android-package-name`, `--clear-android-package-name`, `--clear-fingerprints`, `--fingerprints`, `--mapping-id` |
| `delete` | 刪除 Android 對 iOS App 對應。 | `--confirm`, `--mapping-id` |

## marketplace

管理市集資源。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `search-details` | 管理市集搜尋詳細資料。 | 子指令：`view`, `create`, `update`, `delete` |
| `webhooks` | 管理市集 Webhook。 | 子指令：`list`, `view`, `create`, `update`, `delete` |

## alternative-distribution

管理替代發行資源。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `domains` | 管理替代發行網域。 | 子指令：`list`, `view`, `create`, `delete` |
| `keys` | 管理替代發行金鑰。 | 子指令：`list`, `view`, `create`, `delete`, `app` |
| `packages` | 管理替代發行套件。 | 子指令：`view`, `create`, `app-store-version`, `versions`, `variants`, `deltas` |

## nominations

管理精選推薦提名。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `list` | 列出精選推薦提名。 | `--app`, `--in-app-events-limit`, `--include`, `--related-apps-limit`, `--sort`, `--status`, `--supported-territories-limit`, `--type` |
| `view` | 依 ID 檢視精選推薦提名。 | `--id`, `--in-app-events-limit`, `--include`, `--related-apps-limit`, `--supported-territories-limit` |
| `create` | 建立精選推薦提名。 | `--app`, `--description`, `--device-families`, `--has-in-app-events`, `--in-app-events`, `--launch-in-select-markets-first`, `--locales`, `--name`, `--notes`, `--pre-order-enabled`, `--publish-end-date`, `--publish-start-date`, `--submitted`, `--supplemental-materials-uris`, `--supported-territories`, `--type` |
| `update` | 更新精選推薦提名。 | `--app`, `--archived`, `--description`, `--device-families`, `--has-in-app-events`, `--id`, `--in-app-events`, `--launch-in-select-markets-first`, `--locales`, `--name`, `--notes`, `--pre-order-enabled`, `--publish-end-date`, `--publish-start-date`, `--submitted`, `--supplemental-materials-uris`, `--supported-territories`, `--type` |
| `delete` | 刪除精選推薦提名。 | `--confirm`, `--id` |

## game-center

管理 App Store Connect 中的 Game Center 資源。

| 子指令 | 作用 | 主要旗標 |
| --- | --- | --- |
| `achievements` | 管理 Game Center 成就。 | 子指令：`list`, `view`, `group-achievement`, `create`, `update`, `delete`, `submit`, `v2`, `localizations`, `images`, `releases` |
| `leaderboards` | 管理 Game Center 排行榜。 | 子指令：`list`, `view`, `create`, `update`, `delete`, `submit`, `group-leaderboard`, `v2`, `localizations`, `releases`, `images` |
| `leaderboard-sets` | 管理 Game Center 排行榜組。 | 子指令：`list`, `view`, `group-leaderboard-set`, `create`, `update`, `delete`, `v2`, `members`, `member-localizations`, `releases`, `images`, `localizations` |
| `challenges` | 管理 Game Center 挑戰。 | 子指令：`list`, `view`, `create`, `update`, `delete`, `versions`, `localizations`, `images`, `releases` |
| `activities` | 管理 Game Center 活動。 | 子指令：`list`, `view`, `create`, `update`, `delete`, `achievements`, `leaderboards`, `versions`, `localizations`, `images`, `releases` |
| `groups` | 管理 Game Center 群組。 | 子指令：`list`, `view`, `create`, `update`, `delete`, `achievements`, `leaderboards`, `leaderboard-sets`, `activities`, `challenges`, `details` |
| `app-versions` | 管理 Game Center App 版本。 | 子指令：`list`, `view`, `create`, `update`, `compatibility`, `app-store-version` |
| `enabled-versions` | 管理已啟用 Game Center 的版本。 | 子指令：`list`, `compatible-versions` |
| `details` | 管理 Game Center 詳細資料與相關資源。 | 子指令：`list`, `blocked-players`, `view`, `create`, `update`, `app-versions`, `group`, `achievements-v2`, `leaderboards-v2`, `leaderboard-sets-v2`, `achievement-releases`, `leaderboard-releases`, `leaderboard-set-releases`, `metrics` |
| `matchmaking` | 管理 Game Center 配對資源。 | 子指令：`queues`, `rule-sets`, `rules`, `teams`, `metrics`, `rule-set-tests` |

## 範例

建立下一個版本，複製目前版本的頁面文字，並檢查還缺少什麼：

```bash
asc versions create --app "APP_ID" --version "2.4.0" --copy-metadata-from "2.3.2"
asc validate --app "APP_ID" --version "2.4.0" --output table
```

在檔案中編輯頁面內容，只套用已核准的部分：

```bash
asc metadata pull --app "APP_ID" --version "2.4.0" --dir ./metadata
# edit ./metadata
asc metadata plan --app "APP_ID" --version "2.4.0" --dir ./metadata
asc metadata approve --all
asc metadata apply --app "APP_ID" --version "2.4.0" --dir ./metadata --review-dir .asc/metadata/review --confirm
```

取代某個語系的 iPhone 截圖：

```bash
asc screenshots validate --path ./final/en-US --device-type IPHONE_65
asc screenshots upload --app "APP_ID" --version "2.4.0" --locale "en-US" \
  --path ./final/en-US --device-type IPHONE_65 --replace --confirm
```

設定類別，並讓 App 在所有地區上架：

```bash
asc categories set --app "APP_ID" --primary PRODUCTIVITY
asc pricing availability edit --app "APP_ID" --all-territories --available true
```
