Skip to content

Add --category support to apm marketplace package add and set #2625

Description

@vicente-pastor-epam

Summary

Expose marketplace package categories through the apm marketplace package add
and apm marketplace package set commands.

Problem

The marketplace manifest supports category and tags on package entries, and
APM emits both in marketplace output when present. The CLI already exposes
--tags, but does not provide --category, forcing maintainers to edit
apm.yml manually for categories.

Categories should be supported through the same CLI workflow as tags.

Marketplace categories are catalog-owned metadata. They may intentionally differ
from a package's own category so each marketplace can apply its own discovery
taxonomy without changing the source package.

Proposed change

Add --category TEXT to:

  • apm marketplace package add
  • apm marketplace package set

Validate non-empty values with the existing marketplace schema and persist the
category on the target marketplace.packages[] entry, independently of any
category declared in the source package manifest.

Acceptance criteria

  • Both commands accept --category.
  • Invalid or blank categories fail with an actionable error.
  • The field is persisted in marketplace.packages[].
  • apm marketplace check and apm pack preserve and emit category and tags.
  • Command help and tests cover the new option.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/marketplacemarketplace.json schema, federation, authoring suite, source parity.area/package-authoringapm pack/unpack, plugin authoring, vendoring guidance, bundle format.priority/lowAccepted but not time-sensitivestatus/acceptedDirection approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).theme/governanceGoverned by policy. apm-policy, audit, enforcement, enterprise rollout.type/featureNew capability, new flag, new primitive.

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions