GH-GIST-LIST(1)

πŸ’… GH-GIST-LIST is literally your gist roster, bestie πŸŽ€

okay so real talk: this is the gh gist list page from the GitHub CLI manual, and it's about to become your new favorite command. no cap.

✨ NAME ✨

gh-gist-list β€” List your gists. that's it, that's the whole vibe. πŸ‘‘

🌸 SYNOPSIS 🌸

gh gist list [flags]

πŸ¦‹ DESCRIPTION πŸ¦‹

List gists from your user account. all of them. your little gist children, lined up and accounted for 🫢

You can use a regular expression to filter the description, file names, or even the content of files in the gist using --filter. yes bestie, even the content β€” she's thorough like that πŸ’…

For supported regular expression syntax, see ⟨https://pkg.go.dev/regexp/syntax⟩. go read it, it's giving homework but make it slay ✨

Use --include-content to include content of files, noting that this will be slower and increase the rate limit used. ⚠️ lowkey important: slower + more rate limit, so don't just leave it on 24/7 like it's a personality trait. Instead of printing a table, code will be printed with highlights similar to gh search code:

{{gist ID}} {{file name}}
    {{description}}
        {{matching lines from content}}

No highlights or other color is printed when output is redirected. so if you pipe it somewhere, the ✨aesthetic✨ stays home and you get plain text. respect honestly πŸ™ˆ

πŸ’– OPTIONS πŸ’–

  • --filter <expression> β€” Filter gists using a regular expression. regex girlies rise 🧚
  • --include-content β€” Include gists' file content when filtering. more power, more slowness, more rate limit β€” you've been warned πŸ’€
  • -L, --limit <int> (default 10) β€” Maximum number of gists to fetch. default is 10, so don't act surprised when she stops at ten 🌸
  • --public β€” Show only public gists. for the main character energy πŸ‘‘
  • --secret β€” Show only secret gists. for the mysterious era πŸ•΅οΈβ€β™€οΈ

🌈 ALIASES 🌈

gh gist ls

yep, ls works too β€” because sometimes you just wanna type less, and honestly? valid.

⭐ EXIT CODES ⭐

  • 0: Successful execution. slay πŸ’…
  • 1: Error. it's giving ✨chaos✨ 😭
  • 2: Command canceled. you pressed Ctrl+C, we all saw it.
  • 4: Authentication required. go log in bestie, gh auth login is right there πŸ”‘
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. so like, read the other help pages too, iykyk 🫢

πŸ”₯ EXAMPLE πŸ”₯

# List all secret gists from your user account
$ gh gist list --secret

# Find all gists from your user account mentioning "octo" anywhere
$ gh gist list --filter octo --include-content

first one: all your secret gists. second one: anything mentioning octo anywhere, content included β€” she's searching everything, obsessed honestly πŸ“

πŸ’œ SEE ALSO πŸ’œ

gh-gist(1) β€” go read the parent page, it's the whole gist universe 🌌


okay that's the whole page, bestie β€” and for the record, this was GitHub CLI v2.102.0, dated Oct 2026. mwah, go list some gists πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from