gh run watch 123 --exit-status

Category: GitHub CLI

gh run watch 123 --exit-status

Watch a run and exit with its status

Polls the run until it finishes, streaming progress. --exit-status makes the command exit nonzero if the run failed, so CI wrapper scripts can gate on the result. Without it, gh always exits zero after watching.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.