GH-CODESPACE-PORTS(1)
β¨ gh-codespace-ports(1) β¨
okay so this is a page straight out of the GitHub CLI manual, bestie β like, gh-codespace-ports(1), the whole thing. it's the one that lists the ports in your codespace and honestly? it's giving networking but make it cute. π¦
π NAME
gh-codespace-ports β literally just: list ports in a codespace. that's the whole vibe. π
πΈ SYNOPSIS
gh codespace ports [flags]
that's it, that's the whole summoning ritual. β¨
π§ AVAILABLE COMMANDS
okay so this command has children and they're both icons in their own right:
gh-codespace-ports-forward(1)β forward ports. like sending your port on a little field trip π«Άgh-codespace-ports-visibility(1)β change the visibility of the forwarded port. who gets to see it? main character decisions only π
π₯ OPTIONS
every single flag, no skips, no cap:
-c,--codespace <string>β the name of the codespace. be specific, bestie π-q,--jq <expression>β filter the JSON output using ajqexpression. curly braces and vibes π--json <fields>β output JSON with the specified fields. pick your faves πΈ-R,--repo <string>β filter codespace selection by repository name, inuser/repoform. slay π₯--repo-owner <string>β filter codespace selection by repository owner β that's a username or an org, either one π¦-t,--template <string>β format the JSON output using a Go template; peepgh help formattingfor the tea β¨
π JSON FIELDS
these are the fields you can ask for, exactly and only these:
browseUrl, label, sourcePort, visibility
four little icons, no more no less π
β EXIT CODES
know the numbers, know yourself:
0β successful execution. we ate and left no crumbs π1β error. not the vibe π2β command canceled. nvm bestie π4β authentication required. log in, babes π
NOTE: specific commands may have additional exit codes. refer to the command's help for more information. iykyk π
π«Ά SEE ALSO
gh-codespace(1) β the parent, the icon, the moment. go say hi π
and that's the page!! closing credits real quick: this is from GitHub CLI v2.102.0, dated Oct 2026 β like, it's literally stamped and everything ππ keep it in your bookmarks, mwah π
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms