[PR #138] [MERGED] Add categories management commands (list and set) #322

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

📋 Pull Request Information

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

Base: mainHead: feature/categories


📝 Commits (1)

  • 4cec23d Add categories management commands (list and set)

📊 Changes

7 files changed (+350 additions, -0 deletions)

View changed files

📝 README.md (+12 -0)
cmd/categories.go (+153 -0)
📝 cmd/root.go (+1 -0)
internal/asc/categories.go (+144 -0)
internal/asc/categories_output.go (+35 -0)
📝 internal/asc/client_types.go (+1 -0)
📝 internal/asc/output_core.go (+4 -0)

📄 Description

Summary

Adds asc categories command with two subcommands for managing App Store categories.

Commands Added

# List all App Store categories
asc categories list
asc categories list --output table

# Set primary and secondary categories for an app
asc categories set --app APP_ID --primary GAMES
asc categories set --app APP_ID --primary GAMES --secondary ENTERTAINMENT

Production Testing

$ asc categories list --limit 5 --output table
ID                              PLATFORMS
STICKERS_EMOJI_AND_EXPRESSIONS  IOS
GAMES_ACTION                    IOS, MAC_OS, TV_OS, VISION_OS
BUSINESS                        IOS, MAC_OS, TV_OS, VISION_OS
WEATHER                         IOS, MAC_OS, TV_OS, VISION_OS
UTILITIES                       IOS, MAC_OS, TV_OS, VISION_OS

Files Changed

File Purpose
cmd/categories.go CLI commands for list and set
cmd/root.go Register CategoriesCommand
internal/asc/categories.go API client for categories
internal/asc/categories_output.go Table and markdown formatters
internal/asc/client_types.go Add ResourceTypeAppCategories
internal/asc/output_core.go Register output formatters
README.md Documentation

Use Cases

  1. Discover category IDs - List all valid categories before setting them
  2. Automate category updates - Set categories programmatically in CI/CD
  3. Bulk updates - Script category changes across multiple apps

Breaking Changes

None. This is an additive feature.


🤖 Generated with Claude Code


🔄 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/138 **Author:** [@cameronehrlich](https://github.com/cameronehrlich) **Created:** 1/25/2026 **Status:** ✅ Merged **Merged:** 1/25/2026 **Merged by:** [@rudrankriyam](https://github.com/rudrankriyam) **Base:** `main` ← **Head:** `feature/categories` --- ### 📝 Commits (1) - [`4cec23d`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/4cec23d65e746955171aadc25d96208c937d5c6a) Add categories management commands (list and set) ### 📊 Changes **7 files changed** (+350 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+12 -0) ➕ `cmd/categories.go` (+153 -0) 📝 `cmd/root.go` (+1 -0) ➕ `internal/asc/categories.go` (+144 -0) ➕ `internal/asc/categories_output.go` (+35 -0) 📝 `internal/asc/client_types.go` (+1 -0) 📝 `internal/asc/output_core.go` (+4 -0) </details> ### 📄 Description ## Summary Adds `asc categories` command with two subcommands for managing App Store categories. ### Commands Added ```bash # List all App Store categories asc categories list asc categories list --output table # Set primary and secondary categories for an app asc categories set --app APP_ID --primary GAMES asc categories set --app APP_ID --primary GAMES --secondary ENTERTAINMENT ``` --- ## Production Testing ✅ ``` $ asc categories list --limit 5 --output table ID PLATFORMS STICKERS_EMOJI_AND_EXPRESSIONS IOS GAMES_ACTION IOS, MAC_OS, TV_OS, VISION_OS BUSINESS IOS, MAC_OS, TV_OS, VISION_OS WEATHER IOS, MAC_OS, TV_OS, VISION_OS UTILITIES IOS, MAC_OS, TV_OS, VISION_OS ``` --- ## Files Changed | File | Purpose | |------|---------| | `cmd/categories.go` | CLI commands for list and set | | `cmd/root.go` | Register CategoriesCommand | | `internal/asc/categories.go` | API client for categories | | `internal/asc/categories_output.go` | Table and markdown formatters | | `internal/asc/client_types.go` | Add ResourceTypeAppCategories | | `internal/asc/output_core.go` | Register output formatters | | `README.md` | Documentation | --- ## Use Cases 1. **Discover category IDs** - List all valid categories before setting them 2. **Automate category updates** - Set categories programmatically in CI/CD 3. **Bulk updates** - Script category changes across multiple apps --- ## Breaking Changes None. This is an additive feature. --- 🤖 Generated with [Claude Code](https://claude.ai/code) --- <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:34 +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#322
No description provided.