Skip to main content
Opens a local port which connects to the instance. instance port-forward creates a tunnel from a local port to a port on a Namespace instance. This is useful for accessing services running inside an instance without exposing them publicly.

Usage

Example

Forward local port 8080 to port 80 on the instance:
Output

Options

—target_port <port>

Which port to forward to on the remote instance.
Last modified on August 20, 2026