Opens one or more local TCP tunnels to a running agent’s VM. Each tunnel binds a random local port and forwards traffic to the specified remote port on the VM. Keeps running until you press Ctrl-C.
Synopsis
Pass one or more port numbers. Each one creates a separate tunnel. The command prints the local port assigned to each tunnel on startup.
Arguments
The --insecure flag disables TLS on the tunnel connection. Only use it for local development when the tunnel endpoint does not have a certificate configured.
Examples
Forward a single port
Open http://localhost:54321 in your browser to reach the service running on port 8080 of the agent’s VM.
Forward multiple ports
Each remote port gets its own local port. Both tunnels stay open until you press Ctrl-C.
Forward a database port from another workspace
Errors