Connect to a running session
Connect to a running session by name. The session must already be running.
For desktop sessions, this creates a local TCP listener that proxies traffic to the session's WebSocket endpoint.
For tunnel sessions, this creates an SSH port forward to the session's remote host and port.
VS Code sessions are not supported by connect. Use pw session open to open in the browser or pw vscode for local VS Code.
Press Ctrl+C to disconnect. This does not stop the session.
pw session connect <session-name> [flags]
# Connect to a desktop session
pw session connect my-desktop
# Connect to a tunnel session on a specific local port
pw session connect --port 8080 my-tunnel
-h, --help help for connect
--port int Local port to use (0 = auto-select)
--context string The context to use. Overrides PW_CONTEXT environment variable and current context from config.
--platform-host string The Parallel Works ACTIVATE platform host to use. Will override any other platform host settings.
-v, --verbose Enable verbose logging