gh-codespace-ports-forward(1)

GH-CODESPACE-PORTS-FORWARD(1) GitHub CLI manual GH-CODESPACE-PORTS-FORWARD(1)

NAME

gh-codespace-ports-forward - Forward ports

SYNOPSIS

gh codespace ports forward <remote-port>:<local-port>... [flags]

OPTIONS INHERITED FROM PARENT COMMANDS

-c, --codespace <string>
Name of the codespace

-R, --repo <string>
Filter codespace selection by repository name (user/repo)

--repo-owner <string>
Filter codespace selection by repository owner (username or org)

EXIT CODES

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

SEE ALSO

gh-codespace-ports(1)

Jul 2026 GitHub CLI v2.96.0