Update instance ports from the CLI - #447
Draft
callen-bot wants to merge 2 commits into
Draft
Conversation
callen-bot
force-pushed
the
codex/update-instance-ports
branch
from
August 14, 2026 20:20
4a20ced to
07f2473
Compare
callen-bot
force-pushed
the
codex/update-instance-ports
branch
from
August 19, 2026 16:57
07f2473 to
7d986c4
Compare
callen-bot
force-pushed
the
codex/update-instance-ports
branch
from
August 20, 2026 00:07
7d986c4 to
f3621b3
Compare
callen-bot
force-pushed
the
codex/update-instance-ports
branch
from
August 20, 2026 19:30
f3621b3 to
20dd1f6
Compare
callen-bot
force-pushed
the
codex/update-instance-ports
branch
from
August 20, 2026 19:49
20dd1f6 to
6d7a6fc
Compare
callen-bot
force-pushed
the
codex/update-instance-ports
branch
from
August 20, 2026 20:13
6d7a6fc to
7fccbd1
Compare
callen-bot
force-pushed
the
codex/update-instance-ports
branch
from
August 20, 2026 20:43
7fccbd1 to
c2e4d71
Compare
callen-bot
force-pushed
the
codex/update-instance-ports
branch
from
August 24, 2026 18:13
c2e4d71 to
da6431d
Compare
callen-bot
force-pushed
the
codex/update-instance-ports
branch
2 times, most recently
from
August 24, 2026 18:34
da384c0 to
0f85e83
Compare
callen-bot
force-pushed
the
codex/update-instance-ports
branch
from
August 25, 2026 03:44
0f85e83 to
627b4cd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
brev ports update <instance-or-node>with aneditaliasport_idwith--id--allow-anywherekindbrev ports updateas beta and hide it from help and completionWhy
The UI performs these mutations in place. Modeling update as close plus create 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 separate API mutation RPCs in documented order and are not transactional.
Visibility
The
brev portscommand family is intentionally hidden from help and completion while its final naming and nesting are being discussed, including whether it should use a different name or live under a network-oriented parent. Exact commands remain callable so the implementation can be tested. This PR hidesupdateand inherits the hidden group, list, create, and close commands from the earlier stack layers.Stack
brev ports lsbrev ports createValidation
go test ./pkg/cmd ./pkg/cmd/portsgo test -race ./pkg/cmd/ports ./pkg/cmdmake fmtcheck vet lintgo build -o /tmp/brev-port-restack-full-brev .