GitHub CLI Cheat Sheet/Show gh version

Display installed GitHub CLI version and build info.

Section: Getting Started

Show gh version

bash
bash
gh --version
Explanation

Display installed GitHub CLI version and build info.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Getting Started
Open help for gh
Show top-level help and available command groups.
OpenIn sheetbashsame section
Show help for a subcommand
Open detailed help for a specific subcommand.
OpenIn sheetbashsame section
Authenticate interactively
Authenticate with GitHub using the default browser-based flow.
OpenIn sheetbashsame section
Authenticate to GitHub Enterprise
Authenticate against a GitHub Enterprise Server host.
OpenIn sheetbashsame section
Show auth status
Show which hosts are authenticated and how credentials are stored.
OpenIn sheetbashsame section
Refresh auth scopes
Refresh token scopes for an authenticated host.
OpenIn sheetbashsame section