GitHub CLI manual GitHub CLI, or gh, is a command-line interface to GitHub for use in your terminal or your scripts. Available commands Usage examples Community extensions Installation You can find installation instructions on our README. Configuration Run gh auth login to authenticate with your GitHub account. Alternatively, gh will respect the GITHUB_TOKEN environment variable. To set your prefe