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

gh-event - Listen to GitHub events (preview)

gh event <command> [flags]

Listen to events on GitHub resources as they happen, instead of polling. Changes made before the listener starts are not reported, so read the resource once it is listening.

This is a preview, available on github.com to accounts enabled for event subscriptions.

gh-event-listen(1)
Wait for events on a specific resource
gh-event-subscription(1)
Manage event subscriptions (preview)

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.

gh(1)

Nov 2026