Watch GitHub Actions from your terminal with gh run watch

📖 1 minute read

Joel Clermont shared a great tip today about the GitHub CLI.

Instead of constantly refreshing the Actions tab in your browser, you can use:

“`bash
gh run watch –exit-status
“`

This gives you a live checklist in your terminal. The `–exit-status` flag is the key—it makes the CLI exit with a non-zero code if the run fails, which is perfect for chaining commands like:

“`bash
gh run watch –exit-status && say “Deploying!”
“`

Daryle De Silva

VP of Technology

11+ years building and scaling web applications. Writing about what I learn in the trenches.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *