CLI manual

gh exit-codes

gh follows normal conventions regarding exit codes.

NOTE: It is possible that a particular command may have more exit codes, so it is a good practice to check documentation for the command if you are relying on exit codes to control some behavior.

See also