mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 23:55:51 +03:00
[GH-ISSUE #52] Add TestFlight config pull (YAML) #13
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#13
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/52
Summary
Add a
testflight sync pullcommand that exports TestFlight configuration as YAML for a given app.API endpoints
GET /v1/apps/{id}(app info) — https://developer.apple.com/documentation/appstoreconnectapi/read_app_informationGET /v1/apps/{id}/betaGroups(groups + build assignments) — https://developer.apple.com/documentation/appstoreconnectapi/list_beta_groupsGET /v1/apps/{id}/builds(builds + group assignments) — https://developer.apple.com/documentation/appstoreconnectapi/list_buildsGET /v1/apps/{id}/betaTesters(testers + group memberships) — https://developer.apple.com/documentation/appstoreconnectapi/list_beta_testersCLI
asc testflight sync pull --app "APP_ID" --output "./testflight.yaml"--group,--build,--testerfor partial exportYAML schema (proposal)
app: id, name, bundleIdgroups: id, name, isInternalGroup, publicLinkEnabled, publicLinkLimit*, feedbackEnabled, builds[]builds: id, version, uploadedDate, processingState, groups[]testers: id, email, name, state, groups[]Output
Tests
@rudrankriyam commented on GitHub (Jan 23, 2026):
@cursor Please implement this issue.
Implementation Guide
This is an advanced feature that exports TestFlight config to YAML. It requires aggregating multiple API calls.
1. Create
cmd/testflight_sync.go2. Add Dependency
Add
gopkg.in/yaml.v3for YAML serialization:3. Define YAML Schema Types
4. Implementation Flow
5. CLI Flags
--app(required)--output(required, file path like./testflight.yaml)--include-builds(optional, include builds - can be large)--include-testers(optional, include testers - can be VERY large)--group(optional, filter to specific group)--pretty(for JSON summary output)6. Output Behavior
7. Testing
Unit tests:
Live API test:
8. File Writing Security
Use secure file writing (follow patterns from sandbox.go):
9. Sample Output YAML
10. Code Standards
make format && make lint && make testbefore committing@cursor[bot] commented on GitHub (Jan 23, 2026):
Summary:
asc testflight sync pullcommand group with YAML export, filtering, atomic file write, and JSON summary output.Tests:
make formatmake lintmake test@rudrankriyam commented on GitHub (Jan 23, 2026):
Implemented in PR #63 - TestFlight sync pull command now exports app, groups, builds, and testers to YAML.