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