Text of cli.github.com › manual › gh_codespace_ports_forward as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

GitHub CLI | Take GitHub to the command line

CLI manual gh codespace ports forward gh codespace ports forward <remote-port>:<local-port>... [flags] Forward ports from a codespace to your local machine. Ports bind to loopback ( 127.0.0.1 ) by default. Use --all-interfaces to bind to all interfaces. Options --all-interfaces Listen on all network interfaces 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) See also gh codespace ports