GH-GIST-VIEW(1) GitHub CLI manual GH-GIST-VIEW(1)

gh-gist-view - View a gist

gh gist view [<id> | <url>] [flags]

View the given gist or select from recent gists.

Display a single file from the gist
List file names from the gist
Print raw instead of rendered gist contents
Open gist in the browser

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.

gh-gist(1)

Jun 2025