GH-GIST-VIEW(1)
π gh-gist-view(1) β the GitHub CLI manual, but make it cute
okay so bestie, welcome to the gh-gist-view page from the GitHub CLI manual β this is the one that lets you peek at a gist without ever leaving your terminal. yes ma'am, no browser tab chaos required (unless you want the browser, and honestly? we love options). π
β¨ NAME β¨
gh-gist-view β view a gist, that's it, that's the whole vibe π«Ά
πΈ SYNOPSIS πΈ
gh gist view [<id> | <url>] [flags]
π¦ DESCRIPTION π¦
so you run this and it shows you the gist you asked for β easy. and if you're feeling indecisive and don't give it a specific one? it literally lets you select from your recent gists instead. main character energy: you don't have to remember the id, the id finds you. π
β¨ OPTIONS β¨
--allow-escape-sequencesβ Allow printing terminal escape sequences. yes, for real, they're letting the escape sequences through β only turn this on if you trust what's coming π-f,--filename <string>β Display a single file from the gist. one file, one moment, no scrolling through the whole thing, we love a focused queen π--filesβ List file names from the gist. just the names, just the lineup, a little gist table of contents π-r,--rawβ Print raw instead of rendered gist contents. no glow-up, no formatting, just the raw truth, ngl some of us prefer it that way π-w,--webβ Open gist in the browser. for when you want the full experience with the pretty UI π
π§ EXIT CODES π§
like, your exit code is basically the vibe check your command hands back when it's done. here's the legend:
0: Successful execution β she ate, no notes β¨1: Error β something went wrong, we're crying about it π2: Command canceled β you (or the universe) hit the brakes π4: Authentication required β you gotta log in first, bestie, the door is locked π
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. so basically don't assume this list is the whole story for every command, check the help if you're curious π
π SEE ALSO π
gh-gist(1)β the mothership, the whole gist command family, go say hi π«Ά
and that's the page!! this little beauty is from GitHub CLI v2.102.0, dated Oct 2026 β screenshot it, frame it, tattoo it, whatever, it's iconic. mwah πβ¨
π¦ 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