Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

GitHub CLI

GitHub CLI is a command-line tool that lets you interact with GitHub directly from your terminal. It brings core GitHub features—such as managing repositories, issues, pull requests, and workflow runs—into the shell, so you can perform common GitHub tasks without switching to a web browser. It’s maintained by GitHub and is open source, available for macOS, Windows, and Linux. [perplexity.ai]

GitHub CLI是一个命令行工具,让您可以直接从终端与GitHub互动。它将核心GitHub功能——如管理仓库、问题、拉取请求和工作流运行——集成到shell中,因此您可以在不切换到网页浏览器的情况下执行常见的GitHub任务。它由GitHub维护,开源,适用于macOS、Windows和Linux。 [perplexity.ai]

install

# Arch
sudo pacman -S github-cli
# Windows 10
scoop install gh

config

# Windows 10
set "GH_CONFIG_DIR=%USERPROFILE%\.config\gh"

usage

gh auth login
gh extension install <user/repo>
gh extension remove <user/repo>

cross-reference

mark

extra

resource

later

cache