Skip to content

Instantly share code, notes, and snippets.

@GregoryKogan
Last active September 30, 2025 17:07
Show Gist options
  • Select an option

  • Save GregoryKogan/02b131b0d797c8273988f3c64628f864 to your computer and use it in GitHub Desktop.

Select an option

Save GregoryKogan/02b131b0d797c8273988f3c64628f864 to your computer and use it in GitHub Desktop.
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:

Name:	file-scanner
Description:	A comprehensive C++ project demonstrating modern software engineering principles, implemented as a multithreaded malicious file scanner for a Kaspersky internship assignment.
URL:	https://github.com/GregoryKogan/file-scanner
Language:	C++

Name:	md5-lib
Description:	A production-grade, high-performance, and self-contained C++17 library for RFC 1321 MD5 hashing, featuring a modern streaming API for large files.
URL:	https://github.com/GregoryKogan/md5-lib
Language:	C++

Name:	hangman-helper
Description:	This is a little program, that should help you win in any hangman game.
URL:	https://github.com/GregoryKogan/hangman-helper
Language:	Vue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment