mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #762] feat: add raw API passthrough command for arbitrary ASC API requests #207
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#207
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mithileshchellappan on GitHub (Feb 24, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/762
Summary
Add a generic API passthrough command (
asc api) that allows sending arbitrary authenticated requests to the App Store Connect API, similar togh apiin the GitHub CLI.Problem
The
ascCLI has excellent coverage of common ASC workflows, but agents occasionally need to hit endpoints that do not yet have dedicated subcommands, or need to use specific query parameters/relationships not yet exposed as flags.During a recent TestFlight distribution workflow, I needed to add a build to a beta group. The
asc testflight beta-groupssubcommand had noadd-buildsaction, andasc builds add-groupswas the correct path — but discovering this required trial and error across multiple subcommand trees. A raw API escape hatch would have resolved this immediately:Every major CLI tool provides this escape hatch:
gh apiaws <service> --cli-input-jsongcloud alpha api-gateway .../ raw RESTstripe get /v1/...Proposal
Flags
--body-for stdin)--query--header--paginatelinks.nextand collect all pages--outputjson(default),table--pretty--jqgh api --jq)Authentication
Reuse the existing
asc authcredential resolution — the command should automatically attach the JWT bearer token from the configured API key.Scope
internal/cli/api/api.go: new top-levelapicommandinternal/asc--jqflag for inline JSON filteringAcceptance Criteria
asc api GET /v1/appsreturns authenticated JSON responseasc api POST /v1/... --body '{...}'sends authenticated POST with bodyasc authconfiguration (API key, issuer, key ID)--paginatefollowslinks.nextand mergesdataarrays--prettyformats JSON outputASC_BYPASS_KEYCHAIN=1Use Case
This is the single most impactful feature for agent workflows. Agents frequently encounter edge cases where they need a specific API call that either:
Rather than blocking on a CLI release for each new endpoint,
asc apilets agents self-serve immediately while dedicated commands are built over time. It also serves as an excellent debugging and exploration tool for developers building on the ASC API.@rudrankriyam commented on GitHub (Feb 24, 2026):
As discussed, there are no new ones, and the tradeoff for the model to web search the endpoint is not worth it vs trying to figure it out itself