GH-EVENT-SUBSCRIPTION-VIEW(1) GitHub CLI manual GH-EVENT-SUBSCRIPTION-VIEW(1)

gh-event-subscription-view - View an event subscription (preview)

gh event subscription view <id> [flags]

Filter JSON output using a jq expression
Output JSON with the specified fields
Format JSON output using a Go template; see "gh help formatting"

createdAt, eventTypes, eventsUrl, expiresAt, id, resourceUrl, url

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.

# View a subscription
$ gh event subscription view sub_123
# Print when a subscription expires
$ gh event subscription view sub_123 --json expiresAt --jq .expiresAt

gh-event-subscription(1)

Nov 2026