gh issue view
View an issue
Synopsis
Display the title, body, and other information about an issue.
With '--web', open the issue in a web browser instead.
gh issue view {<number> | <url>} [flags]
Options
-c, --comments View issue comments
-q, --jq expression Filter JSON output using a jq expression
--json fields Output JSON with the specified fields
-t, --template string Format JSON output using a Go template
-w, --web Open an issue in the browser
Options inherited from parent commands
--help Show help for command
-R, --repo [HOST/]OWNER/REPO Select another repository using the [HOST/]OWNER/REPO format
In use
In terminal
By default, we will display items in the terminal.
# Viewing an issue in terminal
~/Projects/my-project$ gh issue view 21
Issue title
opened by user. 0 comments. (label)
Issue body
View this issue on GitHub: https://github.com/owner/repo/issues/21
~/Projects/my-project$
In the browser
Quickly open an item in the browser using --web or -w
# Viewing an issue in the browser
~/Projects/my-project$ gh issue view 21 --web
Opening https://github.com/owner/repo/issues/21 in your browser.
~/Projects/my-project$

