mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #50] Add builds add/remove beta groups #12
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#12
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/50
Summary
Add commands to attach/detach beta groups to a build.
API endpoints
POST /v1/builds/{id}/relationships/betaGroups(add)DELETE /v1/builds/{id}/relationships/betaGroups(remove)CLI
asc builds add-groups --build "BUILD_ID" --group "GROUP_ID[,GROUP_ID...]"asc builds remove-groups --build "BUILD_ID" --group "GROUP_ID[,GROUP_ID...]"Output
--output table|markdown;--prettyfor JSON.Tests
@rudrankriyam commented on GitHub (Jan 23, 2026):
@cursor Please implement this issue.
Implementation Guide
1. Add Commands to
cmd/builds.goAdd two new subcommands to
BuildsCommand():2. Add Client Methods in
internal/asc/client.go3. CLI Flags
For
add-groups:--build(required, build ID)--group(required, comma-separated beta group IDs)For
remove-groups:--build(required, build ID)--group(required, comma-separated beta group IDs)4. Command Implementation
5. Testing
Unit tests in
cmd/commands_test.go:Client tests in
internal/asc/client_http_test.go:Live API test:
6. Use Case
This is how you distribute a build to TestFlight groups:
asc builds add-groups --build X --group Yto enable TestFlight for that group7. Success Output
8. Code Standards
strings.TrimSpace()on build ID and all group IDsparseCommaSeparatedIDs()helperRelationshipRequesttype from other implementationsmake format && make lint && make testbefore committing@cursor[bot] commented on GitHub (Jan 23, 2026):
Summary:
builds add-groupsandbuilds remove-groupscommands with JSON/table/markdown output and success messaging, plus a shared comma-separated ID parser.Tests:
make formatmake lintmake testNotes:
@rudrankriyam commented on GitHub (Jan 23, 2026):
Implemented in PR #58 - builds add-groups and remove-groups commands.