asc-release-flow by rudrankriyam/app-store-connect-cli-skills
npx skills add https://github.com/rudrankriyam/app-store-connect-cli-skills --skill asc-release-flow当用户真正想问的是"我的应用可以准备提交了吗?"时,使用此技能,然后引导用户走最短路径完成干净的 App Store 提交,特别是针对首次发布。
asc auth login 或 ASC_* 环境变量)。VERSION_ID、SUBMISSION_ID、DETAIL_ID、GROUP_ID、SUB_ID、IAP_ID 及相关资源 ID。需要时使用 asc-id-resolver。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
asc release stage 或 asc release run,请准备好元数据目录。使用此技能时,按以下顺序回答就绪问题:
按以下方式对阻塞问题进行分组:
当用户想最快得到"我现在可以提交吗?"的答案时,首先运行此命令:
asc submit preflight --app "APP_ID" --version "1.2.3" --platform IOS
这是最快的高信号就绪检查,会打印修复指导而不修改任何内容。
当用户希望在 App Store Connect 中准备好版本,但在创建审核提交前需要手动检查点时,运行此命令:
asc release stage \
--app "APP_ID" \
--version "1.2.3" \
--build "BUILD_ID" \
--metadata-dir "./metadata/version/1.2.3" \
--confirm
当你想从现有版本继承元数据时,使用 --copy-metadata-from "1.2.2" 代替 --metadata-dir。asc release stage 要求恰好有一个元数据源,并在提交前停止。
当用户想要一个近似整个发布路径的命令时,运行此命令:
asc release run \
--app "APP_ID" \
--version "1.2.3" \
--build "BUILD_ID" \
--metadata-dir "./metadata/version/1.2.3" \
--dry-run \
--output table
这是以下操作的最佳单命令演练:
当你想将警告视为阻塞问题时,添加 --strict-validate。
当用户需要比 submit preflight 更全面的版本级别检查清单时,运行此命令:
asc validate --app "APP_ID" --version "1.2.3" --platform IOS --output table
此处优先使用版本字符串形式,以便与 asc submit preflight 和 asc release run 保持一致。仅当较低级别命令明确要求时,才切换到 VERSION_ID。
如果应用销售数字商品,还需运行:
asc validate iap --app "APP_ID" --output table
asc validate subscriptions --app "APP_ID" --output table
在 0.45.3+ 版本中,asc validate subscriptions 将 MISSING_METADATA 扩展为每个订阅的诊断信息。在重试提交或 attach-group 之前,使用它来精确定位缺失的审核截图、促销图片、定价或可用性覆盖、优惠就绪状态以及应用/构建证据。
当地区覆盖范围错误时,最新的诊断会明确指出缺失的具体地区,而不仅仅是报告数量不匹配。当你需要机器可读的诊断信息时,使用 --output json --pretty。
当模拟运行看起来没问题时:
asc release run \
--app "APP_ID" \
--version "1.2.3" \
--build "BUILD_ID" \
--metadata-dir "./metadata/version/1.2.3" \
--confirm
症状:
asc pricing availability view --app "APP_ID" 报告无可用性asc pricing availability edit ... 失败,因为它只更新现有的可用性检查:
asc pricing availability view --app "APP_ID"
使用公共 API 引导创建第一个可用性记录:
asc pricing availability create \
--app "APP_ID" \
--territory "USA,GBR" \
--available true \
--available-in-new-territories true
引导完成后,使用正常的 API 命令进行持续更新:
asc pricing availability edit \
--app "APP_ID" \
--territory "USA,GBR" \
--available true \
--available-in-new-territories true
对于包含订阅的应用,显式检查就绪状态:
asc validate subscriptions --app "APP_ID" --output table
如果验证器显示 MISSING_METADATA,请直接阅读行级诊断信息。最新的 CLI 在一个矩阵中显示缺失的促销图片、审核截图、定价或可用性覆盖、优惠就绪状态以及应用/构建证据,这是理解首次审核关联为何仍然失败的最快方法。
列出当前的首次审核订阅状态:
asc web review subscriptions list --app "APP_ID"
如果应用正在进行首次审核且需要关联群组:
asc web review subscriptions attach-group \
--app "APP_ID" \
--group-id "GROUP_ID" \
--confirm
如果 attach-group 仍然返回 MISSING_METADATA,请先修复验证器报告的先决条件。最常见的遗漏是广泛的定价覆盖范围和订阅促销图片。
对于单个订阅而非整个群组:
asc web review subscriptions attach \
--app "APP_ID" \
--subscription-id "SUB_ID" \
--confirm
对于后续的审核,使用正常的提交路径:
asc subscriptions review submit --subscription-id "SUB_ID" --confirm
如果审核资料缺失,请在提交前上传:
asc subscriptions review screenshots create --subscription-id "SUB_ID" --file "./screenshot.png"
asc subscriptions images create --subscription-id "SUB_ID" --file "./image.png"
同时确保当应用销售订阅时,应用的隐私政策 URL 已填写。
对于包含一次性购买、消耗品或非消耗品的应用,显式检查就绪状态:
asc validate iap --app "APP_ID" --output table
如果 IAP 缺少其 App Review 截图:
asc iap review-screenshots create --iap-id "IAP_ID" --file "./review.png"
对于已发布应用上的 IAP,直接提交它们:
asc iap submit --iap-id "IAP_ID" --confirm
如果这是应用的首个 IAP,或是首次添加新的 IAP 类型,Apple 要求其必须包含在新的应用版本中。当前的 asc 命令可以验证并提交已发布应用的 IAP,但还没有像订阅网页命令那样的首次审核关联流程。在这种情况下:
asc validate iap、定价、本地化和审核截图数据准备 IAP同时确保当应用销售 IAP 时,应用的隐私政策 URL 已填写。
如果应用使用 Game Center,请确保 App Store 版本已启用 Game Center:
asc game-center app-versions list --app "APP_ID"
asc game-center app-versions create --app-store-version-id "VERSION_ID"
如果你是首次添加 Game Center 组件,请将它们包含在与应用版本相同的提交中。首先解析组件版本 ID:
asc game-center achievements v2 versions list --achievement-id "ACH_ID"
asc game-center leaderboards v2 versions list --leaderboard-id "LEADERBOARD_ID"
asc game-center challenges versions list --challenge-id "CHALLENGE_ID"
asc game-center activities versions list --activity-id "ACTIVITY_ID"
然后使用审核提交流程,以便可以将应用版本和 Game Center 组件版本添加到同一提交中:
asc review submissions-create --app "APP_ID" --platform IOS
asc review items-add --submission "SUBMISSION_ID" --item-type appStoreVersions --item-id "VERSION_ID"
asc review items-add --submission "SUBMISSION_ID" --item-type gameCenterLeaderboardVersions --item-id "GC_LEADERBOARD_VERSION_ID"
asc review submissions-submit --id "SUBMISSION_ID" --confirm
asc review items-add 还支持 gameCenterAchievementVersions、gameCenterActivityVersions、gameCenterChallengeVersions 和 gameCenterLeaderboardSetVersions。
如果 Game Center 组件版本需要与应用版本一同发布,请优先使用显式的 asc review submissions-* 流程,而不是 asc release run --confirm,因为你需要在最终提交前有机会添加所有提交项。
公共 API 可以警告 App 隐私就绪状态,但无法完全验证发布状态。
如果 asc submit preflight、asc validate 或 asc release run 出现 App 隐私建议,请通过以下方式协调:
asc web privacy pull --app "APP_ID" --out "./privacy.json"
asc web privacy plan --app "APP_ID" --file "./privacy.json"
asc web privacy apply --app "APP_ID" --file "./privacy.json"
asc web privacy publish --app "APP_ID" --confirm
如果用户不希望使用实验性的网页会话流程,请在 App Store Connect 中手动确认 App 隐私:
https://appstoreconnect.apple.com/apps/APP_ID/appPrivacy
检查版本是否已有审核详情:
asc review details-for-version --version-id "VERSION_ID"
如果需要,创建或更新它们:
asc review details-create \
--version-id "VERSION_ID" \
--contact-first-name "Dev" \
--contact-last-name "Support" \
--contact-email "dev@example.com" \
--contact-phone "+1 555 0100" \
--notes "在此处说明审核员访问路径。"
asc review details-update \
--id "DETAIL_ID" \
--notes "更新后的审核员说明。"
仅当 App Review 确实需要演示凭据时,才设置 --demo-account-required=true。
当满足以下条件时,应用实际上已准备好提交:
asc submit preflight --app "APP_ID" --version "VERSION" 报告无阻塞问题asc validate --app "APP_ID" --version "VERSION" 是干净的或仅包含已理解的非阻塞警告asc release stage --confirm 成功准备了目标版本asc release run ... --dry-run 产生预期的计划VALID 并已关联到目标版本asc web privacy ... 或手动确认解决仅当用户需要对每个步骤进行显式控制时,使用较低级别流程:
asc versions attach-build --version-id "VERSION_ID" --build "BUILD_ID"
asc submit preflight --app "APP_ID" --version "1.2.3" --platform IOS
asc submit create --app "APP_ID" --version "1.2.3" --build "BUILD_ID" --confirm
asc submit status --version-id "VERSION_ID"
# 或者,如果你捕获了审核提交 ID:
asc submit status --id "SUBMISSION_ID"
如果提交需要多个审核项,例如 Game Center 组件版本,请直接使用审核提交 API:
asc review submissions-create --app "APP_ID" --platform IOS
asc review items-add --submission "SUBMISSION_ID" --item-type appStoreVersions --item-id "VERSION_ID"
asc review items-add --submission "SUBMISSION_ID" --item-type gameCenterChallengeVersions --item-id "GC_CHALLENGE_VERSION_ID"
asc review submissions-submit --id "SUBMISSION_ID" --confirm
--platform MAC_OS、TV_OS 或 VISION_OS。.pkg,然后使用相同的就绪和提交流程。asc publish testflight 仍然是最快的 TestFlight 快捷方式,但对于 App Store 就绪状态,请优先使用 asc submit preflight、asc release stage 和 asc release run。asc release stage --confirm 是准备版本而不提交的最安全的单命令方式。asc release run --dry-run 是回答"这个完整发布流程会有效吗?"最接近的单命令方式。asc submit preflight 是最快的首次检查。asc validate 是用于版本就绪状态的更深入的 API 端检查清单。asc validate subscriptions 现在为 MISSING_METADATA 就绪失败暴露了更丰富的每个订阅的诊断信息。asc pricing availability create 现在涵盖了首次应用可用性引导的情况。每周安装量
1.2K
仓库
GitHub Stars
588
首次出现
2026年1月28日
安全审计
安装于
codex1.2K
opencode1.2K
gemini-cli1.2K
github-copilot1.1K
kimi-cli1.1K
amp1.1K
Use this skill when the real question is "Can my app be ready to submit?" and then guide the user through the shortest path to a clean App Store submission, especially for first-time releases.
asc auth login or ASC_* env vars).VERSION_ID, SUBMISSION_ID, DETAIL_ID, GROUP_ID, SUB_ID, IAP_ID, and related resource IDs. Use asc-id-resolver when needed.asc release stage or asc release run.When using this skill, answer readiness questions in this order:
Group blockers like this:
Run this first when the user wants the quickest answer to "can I submit now?":
asc submit preflight --app "APP_ID" --version "1.2.3" --platform IOS
This is the fastest high-signal readiness check and prints fix guidance without mutating anything.
Run this when the user wants the version prepared in App Store Connect but wants a manual checkpoint before creating a review submission:
asc release stage \
--app "APP_ID" \
--version "1.2.3" \
--build "BUILD_ID" \
--metadata-dir "./metadata/version/1.2.3" \
--confirm
Use --copy-metadata-from "1.2.2" instead of --metadata-dir when you want to carry metadata forward from an existing version. asc release stage requires exactly one metadata source and stops before submit.
Run this when the user wants one command that approximates the whole release path:
asc release run \
--app "APP_ID" \
--version "1.2.3" \
--build "BUILD_ID" \
--metadata-dir "./metadata/version/1.2.3" \
--dry-run \
--output table
This is the best single-command rehearsal for:
Add --strict-validate when you want warnings treated as blockers.
Run this when the user needs a fuller version-level checklist than submit preflight:
asc validate --app "APP_ID" --version "1.2.3" --platform IOS --output table
Prefer the version string form here so it stays aligned with asc submit preflight and asc release run. Switch to VERSION_ID only for lower-level commands that explicitly require it.
If the app sells digital goods, also run:
asc validate iap --app "APP_ID" --output table
asc validate subscriptions --app "APP_ID" --output table
In 0.45.3+, asc validate subscriptions expands MISSING_METADATA into per-subscription diagnostics. Use it to pinpoint missing review screenshots, promotional images, pricing or availability coverage, offer readiness, and app/build evidence before you retry submission or attach-group.
When territory coverage is wrong, the newest diagnostics name the exact missing territories instead of only reporting count mismatches. Use --output json --pretty when you want machine-readable diagnostics.
When the dry run looks clean:
asc release run \
--app "APP_ID" \
--version "1.2.3" \
--build "BUILD_ID" \
--metadata-dir "./metadata/version/1.2.3" \
--confirm
Symptoms:
asc pricing availability view --app "APP_ID" reports no availabilityasc pricing availability edit ... fails because it only updates existing availabilityCheck:
asc pricing availability view --app "APP_ID"
Bootstrap the first availability record with the public API:
asc pricing availability create \
--app "APP_ID" \
--territory "USA,GBR" \
--available true \
--available-in-new-territories true
After bootstrap, use the normal API command for ongoing updates:
asc pricing availability edit \
--app "APP_ID" \
--territory "USA,GBR" \
--available true \
--available-in-new-territories true
For apps with subscriptions, check readiness explicitly:
asc validate subscriptions --app "APP_ID" --output table
If the validator shows MISSING_METADATA, read the row-level diagnostics literally. The newest CLI surfaces missing promotional images, review screenshots, pricing or availability coverage, offer readiness, and app/build evidence in one matrix, which is the quickest way to understand why first-review attach still fails.
List current first-review subscription state:
asc web review subscriptions list --app "APP_ID"
If the app is going through its first review and the group needs attaching:
asc web review subscriptions attach-group \
--app "APP_ID" \
--group-id "GROUP_ID" \
--confirm
If attach-group still returns MISSING_METADATA, fix the validator-reported prerequisites first. The most common misses are broad pricing coverage and a subscription promotional image.
For one subscription instead of a whole group:
asc web review subscriptions attach \
--app "APP_ID" \
--subscription-id "SUB_ID" \
--confirm
For later reviews, use the normal submission path:
asc subscriptions review submit --subscription-id "SUB_ID" --confirm
If review artifacts are missing, upload them before submission:
asc subscriptions review screenshots create --subscription-id "SUB_ID" --file "./screenshot.png"
asc subscriptions images create --subscription-id "SUB_ID" --file "./image.png"
Also make sure the app’s privacy policy URL is populated when the app sells subscriptions.
For apps with one-time purchases, consumables, or non-consumables, check readiness explicitly:
asc validate iap --app "APP_ID" --output table
If the IAP is missing its App Review screenshot:
asc iap review-screenshots create --iap-id "IAP_ID" --file "./review.png"
For IAPs on a published app, submit them directly:
asc iap submit --iap-id "IAP_ID" --confirm
If this is the first IAP for the app, or the first time adding a new IAP type, Apple requires it to be included with a new app version. Current asc commands can validate and submit published-app IAPs, but there is no equivalent first-review attach flow like the subscription web commands yet. In that case:
asc validate iap, pricing, localization, and review screenshot data firstAlso make sure the app’s privacy policy URL is populated when the app sells IAPs.
If the app uses Game Center, make sure the App Store version is Game Center-enabled:
asc game-center app-versions list --app "APP_ID"
asc game-center app-versions create --app-store-version-id "VERSION_ID"
If you are adding Game Center components for the first time, include them in the same submission as the app version. Resolve component version IDs first:
asc game-center achievements v2 versions list --achievement-id "ACH_ID"
asc game-center leaderboards v2 versions list --leaderboard-id "LEADERBOARD_ID"
asc game-center challenges versions list --challenge-id "CHALLENGE_ID"
asc game-center activities versions list --activity-id "ACTIVITY_ID"
Then use the review-submission flow so you can add the app version and the Game Center component versions to the same submission:
asc review submissions-create --app "APP_ID" --platform IOS
asc review items-add --submission "SUBMISSION_ID" --item-type appStoreVersions --item-id "VERSION_ID"
asc review items-add --submission "SUBMISSION_ID" --item-type gameCenterLeaderboardVersions --item-id "GC_LEADERBOARD_VERSION_ID"
asc review submissions-submit --id "SUBMISSION_ID" --confirm
asc review items-add also supports gameCenterAchievementVersions, gameCenterActivityVersions, gameCenterChallengeVersions, and gameCenterLeaderboardSetVersions.
If Game Center component versions need to ship with the app version, prefer the explicit asc review submissions-* flow over asc release run --confirm, because you need a chance to add all submission items before final submit.
The public API can warn about App Privacy readiness but cannot fully verify publish state.
If asc submit preflight, asc validate, or asc release run surfaces an App Privacy advisory, reconcile it with:
asc web privacy pull --app "APP_ID" --out "./privacy.json"
asc web privacy plan --app "APP_ID" --file "./privacy.json"
asc web privacy apply --app "APP_ID" --file "./privacy.json"
asc web privacy publish --app "APP_ID" --confirm
If the user does not want the experimental web-session flow, confirm App Privacy manually in App Store Connect:
https://appstoreconnect.apple.com/apps/APP_ID/appPrivacy
Check whether the version already has review details:
asc review details-for-version --version-id "VERSION_ID"
If needed, create or update them:
asc review details-create \
--version-id "VERSION_ID" \
--contact-first-name "Dev" \
--contact-last-name "Support" \
--contact-email "dev@example.com" \
--contact-phone "+1 555 0100" \
--notes "Explain the reviewer access path here."
asc review details-update \
--id "DETAIL_ID" \
--notes "Updated reviewer instructions."
Only set --demo-account-required=true when App Review truly needs demo credentials.
An app is effectively ready to submit when:
asc submit preflight --app "APP_ID" --version "VERSION" reports no blocking issuesasc validate --app "APP_ID" --version "VERSION" is clean or only contains understood non-blocking warningsasc release stage --confirm successfully prepared the target version when you want a real pre-submit checkpointasc release run ... --dry-run produces the expected planVALID and attached to the target versionasc web privacy ... or manual confirmationUse the lower-level flow only when the user needs explicit control over each step:
asc versions attach-build --version-id "VERSION_ID" --build "BUILD_ID"
asc submit preflight --app "APP_ID" --version "1.2.3" --platform IOS
asc submit create --app "APP_ID" --version "1.2.3" --build "BUILD_ID" --confirm
asc submit status --version-id "VERSION_ID"
# or, if you captured the review submission ID:
asc submit status --id "SUBMISSION_ID"
If the submission needs multiple review items, such as Game Center component versions, use the review-submission API directly instead:
asc review submissions-create --app "APP_ID" --platform IOS
asc review items-add --submission "SUBMISSION_ID" --item-type appStoreVersions --item-id "VERSION_ID"
asc review items-add --submission "SUBMISSION_ID" --item-type gameCenterChallengeVersions --item-id "GC_CHALLENGE_VERSION_ID"
asc review submissions-submit --id "SUBMISSION_ID" --confirm
--platform MAC_OS, TV_OS, or VISION_OS as needed..pkg separately, then use the same readiness and submission flow.asc publish testflight is still the fastest TestFlight shortcut, but for App Store readiness prefer asc submit preflight, asc release stage, and asc release run.asc release stage --confirm is the safest one-command way to prepare a version without submitting it.asc release run --dry-run is the closest thing to a one-command answer for "will this full release flow work?"asc submit preflight is the fastest first pass.asc validate is the deeper API-side checklist for version readiness.asc validate subscriptions now exposes much richer per-subscription diagnostics for MISSING_METADATA readiness failures.asc pricing availability create now covers the first app-availability bootstrap case.Weekly Installs
1.2K
Repository
GitHub Stars
588
First Seen
Jan 28, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex1.2K
opencode1.2K
gemini-cli1.2K
github-copilot1.1K
kimi-cli1.1K
amp1.1K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装