incus.port-forward(1)

Incus - Command line client(1) Incus - Command line client(1)

NAME

incus-port-forward - Forward a local TCP port to the instance

SYNOPSIS

incus port-forward [:] [flags]

DESCRIPTION

Description:
Forward a local TCP port to the instance

This runs a local TCP listener and forwards every connection made to it
to the given address and port inside of the instance.

Both ports can be prefixed with an address to use ("ADDRESS:PORT"),
defaulting to 127.0.0.1 otherwise. IPv6 addresses must be wrapped in
square brackets (e.g. "[::1]:80").

OPTIONS INHERITED FROM PARENT COMMANDS

--debug[=false] Show all debug messages

--explain[=false] If the command is valid, explain its parsed arguments instead of running it

--force-local[=false] Force using the local unix socket

-h, --help[=false] Print help

--project="" Override the source project``

-q, --quiet[=false] Don't show progress information

--sub-commands[=false] Use with help or --help to view sub-commands

-v, --verbose[=false] Show all information messages

--version[=false] Print version number

EXAMPLE


incus port-forward c1 80 8080
Forward local port 8080 to port 80 inside of the instance.
incus port-forward c1 10.0.3.1:443 0.0.0.0:8443
Forward port 8443 on all local addresses to 10.0.3.1:443 inside of the instance.

SEE ALSO

incus(1)

HISTORY

28-Aug-2026 Auto generated by spf13/cobra

Aug 2026 Auto generated by spf13/cobra