Skip to content

Open instance ports from the CLI - #442

Draft
callen-bot wants to merge 1 commit into
agent/list-instance-portsfrom
agent/open-instance-port
Draft

Open instance ports from the CLI#442
callen-bot wants to merge 1 commit into
agent/list-instance-portsfrom
agent/open-instance-port

Conversation

@callen-bot

Copy link
Copy Markdown
Contributor

Summary

  • add brev ports open <instance-or-node> <port> with add as an alias
  • support TCP, UDP, and SSH protocols plus repeatable --allow <CIDR> source restrictions
  • print the allocated mapping as a table or stable JSON and document the workflow in the Brev CLI skill

Why

PR #441 exposes existing port mappings in the CLI, but users still have to switch to the console to open one. This stacked follow-up mirrors the console raw-port flow for managed instances and registered compute nodes.

Impact

Users can expose a destination port without leaving the terminal, choose the protocol, restrict inbound sources, and consume the allocated public mapping in scripts.

Stack

Validation

  • go test -race ./pkg/cmd/ports ./pkg/cmd/util ./pkg/cmd
  • make fmtcheck
  • make fast-build
  • make vet
  • make lint

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