gh-help

display command documentation and usage

TLDR

Show general help
$ gh help
Get help for command
$ gh help [pr]
Get help for subcommand
$ gh help [pr] [create]
Show environment variables
$ gh help environment
List formatting options
$ gh help formatting

SYNOPSIS

gh help [command] [subcommand]

DESCRIPTION

gh help provides documentation for GitHub CLI commands. It displays usage information, available flags, examples, and related commands for any gh command or subcommand.The help system includes special topics like environment variables that affect gh behavior and formatting options for customizing output. Help content is built into the gh binary and available offline.gh help is essential for discovering command capabilities and correct usage.

PARAMETERS

COMMAND

Command to get help for.
SUBCOMMAND
Subcommand to get help for.
environment
Show environment variables.
formatting
Show output formatting options.
mintty
Show MinTTY configuration help.
--help
Display help information.

INSTALL

sudo apt install gh
sudo dnf install gh
sudo pacman -S github-cli
sudo apk add github-cli
sudo zypper install gh
brew install gh
nix profile install nixpkgs#gh

CAVEATS

Help content matches installed gh version. Online documentation may be more current. Some help topics are platform-specific.

HISTORY

gh help follows Unix man page conventions, providing comprehensive command documentation as part of the GitHub CLI.

SEE ALSO

gh(1), man(1)

RESOURCES

Documentation · Source code