Skip to main content

This version of GitHub Enterprise was discontinued on 2023-01-18. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

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