Skip to content

Instantly share code, notes, and snippets.

View GregoryKogan's full-sized avatar
🙋‍♂️
Open for suggestions

Gregory Koganovsky GregoryKogan

🙋‍♂️
Open for suggestions
View GitHub Profile
@GregoryKogan
GregoryKogan / RepoList.md
Last active September 30, 2025 17:07
GitHub CLI command to get all user's repos in human readable format including (name, description, url and primary language)

GitHub CLI command to get all user's repos in human readable format including (name, description, url and primary language)

gh repo list <USERNAME> --limit 100 --json name,description,url,primaryLanguage --template '{{range .}}{{printf "Name:\t%s\n" .name}}{{printf "Description:\t%s\n" .description}}{{printf "URL:\t%s\n" .url}}{{if .primaryLanguage}}{{printf "Language:\t%s\n\n" .primaryLanguage.name}}{{else}}{{printf "Language:\tN/A\n\n"}}{{end}}{{end}}'

Replace <USERNAME> with an actual GitHub username.

Output should look something like this: