mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #83] Add build-number helper commands #27
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#27
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 @rudrankriyam on GitHub (Jan 24, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/83
Summary
Add a convenience command to fetch the latest build for an app, optionally filtered by version string.
Rationale
While
asc builds list --app APP_ID --sort -uploadedDate --limit 1works, a dedicatedbuilds latestcommand provides a cleaner interface for CI/CD scripts and AI agents that frequently need the most recent build.Proposed CLI
Output (JSON by default)
Design Principles (AI-Agent Friendly)
--incrementor--numericflags; incrementing belongs in the calling script--outputnot--format, same flag names as other commandstestflight latest-build-number/appstore latest-build-numberAPI Endpoints
GET /v1/builds?filter[app]=...&sort=-uploadedDate&limit=1GET /v1/preReleaseVersions(for version filtering)Implementation Plan
BuildsLatestCommand()incmd/builds.goor new fileListBuildswith sort and limit parameters--versionfilter using preReleaseVersion relationshipTests
--app)Acceptance Criteria
asc builds latest --app APP_IDreturns latest build as JSON object--versionfilter works correctly--platformfilter works correctly--output table/markdownsupported