.nh .TH "GH-CODESPACE-PORTS" "1" "Mar 2024" "" "GitHub CLI manual" .SH NAME .PP gh-codespace-ports - List ports in a codespace .SH SYNOPSIS .PP \fBgh codespace ports [flags]\fR .SH AVAILABLE COMMANDS .TP \fBgh-codespace-ports-forward(1)\fR Forward ports .TP \fBgh-codespace-ports-visibility(1)\fR Change the visibility of the forwarded port .SH OPTIONS .TP \fB-c\fR, \fB--codespace\fR \fB\fR Name of the codespace .TP \fB-q\fR, \fB--jq\fR \fB\fR Filter JSON output using a jq expression .TP \fB--json\fR \fB\fR Output JSON with the specified fields .TP \fB-R\fR, \fB--repo\fR \fB\fR Filter codespace selection by repository name (user/repo) .TP \fB--repo-owner\fR \fB\fR Filter codespace selection by repository owner (username or org) .TP \fB-t\fR, \fB--template\fR \fB\fR Format JSON output using a Go template; see "gh help formatting" .SH SEE ALSO .PP \fBgh-codespace(1)\fR