Update instance ports from the CLI - #447
Draft
callen-bot wants to merge 1 commit 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
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-anywherekindWhy
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.
Stack
brev ports lsbrev ports createValidation
go test -race ./pkg/cmd/ports ./pkg/cmdmake fmtcheck vet lintgo build -o /tmp/brev-port-restack-full-brev .ports,ports ls,ports create,ports update, andports close