CLI 目录 横向对比 FCRS-1.0 标准 /llms.txt
← 返回 CLI 目录

App Store Connect CLI

$ asc 社区开源 高风险
Rorkai · 办公协作与 SaaS · MIT · macos / linux

App Store Connect CLI(asc)可自动化处理 TestFlight 上传、App Store 提审、多语言元数据本地化、协议检查与 Xcode Cloud 构建。支持 --output json、ASC_DEFAULT_OUTPUT=json、--profile、--confirm 安全确认门控以及只读 schema/check-readiness 命令。

FCRS-1.0 综合评分
88 /100
良好 (Good)
中置信度 (源码/文档)
零摩擦安装命令
brew install asc
CLI vs MCP 选型建议 优先选 CLI

asc 可直接在本地完成 .ipa 上传、.p8 JWT 签名、asc schema 自省及非 TTY 管道自动 JSON 输出,无需将私钥暴露给 MCP 服务器。

Agent 友好度体检单

✓ 原生 JSON 输出
— 字段裁剪
✓ 无头非交互
— 支持 Dry-Run
✓ 只读模式开关
— 支持 NO_COLOR
✓ 自省/Schema 发现
— 官方 SKILL.md

当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。

FCRS-1.0 六维评分拆解

Agent 友好度 24 / 25

非 TTY 管道下自动输出 JSON,支持显式 --output json、asc schema 自省与 --profile 切换。

  • Supports --output json and ASC_DEFAULT_OUTPUT=json
  • Exposes asc schema and asc capabilities for agent introspection
安全与权限边界 21 / 25

提交与删除等高风险操作需显式 --confirm 确认,并提供只读 check-readiness 预检,但提审本身业务影响较高。

  • Mutations require explicit --confirm flag
  • Includes read-only asc versions check-readiness
安装与运行摩擦 12 / 15

可通过 brew install asc 在 macOS 与 Linux 安装单一 Go 二进制。

  • Installable via brew install asc and GitHub releases
能力覆盖与边际价值 14 / 15

单工具覆盖 TestFlight、App Store 元数据、本地化、EULA 与 Xcode Cloud。

  • Replaces altool/Fastlane scripting for App Store Connect API operations
维护与来源背书 8 / 10

社区维护的 MIT 开源项目(rorkai/App-Store-Connect-CLI),专为现代 CLI 与 Agent 工作流打造。

  • Open-source MIT repository at rorkai/App-Store-Connect-CLI
文档与可验证性 9 / 10

asccli.sh 文档清晰,并辅以运行时 asc schema 和 asc capabilities 自省。

  • Runtime asc schema and documentation at asccli.sh

安全边界、鉴权与放权指南

鉴权方式
环境变量密钥 系统钥匙串 本地配置文件
凭证存储位置

将 App Store Connect .p8 API 密钥引用与 --profile 配置存于系统钥匙串或本地配置中,也可读取 ASC_KEY_ID、ASC_ISSUER_ID 与 ASC_PRIVATE_KEY_PATH。

潜在副作用
只读查询 远端写入 破坏性删除
费用与配额提示

MIT 开源 CLI 免费;需具备 Apple Developer Program 会员资格与 App Store Connect API 密钥。

可复制到 CLAUDE.md / AGENTS.md 的安全护栏
# App Store Connect CLI (asc) Agent Rules
- Always pass `--output json` (or set `ASC_DEFAULT_OUTPUT=json`) and `--profile` explicitly.
- Run `asc versions check-readiness` and `asc schema` before any release mutation.
- Never pass `--confirm` on submissions or deletions without explicit user approval.

Agent 高频安全命令配方

只读查询(安全推荐)

以 JSON 列出 App Store Connect 应用
asc apps list --output json --pretty

以结构化 JSON 输出已注册应用与 Bundle ID,不修改远端状态。

执行 App Store 提审前就绪检查
asc versions check-readiness --app <app-id> --output json

在正式提审前只读校验元数据、截图与发布就绪状态。

受控写入与预演

上传 IPA 构建至 TestFlight
asc builds upload --app <app-id> --ipa ./build/App.ipa --output json

使用 --profile 或 ASC_* 凭据将已签名 .ipa 上传至 App Store Connect。

核心优势

  • + 非交互管道自动切换 JSON 输出,并提供 asc schema 供 Agent 自发现接口。
  • + 高影响提交与删除命令强制要求 --confirm 确认。

注意事项与踩坑点

  • ! 属于社区维护工具而非 Apple 官方发布,接口变更依赖上游适配。
  • ! 使用前须通过 --profile 或 ASC_* 环境变量配置 Apple Developer .p8 API 密钥。

已验证兼容的 Agent 宿主

Claude Code Codex CLI Gemini CLI