gh repo view owner/repo --json name,description,stargazerCount

Category: GitHub CLI

gh repo view owner/repo --json name,description,stargazerCount

View repo metadata as JSON

Fetches repository fields such as name, description, and stargazerCount as JSON for scripting. stargazerCount is the star total, a rough popularity signal. Add --jq to format or filter the fields further.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.