[GH-ISSUE #400] Parity: App preview/screenshot sets by ID #113

Closed
opened 2026-02-26 21:33:30 +03:00 by kerem · 3 comments
Owner

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

Overview

Add direct lookup commands for app preview sets and screenshot sets by ID.

Scope (OpenAPI resources)

  • /v1/appPreviewSets/{id}
  • /v1/appScreenshotSets/{id}

Proposed CLI

  • asc localizations preview-sets get --id \"PREVIEW_SET_ID\"
  • asc localizations screenshot-sets get --id \"SCREENSHOT_SET_ID\"

Examples:

  • asc localizations preview-sets get --id \"PREVIEW_SET_ID\"
  • asc localizations screenshot-sets get --id \"SCREENSHOT_SET_ID\"

Flag patterns

Common: --id, --output, --pretty

Output

  • JSON minified by default
  • --pretty for JSON
  • --output table/markdown when supported

Detailed TODO

  • Add client methods in internal/asc for preview/screenshot set get-by-id
  • Add CLI subcommands under localizations preview-sets and screenshot-sets
  • Add HTTP client tests (mocked)
  • Add CLI cmdtests for flag validation + output

Acceptance criteria

  • Preview set and screenshot set can be fetched by ID
  • Command help and examples include new subcommands

Tests

  • Flag validation tests
  • HTTP client tests for each endpoint

Implementation notes

  • Keep naming consistent with existing localizations preview-sets and localizations screenshot-sets groups

References

  • docs/openapi/paths.txt
  • docs/openapi/latest.json

@cursor

Originally created by @rudrankriyam on GitHub (Feb 2, 2026). Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/400 # Overview Add direct lookup commands for app preview sets and screenshot sets by ID. # Scope (OpenAPI resources) - `/v1/appPreviewSets/{id}` - `/v1/appScreenshotSets/{id}` # Proposed CLI - `asc localizations preview-sets get --id \"PREVIEW_SET_ID\"` - `asc localizations screenshot-sets get --id \"SCREENSHOT_SET_ID\"` Examples: - `asc localizations preview-sets get --id \"PREVIEW_SET_ID\"` - `asc localizations screenshot-sets get --id \"SCREENSHOT_SET_ID\"` # Flag patterns Common: `--id`, `--output`, `--pretty` # Output - JSON minified by default - `--pretty` for JSON - `--output table/markdown` when supported # Detailed TODO - [ ] Add client methods in `internal/asc` for preview/screenshot set get-by-id - [ ] Add CLI subcommands under `localizations` preview-sets and screenshot-sets - [ ] Add HTTP client tests (mocked) - [ ] Add CLI cmdtests for flag validation + output # Acceptance criteria - [ ] Preview set and screenshot set can be fetched by ID - [ ] Command help and examples include new subcommands # Tests - Flag validation tests - HTTP client tests for each endpoint # Implementation notes - Keep naming consistent with existing `localizations preview-sets` and `localizations screenshot-sets` groups # References - `docs/openapi/paths.txt` - `docs/openapi/latest.json` @cursor
kerem closed this issue 2026-02-26 21:33:30 +03:00
Author
Owner

@rudrankriyam commented on GitHub (Feb 2, 2026):

@cursor implement this

<!-- gh-comment-id:3836615891 --> @rudrankriyam commented on GitHub (Feb 2, 2026): @cursor implement this
Author
Owner

@cursor[bot] commented on GitHub (Feb 2, 2026):

Summary:

  • I added App Store Connect client methods to fetch app preview/screenshot sets by ID and wired new asc localizations preview-sets get / asc localizations screenshot-sets get subcommands with updated help/examples.
  • I added HTTP client tests for the new endpoints plus CLI cmdtests for missing --id validation and output-format errors.

Tests run:

  • make test
  • go test -v ./internal/asc -run TestGetAppScreenshotSet
  • go test -v ./internal/cli/cmdtest -run TestLocalizationsMediaSets
  • go test -v ./internal/asc -run TestGetAppPreviewSet

Walkthrough artifacts:

  • Video localizations_preview_screenshot_set_get_tests shows running the screenshot-set + cmdtest Go tests and passing.
  • Video preview_set_get_test shows running the preview-set Go test and passing.

View PR
Open in Cursor Open in Web

<!-- gh-comment-id:3836616459 --> @cursor[bot] commented on GitHub (Feb 2, 2026): Summary: - I added App Store Connect client methods to fetch app preview/screenshot sets by ID and wired new `asc localizations preview-sets get` / `asc localizations screenshot-sets get` subcommands with updated help/examples. - I added HTTP client tests for the new endpoints plus CLI cmdtests for missing `--id` validation and output-format errors. Tests run: - `make test` - `go test -v ./internal/asc -run TestGetAppScreenshotSet` - `go test -v ./internal/cli/cmdtest -run TestLocalizationsMediaSets` - `go test -v ./internal/asc -run TestGetAppPreviewSet` Walkthrough artifacts: - Video `localizations_preview_screenshot_set_get_tests` shows running the screenshot-set + cmdtest Go tests and passing. - Video `preview_set_get_test` shows running the preview-set Go test and passing. <a href="https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/405"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/view-pr-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/view-pr-light.png"><img alt="View PR" width="86" height="28" src="https://cursor.com/assets/images/view-pr-light.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-596c953a-e460-4990-8bcd-fcfc9451f947"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-596c953a-e460-4990-8bcd-fcfc9451f947"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>
Author
Owner

@rudrankriyam commented on GitHub (Feb 2, 2026):

Completed in PR #405 (merged).

Added:

  • asc localizations preview-sets get --id "PREVIEW_SET_ID"
  • asc localizations screenshot-sets get --id "SCREENSHOT_SET_ID"
<!-- gh-comment-id:3837448958 --> @rudrankriyam commented on GitHub (Feb 2, 2026): Completed in PR #405 (merged). Added: - `asc localizations preview-sets get --id "PREVIEW_SET_ID"` - `asc localizations screenshot-sets get --id "SCREENSHOT_SET_ID"`
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#113
No description provided.