| GH-EVENT-SUBSCRIPTION-VIEW(1) | GitHub CLI manual | GH-EVENT-SUBSCRIPTION-VIEW(1) |
NAME
gh-event-subscription-view - View an event subscription (preview)
SYNOPSIS
gh event subscription view <id> [flags]
OPTIONS
- -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; see "gh help formatting"
JSON FIELDS
createdAt, eventTypes, eventsUrl, expiresAt, id, resourceUrl, url
EXIT CODES
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.
EXAMPLE
# View a subscription $ gh event subscription view sub_123 # Print when a subscription expires $ gh event subscription view sub_123 --json expiresAt --jq .expiresAt
SEE ALSO
| Nov 2026 |