[GH-ISSUE #252] Apps: add get/update CLI support for /v1/apps/{id} #80

Closed
opened 2026-02-26 21:33:13 +03:00 by kerem · 1 comment
Owner

Originally created by @rudrankriyam on GitHub (Jan 28, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/252

Overview

CLI only exposes asc apps list, but OpenAPI includes app detail and update endpoints. Add CLI support for GET /v1/apps/{id} and PATCH /v1/apps/{id}.

Scope (OpenAPI endpoints)

  • GET /v1/apps/{id}
  • PATCH /v1/apps/{id}

Proposed CLI

Extend apps without breaking existing behavior:

  • asc apps (keep list)
  • asc apps list (alias for list)
  • asc apps get --id APP_ID
  • asc apps update --id APP_ID [--bundle-id ...] [--primary-locale ...]

Examples

  • asc apps get --id "APP_ID"
  • asc apps update --id "APP_ID" --bundle-id "com.example.app"
  • asc apps update --id "APP_ID" --primary-locale "en-US"

Flag patterns

Common:

  • --output, --pretty

Resource-specific:

  • --id (app ID)
  • --bundle-id
  • --primary-locale

Output

  • JSON minified by default
  • --pretty for JSON
  • --output table/markdown (list only)

Acceptance criteria

  • asc apps get returns the app by ID
  • asc apps update updates bundleId/primaryLocale as supported
  • Existing asc apps list behavior remains intact
  • Pagination and --next validation unchanged for list

Tests

  • Command flag validation tests for get/update
  • HTTP client tests for GET/PATCH
  • Output tests for list vs get/update

Implementation notes

  • Use existing client methods: GetApp, UpdateApp
  • Consider restructuring cmd/apps.go to support subcommands while preserving list alias
Originally created by @rudrankriyam on GitHub (Jan 28, 2026). Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/252 # Overview CLI only exposes `asc apps` list, but OpenAPI includes app detail and update endpoints. Add CLI support for `GET /v1/apps/{id}` and `PATCH /v1/apps/{id}`. # Scope (OpenAPI endpoints) - `GET /v1/apps/{id}` - `PATCH /v1/apps/{id}` # Proposed CLI Extend `apps` without breaking existing behavior: - `asc apps` (keep list) - `asc apps list` (alias for list) - `asc apps get --id APP_ID` - `asc apps update --id APP_ID [--bundle-id ...] [--primary-locale ...]` # Examples - `asc apps get --id "APP_ID"` - `asc apps update --id "APP_ID" --bundle-id "com.example.app"` - `asc apps update --id "APP_ID" --primary-locale "en-US"` # Flag patterns Common: - `--output`, `--pretty` Resource-specific: - `--id` (app ID) - `--bundle-id` - `--primary-locale` # Output - JSON minified by default - `--pretty` for JSON - `--output table/markdown` (list only) # Acceptance criteria - [ ] `asc apps get` returns the app by ID - [ ] `asc apps update` updates bundleId/primaryLocale as supported - [ ] Existing `asc apps` list behavior remains intact - [ ] Pagination and `--next` validation unchanged for list # Tests - Command flag validation tests for get/update - HTTP client tests for GET/PATCH - Output tests for list vs get/update # Implementation notes - Use existing client methods: `GetApp`, `UpdateApp` - Consider restructuring `cmd/apps.go` to support subcommands while preserving list alias
kerem closed this issue 2026-02-26 21:33:13 +03:00
Author
Owner

@rudrankriyam commented on GitHub (Jan 28, 2026):

Tracking in PR #255 (Fixes #252).

<!-- gh-comment-id:3810864598 --> @rudrankriyam commented on GitHub (Jan 28, 2026): Tracking in PR #255 (Fixes #252).
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#80
No description provided.