mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 23:55:51 +03:00
[GH-ISSUE #765] publish testflight: add --build flag to distribute an already-uploaded build #209
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#209
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/765
Summary
Add a `--build` flag to `publish testflight` that skips the upload step and distributes an existing build, enabling the full publish workflow for builds uploaded externally.
Problem
`publish testflight` currently requires `--ipa` and always performs an upload (line 153 in `publish.go` calls `uploadBuildAndWaitForID()`). There is no way to use the command with a build that was already uploaded via:
This means the excellent post-upload workflow in `publish testflight` (wait for processing → add test notes → add to groups → notify testers) cannot be reused. Agents must manually replicate each step:
Proposal
Behavior
When `--build` or `--build-number` is provided instead of `--ipa`:
The `--ipa` flag becomes optional when `--build` or `--build-number` is provided. The two modes are mutually exclusive.
Flag Changes
Implementation
In `internal/cli/publish/publish.go`, the `testflight` handler should:
Acceptance Criteria
Use Case
Many teams use `xcodebuild -exportArchive -allowProvisioningUpdates` for uploads because it handles automatic signing and provisioning profile resolution better than standalone upload tools. These teams want to use `asc` for the distribution step without re-uploading. This flag bridges that gap and makes `publish testflight` the single command for TestFlight distribution regardless of how the build was uploaded.