asc-cli-usage
rorkai/app-store-connect-cli-skills
Reference for using asc CLI to interact with App Store Connect via commands, flags, and authentication.
What is asc-cli-usage?
Guidance for running and designing asc commands to manage App Store Connect workflows. Use this skill when you need to discover commands, understand authentication options, format output, or interact with App Store Connect APIs through the CLI.
- Discover asc commands and flags using --help, search, schema inspection, and capability queries
- Authenticate via keychain, API keys, or Apple Account web sessions with proper credential handling
- Format output as table, JSON, or markdown with TTY-aware defaults and pagination support
- Design API-facing commands using canonical verbs (view, edit, create, set) and explicit long flags
- Manage Apple Ads resources separately with Platform API v1 and legacy Campaign Management API v5
- Configure request and upload timeouts via environment variables
How to install asc-cli-usage
npx skills add https://github.com/rorkai/app-store-connect-cli-skills --skill asc-cli-usage- asc CLI installed and available in PATH
- Apple Account or App Store Connect team API key for authentication
- Understanding of App Store Connect roles and permissions for the intended operations
How to use asc-cli-usage
- 1.Run `asc --help` to list available commands and global flags
- 2.Use `asc search "workflow description"` to find commands by intent when the command path is unknown
- 3.Authenticate with `asc auth login` (keychain) or set `ASC_KEY_ID`, `ASC_ISSUER_ID`, and `ASC_PRIVATE_KEY_PATH` environment variables
- 4.Run the target command with explicit long flags (e.g., `asc apps view --id APP_ID`)
- 5.Use `--output json` for automation or `--output table` for human-readable results
- 6.Add `--confirm` to destructive operations and `--paginate` when you need all result pages
Use cases
- Discover the correct asc command path when you know the workflow but not the exact command syntax
- Inspect App Store Connect API schemas before designing commands that interact with endpoints
- Set up and reuse authentication profiles for CI/CD pipelines or repeated operations
- Format command output for human readability (table/markdown) or machine parsing (JSON)
- Create and manage app availability, pricing, builds, and versions through the CLI
- DevOps engineers automating App Store Connect workflows
- iOS/macOS developers managing app releases and builds from the command line
- CI/CD pipeline maintainers integrating App Store Connect operations
- Teams using asc CLI for infrastructure-as-code app management
asc-cli-usage FAQ
Use `asc search "your workflow description"` for deterministic local discovery, or run `asc --help` and `asc <subcommand> --help` to explore the command tree. For API details, use `asc schema` to inspect endpoint schemas before designing commands.
Prefer keychain auth via `asc auth login`. Fallback to environment variables: `ASC_KEY_ID`, `ASC_ISSUER_ID`, `ASC_PRIVATE_KEY_PATH`, `ASC_PRIVATE_KEY`, or `ASC_PRIVATE_KEY_B64`. For web-only operations, use `asc web auth login` for Apple Account sessions. Apple Ads uses separate `asc ads auth` and `ASC_ADS_*` variables.
Output defaults are TTY-aware: `table` in interactive terminals, `json` when piped. Use `--output table` or `--output markdown` for human-readable output, and `--output json` for automation. Add `--pretty` only with JSON output.
Add the `--confirm` flag to destructive operations. For Apple Ads mutations, pause spend-bearing resources first, save all resource IDs, and test with paused resources that have clear test names.
Set `ASC_TIMEOUT` or `ASC_TIMEOUT_SECONDS` for request timeouts and `ASC_UPLOAD_TIMEOUT` or `ASC_UPLOAD_TIMEOUT_SECONDS` for uploads. After login, verify `authenticated` status with a separate status read. Do not assume sessions are permanent; Apple may expire them later.
Full instructions (SKILL.md)
Source of truth, from rorkai/app-store-connect-cli-skills.
name: asc-cli-usage description: Guidance for using asc cli in this repo (flags, output formats, pagination, auth, and discovery). Use when asked to run or design asc commands or interact with App Store Connect via the CLI.
asc cli usage
Use this skill when you need to run or design asc commands for App Store Connect.
Command discovery
- Always use
--helpto discover commands and flags.asc --helpasc builds --helpasc builds list --help
- Use
asc searchfor local, deterministic command discovery when you know the workflow but not the command path.asc search "submit app for review"asc search --output table "upload build"
- Use
asc schemato inspect bundled App Store Connect endpoint schemas and request/query fields before designing API-facing commands.asc schema --pretty "GET /v1/apps"asc schema --method POST appStoreVersions
- Use
asc capabilitiesto explain CLI-supported, partial, web-session, and public-API-limited workflow coverage.asc capabilities --area release --output tableasc capabilities --status web-session --output tableasc capabilities --status not-public-api --output markdown
Canonical verbs (current asc)
- Prefer
viewover legacygetaliases for read-only commands in docs and automation.asc apps view --id "APP_ID"asc versions view --version-id "VERSION_ID"asc pricing availability view --app "APP_ID"
- Prefer
editfor update-only availability surfaces and other canonical edit flows.asc pricing availability edit --app "APP_ID" --territory "USA,GBR" --available trueasc app-setup availability edit --app "APP_ID" --territory "USA,GBR" --available trueasc xcode version edit --build-number "42"
- Use
asc pricing availability createto initialize app availability before using the update-onlyeditcommand. If Apple rejects the public-API bootstrap, authenticate a web session and useasc web apps availability create, or configure Pricing and Availability in App Store Connect.asc pricing availability create --app "APP_ID" --territory "USA,GBR" --available true --available-in-new-territories trueasc web apps availability create --app "APP_ID" --territory "USA,GBR" --available-in-new-territories true
- Keep
setwhere the CLI intentionally models a higher-level replacement/configuration flow and--helpstill showssetas the canonical verb.
Flag conventions
- Use explicit long flags (e.g.,
--app,--output). - Prefer explicit flags in automation; some newer commands can prompt for missing fields when run interactively.
- Destructive operations require
--confirm. - Use
--paginatewhen the user wants all pages.
Output formats
- Output defaults are TTY-aware:
tablein interactive terminals,jsonwhen piped or non-interactive. - Use
--output tableor--output markdownonly for human-readable output. --prettyis only valid with JSON output.
Authentication and defaults
- Prefer keychain auth via
asc auth login. - Fallback env vars:
ASC_KEY_ID,ASC_ISSUER_ID,ASC_PRIVATE_KEY_PATH,ASC_PRIVATE_KEY,ASC_PRIVATE_KEY_B64. ASC_APP_IDcan provide a default app ID.- When permissions are unclear, inspect exact API key role coverage with
asc web auth capabilities.- This lives under the web-session auth surface.
- It can resolve the current local auth by default, or inspect a specific key with
--key-id.
- Create an App Store Connect team API key through a cached Apple Account web session with
asc web api-keys create.- An Account Holder or Admin session is required; use
asc web auth login --apple-id "user@example.com"first when needed. - The command saves the one-time P8 as
AuthKey_<KEY_ID>.p8without printing its contents; choose an explicit private directory with--output-dir. - Example:
asc web api-keys create --name "CI uploads" --role APP_MANAGER --output-dir "./keys" --output json.
- An Account Holder or Admin session is required; use
Reuse authentication before requesting another code
- API-key authentication (
asc auth) and Apple Account web sessions (asc web auth) are separate. Prefer the existing keychain API profile for supported operations; inspectasc auth statusand command capabilities before starting a web login. A profile name is a local label, not an app-level permission boundary. - For web-only work, check
asc web auth status --apple-id "user@example.com" --output jsonfirst. Reuse an authenticated cached session and verify its provider matches the intended account before mutations. Do not log out or clear trust/session state as routine preparation. - Give one process ownership of an interactive sign-in for an Apple Account. While a code prompt is pending, continue that same process; coordinate or serialize other agents instead of starting another login that may invalidate its challenge.
- Match a code to the current prompt. A trusted-device notification code and an SMS fallback code belong to different verification steps. Once the CLI announces phone delivery, use the newly delivered phone code, not the earlier notification code. Do not deliberately submit bad codes as a normal resend strategy; inspect the installed command's help for supported recovery.
- On failure, distinguish code rejection from a timeout after verification or provider selection. Inspect the exact error and installed version before requesting more codes. Increasing a request timeout is not proof that an interactive-session problem is fixed.
- After login, verify
authenticatedand the selected provider with a separate status read; confirm the next web operation reuses the cache before reporting success. Apple may expire sessions later, so do not promise permanent unattended authentication. - Inspect
asc web auth login --helpbefore configuring a supported--two-factor-code-command. Keep credentials and codes out of logs, source, shell history, and PRs. Do not assume a password-manager passkey can be supplied to the CLI or that browser sign-in refreshes its cache; use only authentication mechanisms explicitly supported by the installed CLI.
Apple Ads
- Use
asc ads --helpbefore choosing a command. - Apple Ads uses
asc ads auth,--ads-profile, andASC_ADS_*variables. It does not use App Store Connect API credentials. - Direct resource commands use Platform API v1 with
--ad-accountorASC_ADS_AD_ACCOUNT_ID. Deprecated Campaign Management API v5 commands live underasc ads v5and use--orgorASC_ADS_ORG_ID; never substitute one ID for the other. - Discover ad-account access with
asc ads auth discover --output jsonor inspect one ACL response withasc ads acls list --output json. - Body commands use
--filewith the exact schema named by the leaf help. V1 query filters use singularvalue, and bulk bodies may use wrapper objects rather than v5 arrays. - Apple Ads resource commands emit JSON. Use
--paginateonly where help shows it; reports and most query bodies carry pagination inside the JSON file. - Deletes and spend-, billing-, delivery-, targeting-, or access-sensitive mutations require
--confirm. An explicitly paused campaign create is the main documented safe exception. - For live mutation tests, create paused resources with a clear test name, save every ID, pause spend-bearing resources first, and delete only resources created by the test.
Timeouts
ASC_TIMEOUT/ASC_TIMEOUT_SECONDScontrol request timeouts.ASC_UPLOAD_TIMEOUT/ASC_UPLOAD_TIMEOUT_SECONDScontrol upload timeouts.
Related skills
More from rorkai/app-store-connect-cli-skills and the wider catalog.

asc-crash-triage
Triage TestFlight crashes, beta feedback, and performance diagnostics from App Store Connect.

asc-id-resolver
Resolve App Store Connect IDs from human-friendly names using the asc CLI.

asc-localize-metadata
Automatically translate and sync App Store metadata to multiple languages using LLM and asc CLI.

asc-metadata-sync
Sync and validate App Store metadata with canonical asc workflow for iOS apps.

asc-notarization
Archive, export, and notarize macOS apps with Developer ID signing for direct distribution.

asc-ppp-pricing
Set territory-specific pricing for subscriptions and in-app purchases using PPP strategies.