CLI Documentation
Port forward
port-forward
Forward ports from a workspace to the local machine. For reverse port forwarding, use “wirtual ssh -R”.
Aliases:
- tunnel
Usage
Description
Options
-p, —tcp
Type | string-array |
Environment | $WIRTUAL_PORT_FORWARD_TCP |
Forward TCP port(s) from the workspace to the local machine.
—udp
Type | string-array |
Environment | $WIRTUAL_PORT_FORWARD_UDP |
Forward UDP port(s) from the workspace to the local machine. The UDP connection has TCP-like semantics to support stateful UDP protocols.
—disable-autostart
Type | bool |
Environment | $WIRTUAL_SSH_DISABLE_AUTOSTART |
Default | false |
Disable starting the workspace automatically when connecting via SSH.