docs: document multiple agents for port-forwarding (#21221)

Co-authored-by: Atif Ali <atif@coder.com>
This commit is contained in:
Bjorn Robertsson
2025-12-19 11:45:51 +00:00
committed by GitHub
co-authored by Atif Ali
parent 1de952b556
commit 5b3c24c02f
+8
View File
@@ -44,6 +44,14 @@ respective local ports.
coder port-forward myworkspace --tcp 3000,9990-9999
```
Forward the remote TCP port `3000` and all ports from `9990` to `9999` to their
respective local ports to the `agent` in your Workspace (typically main or dev).
This is needed when you have multiple agents in your workspace.
```console
coder port-forward myworkspace.agent --tcp 3000,9990-9999
```
For more examples, see `coder port-forward --help`.
## Dashboard