Fast, scriptable CLI for the App Store Connect API. Automate TestFlight, builds, submissions, signing, analytics, screenshots, subscriptions, and more. JSON-first, no interactive prompts
  • Go 99.5%
  • Python 0.3%
Find a file
Rudrank Riyam 1f9a364a5d
Merge pull request #1630 from rorkai/codex/update-openapi-4-4
Update App Store Connect OpenAPI snapshot to 4.4
2026-06-08 16:54:58 -07:00
.githooks fix(docs): keep root Mintlify pages on docs-only hook path 2026-03-28 13:22:35 +05:30
.github Update Go toolchain and modules (#1610) 2026-06-03 17:00:06 +05:30
.mintlify Add Mintlify assistant instructions 2026-03-28 12:48:15 +05:30
apps/studio test(studio): remove flaky auth status shell tests 2026-05-31 22:47:04 +05:30
cicd Migrate repo links to rorkai (#1442) 2026-04-17 06:35:50 +05:30
cmd Prune dead deprecated command helpers 2026-06-06 14:48:44 +00:00
commands Merge pull request #1604 from rorkai/codex/ads-golden-tests 2026-06-01 11:23:51 +05:30
concepts Migrate repo links to rorkai (#1442) 2026-04-17 06:35:50 +05:30
configuration Bring Apple Ads campaign management into asc 2026-05-31 13:22:56 -07:00
docs Merge pull request #1630 from rorkai/codex/update-openapi-4-4 2026-06-08 16:54:58 -07:00
guides Tighten Apple Ads operator examples 2026-06-01 09:57:52 +05:30
internal Update local schema index for App Store Connect API 4.4 2026-06-08 16:53:25 -07:00
resources chore: remove website changelog in favor of auto-generated release notes 2026-05-28 19:31:27 +05:30
scripts Document ads campaign workflows 2026-06-01 10:08:08 +05:30
.gitignore chore: ignore Python bytecode from scripts/ helpers 2026-05-28 20:35:46 +05:30
.golangci.yml Fix lint tooling for Go 1.26 2026-04-01 12:27:12 +05:30
.mintignore fix(docs): stop studio css from breaking mintlify scroll 2026-04-02 16:16:17 +05:30
AGENTS.md docs: add release-announcement workflow to AGENTS.md 2026-05-28 19:56:49 +05:30
authentication.mdx Address Apple Ads auth UX review 2026-06-01 10:03:29 +05:30
CLAUDE.md Remove stale ASC.md to prevent AI agents from giving wrong answers 2026-02-17 03:29:00 +05:30
CODE_OF_CONDUCT.md Improve repo discoverability and community health 2026-02-17 05:06:24 +05:30
CONTRIBUTING.md Migrate repo links to rorkai (#1442) 2026-04-17 06:35:50 +05:30
docs.json Add Apple Ads operator playbooks 2026-06-01 04:18:05 +05:30
go.mod Update Go toolchain and modules (#1610) 2026-06-03 17:00:06 +05:30
go.sum Update Go toolchain and modules (#1610) 2026-06-03 17:00:06 +05:30
index.mdx fix(docs): stop studio css from breaking mintlify scroll 2026-04-02 16:16:17 +05:30
install.sh Migrate repo links to rorkai (#1442) 2026-04-17 06:35:50 +05:30
installation.mdx Migrate repo links to rorkai (#1442) 2026-04-17 06:35:50 +05:30
introduction.mdx fix: restore publish appstore as canonical flow 2026-04-01 16:03:39 +05:30
LICENSE Initial commit 2026-01-20 16:47:23 +05:30
main.go test: add phase 6 main package coverage and finalize plan 2026-02-10 03:04:11 +05:30
main_test.go test: add phase 6 main package coverage and finalize plan 2026-02-10 03:04:11 +05:30
Makefile docs: list test-parallel make target 2026-06-08 04:41:32 +00:00
makefile_test.go build: split CI, hook, and release hardening (#1254) 2026-03-29 18:19:48 +05:30
migrate-to-1-0.mdx docs: add 1.0 migration guide and remove stale command refs 2026-04-03 01:46:50 +05:30
quickstart.mdx Migrate repo links to rorkai (#1442) 2026-04-17 06:35:50 +05:30
README.md Merge pull request #1602 from rorkai/codex/ads-auth-ux 2026-06-01 11:23:35 +05:30
release_workflow_test.go chore: remove website changelog in favor of auto-generated release notes 2026-05-28 19:31:27 +05:30
SECURITY.md Migrate repo links to rorkai (#1442) 2026-04-17 06:35:50 +05:30
SUPPORT.md Migrate repo links to rorkai (#1442) 2026-04-17 06:35:50 +05:30

App Store Connect CLI

Latest Release GitHub Stars Go Version License Homebrew

asc -- App Store Connect CLI

A fast, lightweight, and scriptable CLI for the App Store Connect API. Automate iOS, macOS, tvOS, and visionOS release workflows from your terminal, IDE, or CI/CD pipeline.

Table of Contents

asc skills

Agent Skills for automating asc workflows including builds, TestFlight, metadata sync, submissions, and signing: https://github.com/rorkai/app-store-connect-cli-skills

Quick Start

If you want to confirm the binary works before configuring authentication:

asc version
asc --help

1. Install

# Homebrew (recommended)
brew install asc

# Install script (macOS/Linux)
curl -fsSL https://asccli.sh/install | bash
# Windows (WinGet, once the package is accepted)
winget install asc

# Exact fallback when scripting
winget install --id Rorkai.ASC --exact

The WinGet package is tracked in GitHub Discussion #1552. Until it appears in winget search asc, Windows users can download the signed release binaries directly from the GitHub releases page.

For source builds and contributor setup, see CONTRIBUTING.md.

2. Authenticate

asc auth login \
  --name "MyApp" \
  --key-id "ABC123" \
  --issuer-id "DEF456" \
  --private-key /path/to/AuthKey.p8 \
  --network

Generate API keys at: https://appstoreconnect.apple.com/access/integrations/api

If you are running in CI, a headless shell, or a machine where keychain access is not available, use config-backed auth instead:

asc auth login \
  --bypass-keychain \
  --name "MyCIKey" \
  --key-id "ABC123" \
  --issuer-id "DEF456" \
  --private-key /path/to/AuthKey.p8

3. Validate auth

asc auth status --validate
asc auth doctor

4. First command

asc apps list --output table
asc apps list --output json --pretty

Output defaults (TTY-aware)

asc chooses a default --output based on where stdout is connected:

  • Interactive terminal (TTY): table
  • Non-interactive output (pipes/files/CI): json

You can still set a global preference:

export ASC_DEFAULT_OUTPUT=markdown

And explicit flags always win:

asc apps list --output json

Stability labels

asc uses visible lifecycle labels so you can judge support expectations before depending on a command in CI or scripts:

  • No label: stable public CLI contract for normal use
  • [experimental]: useful, but still evolving; expect sharper edges and faster iteration
  • DEPRECATED: or deprecation warnings: compatibility path kept during migration, but not the long-term home

Troubleshooting

Homebrew

  • Refresh Homebrew first: brew update && brew upgrade asc
  • Check which binary you are running: which asc
  • Confirm the installed version: asc version
  • If Homebrew is behind the latest GitHub release, use the install script from https://asccli.sh/install

WinGet

  • Refresh WinGet sources first: winget source update
  • Prefer the short install once available: winget install asc
  • If the short name ever becomes ambiguous, use the package identifier: winget install --id Rorkai.ASC --exact
  • Confirm the installed command resolves: Get-Command asc and asc version

Authentication

  • Validate the active profile: asc auth status --validate
  • Run the auth health check: asc auth doctor
  • If keychain access is blocked, retry with ASC_BYPASS_KEYCHAIN=1 or re-run asc auth login --bypass-keychain
  • Use asc auth login --local --bypass-keychain ... when you want repo-local credentials in ./.asc/config.json

Output

  • asc defaults to table in an interactive terminal and json in pipes, files, and CI
  • Use an explicit format when scripting or sharing repro steps: --output json, --output table, or --output markdown
  • Use --pretty with JSON when you want readable output in terminals or bug reports
  • Set a personal default with ASC_DEFAULT_OUTPUT, but remember --output always wins

Support

  • Use GitHub Discussions for install help, authentication setup, workflow advice, and "how do I...?" questions
  • Use GitHub Issues for reproducible bugs and concrete feature requests
  • See SUPPORT.md for the support policy and bug-report checklist
  • Before filing an auth or API bug, retry with ASC_BYPASS_KEYCHAIN=1; if it is safe to do so, include redacted output from ASC_DEBUG=api asc ... or asc --api-debug ...

Wall of Apps

See the Wall of Apps →

Want to add yours? asc apps wall submit --app "1234567890" --confirm

The command uses your authenticated gh session to fork the repo and open a pull request that updates docs/wall-of-apps.json. It resolves the public App Store name, URL, and icon from the app ID automatically. For manual entries that are not on the public App Store yet, use --link with --name. Use asc apps wall submit --dry-run to preview the fork, branch, and PR plan before creating anything.

Common Workflows

TestFlight feedback and crashes

asc testflight feedback list --app "123456789" --paginate
asc testflight crashes list --app "123456789" --sort -createdDate --limit 10
asc testflight crashes log --submission-id "SUBMISSION_ID"

Builds and distribution

asc builds upload --app "123456789" --ipa "/path/to/MyApp.ipa"
asc builds list --app "123456789" --output table
asc testflight groups list --app "123456789" --output table

For macOS TestFlight distribution, upload the exported .pkg first, then add the processed build to a beta group:

asc builds upload --app "123456789" --pkg "./build/MyMacApp.pkg" --version "1.2.3" --build-number "42" --wait --output json
asc builds add-groups --app "123456789" --build-number "42" --version "1.2.3" --platform MAC_OS --group "Internal Testers"

--app is the App Store Connect app ID. If you use local Xcode build flags such as --archive-path, also pass exactly one of --workspace or --project plus --scheme; otherwise use a pre-exported .ipa or .pkg upload. Add --submit --confirm to asc builds add-groups when distributing to an external TestFlight group that needs beta app review submission.

Release (high-level App Store publish flow)

# Optional: preview the staging plan before submission
asc release stage --app "123456789" --version "1.2.3" --build "BUILD_ID" --copy-metadata-from "1.2.2" --dry-run

# Canonical upload + attach + submit command
asc publish appstore --app "123456789" --ipa "/path/to/MyApp.ipa" --version "1.2.3" --submit --confirm

# Monitor status after submission
asc status --app "123456789" --watch

Lower-level submission lifecycle commands (for debugging or partial workflows):

# Canonical readiness check
asc validate --app "123456789" --version "1.2.3"
asc submit status --version-id "VERSION_ID"
asc submit cancel --version-id "VERSION_ID" --confirm

Review status and blockers

asc review status --app "123456789"
asc review doctor --app "123456789"

Metadata and localization

asc localizations list --app "123456789" --type app-info
asc metadata init --dir "./metadata" --version "1.2.3" --locale "en-US"
asc metadata apply --app "123456789" --version "1.2.3" --dir "./metadata" --dry-run
asc metadata keywords audit --app "123456789" --version "1.2.3" --blocked-terms-file "./blocked-terms.txt"
asc apps info view --app "123456789" --output json --pretty

Use asc metadata keywords audit before sync or apply when you want an ASO-focused review of live keyword metadata across locales. It reports duplicate phrases, repeated terms across locales, overlap with localized app name or subtitle, byte-budget usage, and optional blocked terms from repeated --blocked-term flags or a text file.

Screenshots and media

asc screenshots plan --app "123456789" --version "1.2.3" --review-output-dir "./screenshots/review"
asc screenshots apply --app "123456789" --version "1.2.3" --review-output-dir "./screenshots/review" --confirm
asc screenshots list --version-localization "VERSION_LOCALIZATION_ID"
asc video-previews list --app "123456789"

Uploading screenshots for a single locale:

asc apps list
asc versions list --app "APP_ID"
asc localizations list --version "VERSION_ID" --output json --locale "en-US" | jsonpp
asc screenshots upload --version-localization "VERSION_LOCALIZATION_ID" --path "./screenshots/en-US" --device-type "IPHONE_65" --replace --max-screenshots 10

VERSION_LOCALIZATION_ID is the App Store version localization resource ID from data[].id, not the locale code from attributes.locale.

Signing and bundle IDs

asc certificates list
asc profiles list
asc bundle-ids list

Workflow automation

asc workflow validate
asc workflow run --dry-run testflight_beta VERSION:1.2.3

Verified local Xcode -> TestFlight workflow

See docs/WORKFLOWS.md for a copyable .asc/workflow.json and ExportOptions.plist that use asc builds next-build-number, asc xcode archive, asc xcode export --timeout 10m, and asc publish testflight --group ... --wait. Add --submit --confirm when distributing to an external TestFlight group that needs beta app review submission.

asc workflow validate
asc workflow run --dry-run testflight_beta VERSION:1.2.3
asc workflow run testflight_beta VERSION:1.2.3

Xcode Cloud workflows and build runs

# Trigger from a pull request
asc xcode-cloud run --workflow-id "WORKFLOW_ID" --pull-request-id "PR_ID"

# Rerun from an existing build run with a clean build
asc xcode-cloud run --source-run-id "BUILD_RUN_ID" --clean

# Fetch a single build run by ID
asc xcode-cloud build-runs get --id "BUILD_RUN_ID"

Apple Ads campaign management

Apple Ads uses separate OAuth credentials from App Store Connect:

asc ads auth login --name "Marketing" --client-id "SEARCHADS_CLIENT_ID" --team-id "SEARCHADS_TEAM_ID" --key-id "KEY_ID" --private-key ./ads-key.pem --org "123456"
asc ads auth discover --output json
asc ads campaigns --org "123456" --limit 100 --output json
asc ads reports campaigns --org "123456" --file reporting-request.json --output json

See guides/apple-ads-playbooks.mdx for operator playbooks covering credential safety, org inspection, read-only smoke tests, reporting, raw API usage, and guarded mutations.

Commands and Reference

Use built-in help as the source of truth:

asc --help
asc <command> --help
asc <command> <subcommand> --help

Reference hierarchy:

  • asc --help: authoritative command and flag surface
  • docs/COMMANDS.md: generated top-level taxonomy map
  • asc docs show workflows: curated workflow recipes
  • asc docs show reference: repo-local quick reference template used by asc init

For full command families, flags, and discovery patterns, see:

Documentation

Acknowledgements

Local screenshot framing uses Koubou (pinned to 0.18.1) for deterministic device-frame rendering. GitHub: https://github.com/bitomule/koubou

Simulator UI automation for screenshot capture and interactions uses AXe CLI. GitHub: https://github.com/cameroncooke/AXe

Contributing

Contributions are welcome. See CONTRIBUTING.md for details.

License

MIT License - see LICENSE for details.

Star History

Star History Chart


This project is an independent, unofficial tool and is not affiliated with, endorsed by, or sponsored by Apple Inc. App Store Connect, TestFlight, Xcode Cloud, and Apple are trademarks of Apple Inc., registered in the U.S. and other countries.