Skip to content

add the 'arctl deploy' command#338

Merged
peterj merged 3 commits intomainfrom
peterj/adddeploymentscommand
Mar 16, 2026
Merged

add the 'arctl deploy' command#338
peterj merged 3 commits intomainfrom
peterj/adddeploymentscommand

Conversation

@peterj
Copy link
Copy Markdown
Contributor

@peterj peterj commented Mar 12, 2026

Description

adds the arctl deploy command -- the arctl [mcp/agent] deploy functionality is not in arctl deploy create command. This is the same functionality, just moved to another command.

The additional commands that were added:

  • arctl deploy list -- lists all deployments (managed and discovered)
  • arctl deploy delete -- deletes a deployment by ID
  • arctl deploy show -- shows the details of a deployment (including the URL if it's a local deployment)

Change Type

/kind feature

Changelog

adding the `arctl deployments` command

Additional Notes

The docs PR is here.

Copilot AI review requested due to automatic review settings March 12, 2026 22:20
@github-actions
Copy link
Copy Markdown

You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks!

@github-actions
Copy link
Copy Markdown

You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new top-level arctl deployments command (alias: arctl deploy) to manage agent and MCP deployments from a single command group, moving prior per-resource deploy functionality under deployments create and introducing additional deployment management subcommands.

Changes:

  • Registers a new deployments/deploy command group with create, list, show, and delete subcommands, and wires it into the CLI root with API client injection.
  • Removes the legacy arctl agent deploy and arctl mcp deploy commands and updates command-tree tests accordingly.
  • Updates e2e coverage to use deploy create and adds a basic deploy list verification after deployment creation.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
pkg/cli/root.go Wires the new deployments command group into the root CLI and passes the API client.
pkg/cli/commands_test.go Updates expected command tree to include deployments and adjusts subcommand counts.
internal/cli/mcp/mcp.go Removes registration of the legacy mcp deploy subcommand.
internal/cli/mcp/deploy.go Deletes the legacy MCP deploy command implementation (moved under deployments).
internal/cli/deployment/deployment.go Introduces the deployments command group and registers subcommands.
internal/cli/deployment/create.go Implements deployments create for agent/MCP deployments (moved/merged logic).
internal/cli/deployment/create_test.go Moves/renames tests to match the new deployment package and helper names.
internal/cli/deployment/list.go Implements deployments list with filters and redaction.
internal/cli/deployment/show.go Implements deployments show with table/JSON output and redaction.
internal/cli/deployment/delete.go Implements deployments delete and ID prefix resolution.
internal/cli/agent/deploy.go Deletes the legacy agent deploy command implementation (moved under deployments).
internal/cli/agent/agent.go Removes registration of the legacy agent deploy subcommand.
e2e/deploy_test.go Updates e2e flows to use deploy create and verifies deploy list includes the new deployment.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown

You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks!

peterj added 3 commits March 16, 2026 13:29
Signed-off-by: Peter Jausovec <[email protected]>
Signed-off-by: Peter Jausovec <[email protected]>
Signed-off-by: Peter Jausovec <[email protected]>
@peterj peterj force-pushed the peterj/adddeploymentscommand branch from 280c521 to 6ab7895 Compare March 16, 2026 20:29
@peterj peterj added this pull request to the merge queue Mar 16, 2026
Merged via the queue into main with commit 43df00d Mar 16, 2026
8 checks passed
@peterj peterj deleted the peterj/adddeploymentscommand branch March 16, 2026 21:02
@timflannagan timflannagan linked an issue Mar 26, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add arctl deployment <list|delete>

3 participants