mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 23:55:51 +03:00
[GH-ISSUE #45] Add pre-release versions list/read commands #8
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#8
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 23, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/45
Summary
Add commands to list/read TestFlight pre-release versions.
API endpoints
GET /v1/apps/{id}/preReleaseVersions(list by app) — https://developer.apple.com/documentation/appstoreconnectapi/list_prerelease_versionsGET /v1/preReleaseVersions(list with filters) — https://developer.apple.com/documentation/appstoreconnectapi/list_prerelease_versionsGET /v1/preReleaseVersions/{id}(read) — https://developer.apple.com/documentation/appstoreconnectapi/read_prerelease_version_informationQuery support
filter[app](app ID)filter[platform](IOS, MAC_OS, TV_OS, VISION_OS)filter[version](version string)limit,links.next,--paginateCLI
asc pre-release-versions list --app "APP_ID" [--platform ...] [--version ...] [--limit ...] [--next ...] [--paginate]asc pre-release-versions get --id "PR_ID"Output
--output table|markdown;--prettyfor JSON.Tests
internal/ascclient query testscmd/commands_test.gofor CLI parsing + output@rudrankriyam commented on GitHub (Jan 23, 2026):
@cursor Please implement this issue.
Implementation Guide
1. Create
cmd/prerelease.goCreate a new command group for pre-release versions:
2. Add Client Methods in
internal/asc/client.goUse functional options pattern like
BetaGroupsOption:WithPreReleaseVersionsPlatform(platform string)WithPreReleaseVersionsVersion(version string)WithPreReleaseVersionsLimit(limit int)WithPreReleaseVersionsNextURL(next string)3. Register Command
Add
PreReleaseVersionsCommand()toRootCommand.Subcommandsincmd/commands.go.4. Flags
For
list:--app(required)--platform(IOS, MAC_OS, TV_OS, VISION_OS)--version(version string filter)--limit,--next,--paginate--output,--prettyFor
get:--id(required)--output,--pretty5. Testing
Unit tests in
cmd/commands_test.go:Client tests in
internal/asc/client_http_test.go:Live API test:
6. Output Formatters
Add table/markdown formatters following the pattern in
client.go:Table columns:
ID | Version | Platform7. Code Standards
strings.TrimSpace()on all inputsffclipatternsmake format && make lint && make testbefore committing@cursor[bot] commented on GitHub (Jan 23, 2026):
Summary:
asc pre-release-versionscommand group with list/get subcommands, flag validation, and output wiring.Tests:
make formatmake lintmake testNotes:
make formatinitially failed due to missinggofumpt; installedmvdan.cc/gofumpt@latestand reran.@rudrankriyam commented on GitHub (Jan 23, 2026):
Implemented in PR #59 - pre-release-versions list and get commands.