Skip to main content
Use devbox port-forward to forward TCP ports from a running Devbox to localhost. Keep the command running while you use the forwarded ports.

Usage

Without --ports, the command forwards ports configured by the Devbox. It exits without forwarding when neither the command nor the Devbox configuration supplies ports.

Forward matching local and remote ports

Remap a remote port

This maps local port 4000 to remote port 3000.

Options

string
Provide a comma-separated list of ports. Use local:remote to map different local and remote port numbers.
boolean
default:"false"
Include Devboxes owned by other workspace members when selecting a Devbox.

Remote development

Access services and development tools on a Devbox.
Last modified on August 28, 2026