.nh .TH "GH-EVENT-SUBSCRIPTION-VIEW" "1" "Nov 2026" "" "GitHub CLI manual" .SH NAME gh-event-subscription-view - View an event subscription (preview) .SH SYNOPSIS \fBgh event subscription view [flags]\fR .SH OPTIONS .TP \fB-q\fR, \fB--jq\fR \fB\fR Filter JSON output using a jq expression .TP \fB--json\fR \fB\fR Output JSON with the specified fields .TP \fB-t\fR, \fB--template\fR \fB\fR Format JSON output using a Go template; see "gh help formatting" .SH JSON FIELDS \fBcreatedAt\fR, \fBeventTypes\fR, \fBeventsUrl\fR, \fBexpiresAt\fR, \fBid\fR, \fBresourceUrl\fR, \fBurl\fR .SH EXIT CODES 0: Successful execution .PP 1: Error .PP 2: Command canceled .PP 4: Authentication required .PP NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. .SH EXAMPLE .EX # View a subscription $ gh event subscription view sub_123 # Print when a subscription expires $ gh event subscription view sub_123 --json expiresAt --jq .expiresAt .EE .SH SEE ALSO \fBgh-event-subscription(1)\fR