Skip to content

SP-3478: Add config versions list command - #443

Merged
Buqeta (Buqeta) merged 2 commits into
mainfrom
sp-3478
Oct 27, 2026
Merged

Buqeta (Buqeta) merged 2 commits into
mainfrom
sp-3478

Conversation

@Buqeta

Copy link
Copy Markdown
Contributor

Description

Adds content-cli config versions list --packageKey <key> [--json], which lists all created versions of a package or a branch (<projectKey>@<branchKey>). Team-to-Team Copy needs it so users can pick which version of a CCM package or branch to copy; content-cli had no command that lists versions (config versions get returns a single version only).

  • Calls pacman's existing public endpoint GET /pacman/api/core/packages/{packageKey}/versions (PublicPackageVersionController.findAll, same canViewPackageVersions check as config versions get). No pacman change needed.
  • Console output prints one JSON line per version; a package without versions prints Package <key> has no versions. With --json, the list is written to a file (the form content-deployment-pipeline will read).
  • Documented in docs/user-guide/config-commands.md and added to docs/command-graph.html.

Relevant links

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
    • New config-version-list.spec.ts: lists versions; branch key with --json; empty list.
    • tests/integration/commands/configuration-management.spec.ts: CLI parsing passes the branch key and --json through; rejects a missing --packageKey.
    • 249 tests in tests/commands/configuration-management and the integration spec pass; tsc passes. Not run against a live tenant yet.
  • I have updated docs if needed

Co-Authored-By: Claude noreply@anthropic.com
Includes-AI-Code: true

Buqeta (Buqeta) and others added 2 commits October 26, 2026 17:20
List all created versions of a package or branch through pacman's public
versions endpoint.

Co-Authored-By: Claude <noreply@anthropic.com>
Includes-AI-Code: true
Co-Authored-By: Claude <noreply@anthropic.com>
Includes-AI-Code: true
@sonarqubecloud

Copy link
Copy Markdown

@Buqeta
Buqeta (Buqeta) marked this pull request as ready for review October 27, 2026 12:42
@Buqeta
Buqeta (Buqeta) requested a review from a team as a code owner October 27, 2026 12:42
@Buqeta
Buqeta (Buqeta) merged commit f18051f into main Oct 27, 2026
5 checks passed
@Buqeta
Buqeta (Buqeta) deleted the sp-3478 branch October 27, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants