mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 07:35:48 +03:00
[GH-ISSUE #764] builds: add find subcommand for single-result build lookup by number (ergonomics) #206
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#206
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/764
Summary
Add a
builds findsubcommand that resolves a single build by its build number (CFBundleVersion) and returns the build ID and metadata with clear exit codes — as ergonomic sugar over the existingbuilds list --build-numberfilter.Context: What Already Works
The CLI already supports build-number lookup via:
This maps to
filter[version]on the/v1/buildsendpoint and returns matching builds. The internalfindBuildByNumber()helper ininternal/cli/shared/build_wait.goalso resolves builds by number (used byWaitForBuildByNumber()for upload polling).What's Missing (UX Gap)
builds list --build-numberreturns a list response (array), even when the intent is to find exactly one build. For agent workflows, the friction is:data[0]from the array and handle the empty-array casebuilds listexits 0 whether it finds 0 or 100 matches; agents can't use exit code to branch--app+--build-number+--versionfor precision — build numbers can repeat across marketing versions, so finding "build 28 of version 1.2.3" requires combining multiple flags that aren't obvious from--helpA dedicated
builds findwould provide:Proposal
Exit Codes
012--version/--platformto narrow)Flags
--appASC_APP_ID)--build-number--version--platform--outputImplementation
Can reuse existing
findBuildByNumber()frominternal/cli/shared/build_wait.go, or compose frombuilds list --build-numberwith single-result enforcement.Acceptance Criteria
asc builds find --app APP_ID --build-number 28returns a single build object (not array)--versionand--platformnarrow the lookupASC_BYPASS_KEYCHAIN=1Use Case
After uploading via external tools (xcodebuild, Xcode Cloud, etc.), agents need to reference the specific build they just uploaded by its known build number. Today this requires parsing array output from
builds list;builds findmakes it a one-liner with reliable exit codes.