GCLI-GISTS(1)
π GCLI-GISTS β the girlies' guide to gcli gists π
okay so bestie, this is section 1 of the manual, and it's all about gcli gists β the command that manages your GitHub Gists. yes, the whole thing, listed, made, grabbed, deleted. let's get into it π«Ά
β¨ NAME β¨
gcli gists β manage GitHub Gists π
π SYNOPSIS π
gcli gists [-s] [-l] [-n n] [-u user]
gcli gists create [-d description] [-f path] gist-file-name
gcli gists delete [-y] gist-id
gcli gists get gist-id file-name
π¦ DESCRIPTION π¦
Use gcli gists to list, create, download or delete GitHub Gists. that's the whole vibe, four jobs, one command, iconic.
Without a subcommand specified, gcli gists will list the Gists of the given β or auto-detected β user account. so if you just type it and hit enter, it's gonna snoop around and figure out whose gists you mean. lowkey smart of it fr fr.
πΈ OPTIONS πΈ
these are the top-level options, bestie, the ones for when you're just listing:
-l,--longβ print a long list instead of a short table. more deets, more rows, more to look at π-s,--sortedβ reverse the output so the most recent items appear at the bottom instead of the top. yes, it flips it like that.-u,--userowner β list the Gists belonging to the given user. you point, it fetches.-n,--countn β fetch at least n gists. setting n to-1will fetch all gists. default:30.
β οΈ heads up bestie: on users with many gists, fetching all gists can take a considerable amount of time and may result in rate limiting by the GitHub API. so likeβ¦ maybe don't just yolo -1 on a legend's account. π
π SUBCOMMANDS π
π create π
Paste a new Gist. the following flags can be specified:
-f,--filefile β read the content from the specified file instead of standard input. no piping required, she takes a path π-d,--descriptiondescription β the description of the Gist to be created. give your gist a little blurb, a lil name tag.
π delete π
Delete a Gist. the following options can be specified:
-y,--yesβ do not ask for confirmation before deleting the Gist. assume yes. this one is the "no take-backsies, just do it" flag. use it with care, bestie.
π§ get π§
Download a file from a Gist. there are no options to this subcommand. it's just built different (simple). periodt.
β EXAMPLES β
List neutaaaaan's Gists:
$ gcli gists -u neutaaaaan
Paste a new gist named foobar and read from foobar.txt:
$ gcli gists create foobar < foobar.txt
Delete gist with id 3b546069d2856e6051bbe3c1080f1b5d:
$ gcli gists delete 3b546069d2856e6051bbe3c1080f1b5d
Print foobar.txt from Gist with id 3b546069d2856e6051bbe3c1080f1b5d into your pager:
$ gcli gists get 3b546069d2856e6051bbe3c1080f1b5d foobar.txt | $PAGER
π₯ SEE ALSO π₯
git(1), gcli(1) β go read those too, they're the supporting cast π«Ά
π AUTHORS π
Nico Sonack aka. herrhotzenplotz <nsonack@herrhotzenplotz.de> and contributors. absolute legends. main character energy, no cap. π
π BUGS π
This subcommand only works on GitHub. it is not implemented for GitLab, as GitLab snippets work differently. so like, don't come for it, it simply doesn't do that. π
Please report bugs via E-Mail to:
https://lists.sr.ht/~herrhotzenplotz/gcli-discuss
Alternatively you can report them on any of the forges linked at:
https://sr.ht/~herrhotzenplotz/gcli
However, the preferred and quickest method is to use the mailing list. iykyk. β¨
π and that's the whole page bestie!! this was gcli gists, from gcli 2.13.0, dated 05-Aug-2026. go forth and gist responsibly π
πβ¨
π¦ where this page comes from
- nixpkgs unstable: gcli 2.13.0
- ubuntu stonking: gcli 2.13.0-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms