Skip to main content

GitHub CLI reference

You can view all of the GitHub CLI commands in your terminal or in the GitHub CLI manual.

To view all top-level GitHub CLI commands, see the GitHub CLI manual or call gh without arguments.

gh

To list all commands under a specific group, use the top-level command without arguments. For example, to list commands for managing repositories:

gh repo

To view the environment variables that can be used with GitHub CLI, see the GitHub CLI manual or use the environment command.

gh environment

To view the configuration settings that can be used with GitHub CLI, see the GitHub CLI manual or use the config command.

gh config