mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #398] Please expose subscription period + grace period #112
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#112
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 @flutterrausch on GitHub (Feb 2, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/398
Sorry for not making a PR myself - never did one, no time RN. Hope this is good enough :)
The **API supports subscription period **, but the CLI doesn't expose it as a flag.
What the App Store Connect API actually supports
Looking at the internal structs in
asc:The
SubscriptionPeriodfield is there for create and update. Valid values (per Apple's API docs) are:ONE_WEEKONE_MONTHTWO_MONTHSTHREE_MONTHSSIX_MONTHSONE_YEARWhy the CLI doesn't expose it
The CLI command (
asc subscriptions create) only wires up these flags:The Go code passes
NameandProductIDto the API, but never setsSubscriptionPeriodeven though the struct supports it. This is simply an incomplete CLI implementation.What you CAN set up with asc today
Options to fix this
expose
--subscription-periodonsubscriptions createandsubscriptions update. It's a small change (add the flag and wire it to the struct).Grace period
Same thing I think, fixed to 14d would be alright.
@rudrankriyam commented on GitHub (Feb 2, 2026):
@cursor please implement this. Go through the openapi spec and add it
@cursor[bot] commented on GitHub (Feb 2, 2026):
Summary:
--subscription-periodintosubscriptions createandsubscriptions updatewith validation so the API request includes the chosen period (ONE_WEEK, ONE_MONTH, TWO_MONTHS, THREE_MONTHS, SIX_MONTHS, ONE_YEAR).subscriptions grace-periods updatewith opt-in/sandbox opt-in, duration, and renewal-type flags, and wired it to the update call.Testing:
make testWalkthrough artifact:
cli_subscription_period_grace_period_help_visible/recording_demo.mp4(showsgo run . subscriptions create --helpandgo run . subscriptions grace-periods update --helpwith the new flags).@rudrankriyam commented on GitHub (Feb 2, 2026):
Thanks for the report! This is now fixed in v0.23.5 (tagged release).
Changes included:
--subscription-periodtoasc subscriptions createandasc subscriptions update.asc subscriptions grace-periods updatefor opt-in, sandbox opt-in, duration, and renewal type.Note: the App Store Connect API currently rejects updates to
subscriptionPeriodon existing subscriptions ("SubscriptionPeriod cannot be updated.") — create supports it, update does not.Release: https://github.com/rudrankriyam/App-Store-Connect-CLI/releases/tag/0.23.5
@flutterrausch commented on GitHub (Feb 2, 2026):
Wow, you are the speed king, thanks a lot!
❤️