tags:
- github
- git
permalink: what-is-github-cli
title: What is GitHub CLI?
date created: Monday, October 7th 2024, 9:34:09 am
date modified: Sunday, May 4th 2025, 11:44:55 am
GitHub CLI allows you to issue GitHub commands from your terminal.
Install.
brew install gh
Update.
brew update && brew upgrade gh
Authorize the application to connect to GitHub.
gh auth login
Use HTTPS for operations.
gh config set git_protocol https
If you receive errors when issuing commands, log into gh again and explicitly select HTTPS as the protocol: gh auth login
Refresh your authentication without logging in again.
gh auth refresh
Clone a repo.
gh repo clone owner/repository
List all PRs, open or closed.
gh pr list --state all
Update the active repository's description.
gh repo edit --description "😁 My repo description"
Change the active repository's visibility, accepting the consequences.
gh repo edit --visibility public --accept-visibility-change-consequences