mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #243] Add Promoted Purchases CLI support #73
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#73
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 28, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/243
Overview
Add CLI support for Promoted Purchases, which allow promoting in-app purchases and subscriptions on the App Store. This enables full management of promoted purchases from the CLI with JSON-first output and explicit flags.
Scope
Primary resources from the OpenAPI spec:
promotedPurchases(list, get, create, update, delete)apps/{id}/promotedPurchases,apps/{id}/relationships/promotedPurchasessubscriptions/{id}/promotedPurchase,inAppPurchases/{id}/promotedPurchase(v2)Endpoints:
Proposed CLI
Top-level group:
asc promoted-purchases <subcommand> [flags]Subcommands (all support list/get/create/update/delete unless noted):
promoted-purchases list|get|create|update|deletepromoted-purchases link(link to app via relationships endpoint)Examples:
asc promoted-purchases list --app APP_IDasc promoted-purchases get --promoted-purchase-id PROMO_IDasc promoted-purchases create --app APP_ID --product-id PRODUCT_ID --product-type SUBSCRIPTIONasc promoted-purchases update --promoted-purchase-id PROMO_ID --visible-for-all-users trueasc promoted-purchases delete --promoted-purchase-id PROMO_ID --confirmasc promoted-purchases link --app APP_ID --promoted-purchase-id PROMO_IDFlag patterns
Common:
--app,--output,--pretty,--limit,--next,--paginate--confirmfor destructive operationsResource-specific examples:
--promoted-purchase-id--product-id,--product-type(SUBSCRIPTION or IN_APP_PURCHASE)--visible-for-all-users(boolean)--enabled(boolean)Output
--prettyfor JSON--output table/markdownfor list commandsAcceptance criteria
asc --helpandasc promoted-purchases --help--appfilter--paginate,--next,--limit)--confirmTests
Implementation notes
cmd/promoted_purchases.goandinternal/asc/client_promoted_purchases.gointernal/asc/output_promoted_purchases.gocmd/root.gointernal/asc/client_types.gocmd/apps.go,cmd/subscriptions.go, and output helpers ininternal/asc/output_*