gh-gist-view1
View a gist
Usage
gh gist
view
[{<id> | <url>}]
[flags]
Overview
View the given gist or select from recent gists.
Options
-
--allow-escape-sequences -
Allow printing terminal escape sequences
-
-f, --filename <string> -
Display a single file from the gist
-
--files -
List file names from the gist
-
-r, --raw -
Print raw instead of rendered gist contents
-
-w, --web -
Open gist in the browser
Exit status
0: Successful execution
1: Error
2: Command canceled
4: Authentication required
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.
Releases
3 releases since Debian 12 (Bookworm); the text changed 2 times.
--allow-escape-sequences since Arch Linux 2026-11-01.