Skip to content

feat(cli): allow specifying the listen address in coder port-forward #7635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! feat(cli): allow specifying the listen address in `coder port-…
…forward`
  • Loading branch information
coadler committed May 22, 2023
commit ae1aeaa5a134b1b4e54360c17cbe458f166fde32
4 changes: 4 additions & 0 deletions cli/testdata/coder_port-forward_--help.golden
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ Aliases: tunnel

 $ coder port-forward <workspace> --tcp 8080,9000:3000,9090-9092,10000-10002:10010-10012 

- Port forward specifying the local address to bind to:

 $ coder port-forward <workspace> --tcp 1.2.3.4:8080:8080 

Options
-p, --tcp string-array, $CODER_PORT_FORWARD_TCP
Forward TCP port(s) from the workspace to the local machine.
Expand Down
4 changes: 4 additions & 0 deletions docs/cli/port-forward.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ coder port-forward [flags] <workspace>
- Port forward multiple ports (TCP or UDP) in condensed syntax:

$ coder port-forward <workspace> --tcp 8080,9000:3000,9090-9092,10000-10002:10010-10012

- Port forward specifying the local address to bind to:

$ coder port-forward <workspace> --tcp 1.2.3.4:8080:8080
```

## Options
Expand Down