mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #199] Add App Pre-Orders CLI support #63
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#63
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 26, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/199
Originally assigned to: @rudrankriyam on GitHub.
Overview
Add CLI support for App Pre‑Orders so users can configure pre‑order availability, release dates, and end pre‑orders using the public App Store Connect API.
Docs (API)
Scope (Endpoints)
The pre‑order flow is built on app availability and territory availability resources:
POST /v2/appAvailabilities(create/replace territory availabilities with pre‑order fields)PATCH /v1/territoryAvailabilities/{id}(update release date / pre‑order enabled per territory)POST /v1/endAppAvailabilityPreorders(end pre‑order and release immediately)GET /v1/apps/{id}/appAvailabilityV2GET /v1/appAvailabilityV2/{id}/territoryAvailabilitiesProposed CLI
Top‑level group:
asc pre-orders <subcommand> [flags]Subcommands:
pre-orders get --app APP_IDpre-orders list --app APP_ID(alias of get, but returns territory rows)pre-orders enable --app APP_ID --territory "USA,GBR" --release-date YYYY-MM-DDpre-orders update --territory-availability AVAILABILITY_ID --release-date YYYY-MM-DDpre-orders disable --territory-availability AVAILABILITY_ID(setpreOrderEnabled=false)pre-orders end --availability APP_AVAILABILITY_ID --confirm(end pre‑order globally)Flags
Common:
--output json|table|markdown--prettyEnable/update:
--release-daterequired, validateYYYY-MM-DD--territoryrequired forenable(comma‑separated)End:
--confirmrequiredOutput
available,releaseDate,preOrderEnabledper territoryAcceptance Criteria
asc pre-orders --helpavailableendAppAvailabilityPreorders)Tests
Manual Test Plan (using real apps)
asc apps --paginate→APP_IDasc pricing availability get --app APP_ID→APP_AVAILABILITY_IDasc pricing availability territory-availabilities --availability APP_AVAILABILITY_IDasc pre-orders enable --app APP_ID --territory "USA" --release-date "2026-02-15"asc pre-orders update --territory-availability TERR_AVAIL_ID --release-date "2026-02-20"asc pre-orders disable --territory-availability TERR_AVAIL_IDasc pre-orders end --availability APP_AVAILABILITY_ID --confirmImplementation Notes
pricing availabilityclient types (TerritoryAvailabilityCreatesupportsreleaseDate+preOrderEnabled).cmd/pre_orders.goor extendcmd/pricing.gowith a dedicatedpre-ordersgroup.@rudrankriyam commented on GitHub (Jan 27, 2026):
Closed as fixed by #225, #229, #236. PRs: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/225, https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/229, https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/236