Skip to content

Update instance ports from the CLI - #447

Draft
callen-bot wants to merge 1 commit into
agent/close-instance-portsfrom
codex/update-instance-ports
Draft

Update instance ports from the CLI#447
callen-bot wants to merge 1 commit into
agent/close-instance-portsfrom
codex/update-instance-ports

Conversation

@callen-bot

Copy link
Copy Markdown
Contributor

Summary

  • add brev ports update <instance-or-node> with an edit alias
  • select a mapping interactively or target its stable port_id with --id
  • update destination ports and source CIDRs, including clearing restrictions with --allow-anywhere
  • update HTTP origin protocol and public/authorized access policy
  • support managed instances and registered nodes with human-readable or JSON output

Why

The UI performs these mutations in place. Modeling update as close plus open would introduce downtime and could change the mapping ID, endpoint, or allocated public port.

Impact

Users and automation can change all port fields exposed by the UI while preserving the existing mapping identity and public endpoint. Multiple field groups use the API’s separate mutation RPCs in documented order and are not transactional.

Stack

Validation

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

@callen-bot
callen-bot force-pushed the codex/update-instance-ports branch from 4a20ced to 07f2473 Compare August 14, 2026 20:20
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