Skip to content

SP-38: Add new CLI commands for singe node operations#344

Merged
Buqeta (Buqeta) merged 5 commits intomainfrom
SP-38-add-new-cli-commands-for-single-node-operations
Apr 27, 2026
Merged

SP-38: Add new CLI commands for singe node operations#344
Buqeta (Buqeta) merged 5 commits intomainfrom
SP-38-add-new-cli-commands-for-single-node-operations

Conversation

@Buqeta
Copy link
Copy Markdown
Contributor

@Buqeta Buqeta (Buqeta) commented Apr 21, 2026

Description

Adds new CLI commands for single-node operations against the Pacman public API:

  • config nodes create --packageKey ... [--body <json> | -f <file>] [--validate] [--json] — creates a staging node. --validate calls the validate-only endpoint (no persistence) and exits with a success log if the payload is valid; otherwise fails.
  • config nodes update --packageKey ... --nodeKey ... [--body <json> | -f <file>] [--validate] [--json] — updates a staging node. --validate behaves the same as above.
  • config nodes delete --packageKey ... --nodeKey ... [--force] — archives a staging node.

Payload can be provided either inline via --body or from a file via -f/--file (mutually exclusive; one is required for create/update).

Relevant links

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
  • I have updated docs if needed

@Buqeta Buqeta (Buqeta) marked this pull request as ready for review April 21, 2026 12:37
@Buqeta Buqeta (Buqeta) requested a review from a team as a code owner April 21, 2026 12:37
Comment thread src/commands/configuration-management/module.ts Outdated
Comment thread src/commands/configuration-management/module.ts Outdated
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
60.6% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@Buqeta
Copy link
Copy Markdown
Contributor Author

Ignoring the coverage check, since it requires covering the transport files and the module.ts file, which doesn't make much sense.

@Buqeta Buqeta (Buqeta) merged commit 01c76d5 into main Apr 27, 2026
5 of 6 checks passed
@Buqeta Buqeta (Buqeta) deleted the SP-38-add-new-cli-commands-for-single-node-operations branch April 27, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants