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>(default10) β Maximum number of gists to fetch. default is10, 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 loginis 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
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms