GH-CODESPAC...S-VISIBILITY(1)
π gh-codespace-ports-visibility β the girlies' guide β¨
Okay so bestie, welcome to gh-codespace-ports-visibility β a page straight out of the GitHub CLI manual (that's the GH-CODESPAC...S-VISIBILITY(1) header up top, we're not copying it, we're referencing it π
). This is the little command that changes the visibility of the forwarded port on your codespace. That's it. That's the whole job. And honestly? Iconic.
π NAME π
gh-codespace-ports-visibility β change the visibility of the forwarded port. No cap, that's literally what it does. π¦
β¨ SYNOPSIS β¨
gh codespace ports visibility <port>:{public|private|org}... [flags]
Read it slow, bestie: you give it a <port>, a colon :, and then one of public, private, or org. And you can stack more than one of those <port>:{public|private|org} pairs β see the ...? That's the ellipsis of do it again, queen π. Plus [flags] at the end if you're feeling extra.
π OPTIONS INHERITED FROM PARENT COMMANDS π
These aren't even hers, she inherited them from her parent command and we respect the lineage π
-c,--codespace <string>β the Name of the codespace. Tell her which one, bestie, she's not a mind reader π.-R,--repo <string>β Filter codespace selection by repository name (user/repo). That's theuser/repoformat, not just the repo, okurrr π .--repo-owner <string>β Filter codespace selection by repository owner (username or org). You can drop a username or an org name in here, whichever you've got π«Ά.
π₯ EXIT CODES π₯
Vibe check on how it left the building πͺβ¨
0β Successful execution. She ate. ππ1β Error. Something went sideways, we move. π2β Command canceled. You (or the universe) hit the brakes π.4β Authentication required. Bestie. Log in. π
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. So like, these are the base game codes β some commands got DLC π
πΈ EXAMPLE πΈ
Here's the moment, the main character energy, the demonstration:
$ gh codespace ports visibility 80:org 3000:private 8000:public
Look at her go π§ β port 80 set to org, port 3000 set to private, port 8000 set to public. Three ports, one line, zero notes π.
π¦ SEE ALSO π¦
gh-codespace-ports(1)β her mothership, go say hi π«‘
and that's the whole page, bestie!! ππβ¨ This lore drop was brought to you by GitHub CLI v2.102.0, dated Oct 2026 β yes, from the future, we don't ask questions π . Love you, go forth and set your ports to whatever visibility your heart desires πππ
π¦ 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