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

# [NAME](#NAME)

gh-gist-view - View a gist

# [SYNOPSIS](#SYNOPSIS)

**gh gist view \[&lt;id&gt; | &lt;url&gt;] \[flags]**

# [DESCRIPTION](#DESCRIPTION)

View the given gist or select from recent gists.

# [OPTIONS](#OPTIONS)

[**--allow-escape-sequences**](#allow_escape_sequences)

Allow printing terminal escape sequences

[**-f**, **--filename** **&lt;string&gt;**](#f)

Display a single file from the gist

[**--files**](#files)

List file names from the gist

[**-r**, **--raw**](#r)

Print raw instead of rendered gist contents

[**-w**, **--web**](#w)

Open gist in the browser

# [EXIT CODES](#EXIT_CODES)

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.

# [SEE ALSO](#SEE_ALSO)

[**gh-gist(1)**](/man/os/gh/gh-gist.1)

Oct 2026

---

Document: gh-gist-view(1) from gh 2.103.2-r0 (Chainguard OS)
Source: https://github.com/cli/cli
