Gh Issue
Use gh issue view to read issue details in the terminal quickly and consistently.
Quick Commands
Read an issue in terminal:
bash
gh issue view <number>
Read an issue with all comments:
bash
gh issue view <number> --comments
Open an issue in browser:
bash
gh issue view <number> --web
Read an issue outside the repo directory:
bash
gh issue view <number> --repo owner/repo
Skim only title and body:
bash
gh issue view <number> --json title,body --jq '.title, .body'
Workflow
- •Confirm the issue number.
- •Run
gh issue view <number>first. - •Add
--commentswhen full discussion history is needed. - •Add
--repo owner/repowhen not inside the target repository. - •Add
--webwhen interactive browser reading is preferred. - •Use
--json ... --jq ...for machine-friendly or minimal output.
Notes
- •Prefer terminal output by default.
- •Preserve exact CLI commands in responses when giving instructions.
- •If the command fails, check
gh auth statusand repository access.