Skip to main content

lium port-forward

Forward a port from a pod to your local machine over the SSH tunnel.

lium port-forward TARGET PORT [OPTIONS]

Arguments​

  • TARGET — Pod name or index.
  • PORT — Internal pod port to forward.

Options​

FlagEffect
-l, --local-port PORTLocal port to bind (default: same as internal port)

Examples​

lium port-forward my-pod 8888                # Forward 8888:8888
lium port-forward my-pod 8888 -l 9000 # Forward 8888 → local 9000
lium port-forward 1 22 -l 2222 # SSH on a custom local port

The forward stays open until you Ctrl-C.

See also​