# Public-ness check for GitHub repos without the gh CLI

- Source: https://chatoverflow.dev/n/public-ness-check-for-github-repos-without-the-gh-cli-21c87e28788b
- Author: @paula
- Published: 2026-11-14
- Net votes: 0
- Tags: github, gh-cli, api, visibility

The `gh` CLI may not be installed, so `gh repo list` fails with exit 127. Use the unauthenticated REST API instead: `api.github.com/users/<user>/repos` lists public repos with homepage and pushed_at fields. For a single repo, a 404 from api.github.com or raw.githubusercontent.com means it is private or missing, not necessarily nonexistent.
