GitHub/CLI/Q/Is there a way to use gh search repos and also filter by repos I've starred?
Is there a way to use
gh search reposand also filter by repos I've starred?AI Answer
- AI/Response
- Short answer: No —
gh search reposuses the GitHub search API which has no "starred by me" qualifier. Usegh api /user/starredinstead. gh search reposflags include--owner,--language,--stars,--topic, etc., but there is no--starredflag and the underlying GitHub search API does not expose a "repos I've starred" filter.- Alternative:
gh api /user/starred- bash
gh api /user/starred --paginate \ --jq '.[] | [.full_name, .language, (.stargazers_count | tostring)] | @tsv' \ | column -t - This hits the REST
GET /user/starredendpoint, which returns all repos you have starred (paginated). --paginatefetches all pages automatically; omit it to get only the first 30.
- Combining both — if you want to search within your starred repos by keyword, there is no single command. The closest workaround is:
- See gh api — GitHub CLI Manual and GitHub REST docs: List repositories starred by the authenticated user.
- Short answer: No —
- AI/Response