gh issue view 5 --json number,title,labels,assignees

Category: GitHub CLI

gh issue view 5 --json number,title,labels,assignees

View issue fields as JSON for scripting

--json emits only the requested fields so scripts can consume them, with labels and assignees as nested arrays. Pipe into jq to build custom reports. Field names follow the GitHub API, so title is the issue's summary line.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.