gh codespace ports visibility 3000:public -c cs-name

Category: GitHub CLI

gh codespace ports visibility 3000:public -c cs-name

Expose a codespace port publicly

Sets port 3000's visibility to public so anyone with the URL can reach the forwarded service, not just you. Choices are public, private, and org. Public exposure is for demos; keep development ports private.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.