Skip to content

Add ports command for instances and nodes - #441

Open
callen-bot wants to merge 1 commit into
mainfrom
agent/list-instance-ports
Open

Add ports command for instances and nodes#441
callen-bot wants to merge 1 commit into
mainfrom
agent/list-instance-ports

Conversation

@callen-bot

Copy link
Copy Markdown
Contributor

Summary

  • add brev ports <instance-or-node> for managed environments and registered nodes
  • display HTTP and TCP/UDP mappings in human-readable tables, with --json for automation
  • support registered-node IDs in addition to names and document the new command

Why

Port mappings available in the Brev console were not exposed through the CLI, making endpoint and access details harder to inspect from scripts and terminal workflows.

Impact

Users can now inspect endpoint, authorization/IP restrictions, public and destination ports, and protocol without leaving the CLI.

Validation

  • go test -race ./pkg/cmd/ports ./pkg/cmd/util ./pkg/cmd
  • make fmtcheck
  • make fast-build
  • make vet
  • make lint
  • manual brev ports <instance> verification

go test ./... was also attempted; existing environment-dependent tests fail on macOS in e2etest/setup, pkg/ssh, and pkg/store.

@callen-bot
callen-bot marked this pull request as ready for review August 10, 2026 21:33
@callen-bot
callen-bot requested a review from a team as a code owner August 10, 2026 21:33
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.

1 participant