This version of GitHub Enterprise will be discontinued on 2022-02-16. 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

Did this doc help you?

Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.