[PR #224] [MERGED] feat: app-setup post-create automation #368

Closed
opened 2026-02-26 21:34:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/224
Author: @rudrankriyam
Created: 1/27/2026
Status: Merged
Merged: 1/27/2026
Merged by: @rudrankriyam

Base: mainHead: pr-194


📝 Commits (8)

  • 2029bb3 feat: add app-setup post-create commands
  • 50fe200 Fix app-setup categories app info selection
  • 25d9648 Merge pull request #230 from rudrankriyam/cursor/app-setup-command-issues-cb07
  • 044489d refactor categories set commands
  • f44acef Refactor availability and pricing set commands
  • 7001052 Remove unused app-setup import
  • 70be4d5 Merge pull request #238 from rudrankriyam/cursor/command-logic-consolidation-6416
  • 0caba2b Merge remote-tracking branch 'origin/main' into pr-194

📊 Changes

14 files changed (+1141 additions, -114 deletions)

View changed files

📝 README.md (+23 -0)
cmd/app_setup.go (+481 -0)
cmd/app_setup_test.go (+166 -0)
📝 cmd/categories.go (+51 -31)
📝 cmd/pricing.go (+186 -71)
📝 cmd/pricing_test.go (+5 -4)
📝 cmd/root.go (+1 -0)
📝 internal/asc/client_apps.go (+53 -0)
📝 internal/asc/client_http_test.go (+40 -0)
📝 internal/asc/client_pricing.go (+30 -2)
internal/asc/output_app_setup.go (+64 -0)
📝 internal/asc/output_core.go (+4 -0)
📝 internal/asc/pricing.go (+7 -4)
📝 internal/asc/pricing_test.go (+30 -2)

📄 Description

Summary

  • add asc app-setup command group for post-create automation (info, categories, availability, pricing, localizations)
  • support app updates and price schedule creation with base territory handling
  • add output helpers and tests for new workflows

Test plan

  • make test
  • Manual (ASC_BYPASS_KEYCHAIN=1):
    • go run . apps --limit 2 --output json
    • go run . app-setup info set --app 6747745091 --primary-locale "en-US" --output json
    • go run . app-setup categories set --app 6747745091 --primary GAMES --output json
    • go run . app-setup availability set --app 6740467361 --territory "USA" --available=true --available-in-new-territories=true --output json
    • go run . pricing price-points --app 6747745091 --territory "USA" --limit 1 --output json
    • go run . app-setup pricing set --app 6747745091 --price-point "eyJzIjoiNjc0Nzc0NTA5MSIsInQiOiJVU0EiLCJwIjoiMTAwMDAifQ" --base-territory "USA" --start-date "2026-01-27" --output json
    • go run . app-setup localizations upload --version "2a668936-a90d-4dc1-9103-5809ad0c88f5" --path "./app-setup-en-US.strings" --locale "en-US" --dry-run --output json

Notes

  • app-setup availability set still returns an ASC error about local-id format for inline territory availabilities.
  • app-setup pricing set requires a price point in the base territory and a start date aligned to current date; past/future dates produced API errors.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/224 **Author:** [@rudrankriyam](https://github.com/rudrankriyam) **Created:** 1/27/2026 **Status:** ✅ Merged **Merged:** 1/27/2026 **Merged by:** [@rudrankriyam](https://github.com/rudrankriyam) **Base:** `main` ← **Head:** `pr-194` --- ### 📝 Commits (8) - [`2029bb3`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/2029bb39ec0edc7bc7355b4692c4fa7d92f38368) feat: add app-setup post-create commands - [`50fe200`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/50fe200d47cd195fdc49ccd66d25ba8bae088471) Fix app-setup categories app info selection - [`25d9648`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/25d96482d2ddc41984eca7e7cc7d32ff9da643ba) Merge pull request #230 from rudrankriyam/cursor/app-setup-command-issues-cb07 - [`044489d`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/044489de5009e3aad5f78fbe80d201d8d40a6b8b) refactor categories set commands - [`f44acef`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/f44acef6a90d13c1f0aecef0ffd658d9215f7a01) Refactor availability and pricing set commands - [`7001052`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/70010521503cce00ef8a2d438904aa767ce93642) Remove unused app-setup import - [`70be4d5`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/70be4d536a81dc2e3bbec88718817d8aa55e223b) Merge pull request #238 from rudrankriyam/cursor/command-logic-consolidation-6416 - [`0caba2b`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/0caba2b74b15bf7822f36042b60a84551c88b7e2) Merge remote-tracking branch 'origin/main' into pr-194 ### 📊 Changes **14 files changed** (+1141 additions, -114 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+23 -0) ➕ `cmd/app_setup.go` (+481 -0) ➕ `cmd/app_setup_test.go` (+166 -0) 📝 `cmd/categories.go` (+51 -31) 📝 `cmd/pricing.go` (+186 -71) 📝 `cmd/pricing_test.go` (+5 -4) 📝 `cmd/root.go` (+1 -0) 📝 `internal/asc/client_apps.go` (+53 -0) 📝 `internal/asc/client_http_test.go` (+40 -0) 📝 `internal/asc/client_pricing.go` (+30 -2) ➕ `internal/asc/output_app_setup.go` (+64 -0) 📝 `internal/asc/output_core.go` (+4 -0) 📝 `internal/asc/pricing.go` (+7 -4) 📝 `internal/asc/pricing_test.go` (+30 -2) </details> ### 📄 Description ## Summary - add `asc app-setup` command group for post-create automation (info, categories, availability, pricing, localizations) - support app updates and price schedule creation with base territory handling - add output helpers and tests for new workflows ## Test plan - `make test` - Manual (ASC_BYPASS_KEYCHAIN=1): - `go run . apps --limit 2 --output json` - `go run . app-setup info set --app 6747745091 --primary-locale "en-US" --output json` - `go run . app-setup categories set --app 6747745091 --primary GAMES --output json` - `go run . app-setup availability set --app 6740467361 --territory "USA" --available=true --available-in-new-territories=true --output json` - `go run . pricing price-points --app 6747745091 --territory "USA" --limit 1 --output json` - `go run . app-setup pricing set --app 6747745091 --price-point "eyJzIjoiNjc0Nzc0NTA5MSIsInQiOiJVU0EiLCJwIjoiMTAwMDAifQ" --base-territory "USA" --start-date "2026-01-27" --output json` - `go run . app-setup localizations upload --version "2a668936-a90d-4dc1-9103-5809ad0c88f5" --path "./app-setup-en-US.strings" --locale "en-US" --dry-run --output json` ## Notes - `app-setup availability set` still returns an ASC error about local-id format for inline territory availabilities. - `app-setup pricing set` requires a price point in the base territory and a start date aligned to current date; past/future dates produced API errors. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 21:34:49 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/App-Store-Connect-CLI#368
No description provided.