GitHub/CLI
ghcommand- Manual | GitHub CLI
- announced in early 2020
Installation
brew install ghAuthentication
gh auth login- quick start, global- GitHub/Auth/OAuth/Scope — OAuth scope catalog; add scopes with
gh auth refresh -h github.com -s <scope>(e.g. GitHub/Auth/OAuth/Scope/workflow) - GitHub/Auth/OAuth — normalization,
gh auth status, minimum scopesrepo,read:org,gist - GitHub/CLI/EnvVar/GH_TOKEN
Alternatively, populate the GH_TOKEN environment variable with a GitHub API authentication token.- See also GitHub/CLI/Q/Is it possible to scope gh CLI permissions by directory or repo
Extensions
157 Linked References
Hierarchy
- GitHubCLIEnvVarGH_TOKEN
- GitHubCLIExtension
- GitHubCLIExtensiongh-issue-dependency
- GitHubCLIExtensiongh-sub-issue
- GitHubCLIgh
- GitHubCLIghapi
- GitHubCLIghapi-q
- GitHubCLIghbrowse
- GitHubCLIghgl2gh
- GitHubCLIghissuedevelop
- GitHubCLIHow to create a Fine Grained Personal Access Token
- GitHubCLIHow toCreate a Gist on GitHub from the command line
- GitHubCLIHow toUpdate an Issue from a local markdown file
- GitHubCLIproject
- GitHubCLIQIs it possible to scope gh CLI permissions by directory or repo
- GitHubCLIQIs there a way to use gh search repos and also filter by repos I've starred?
- GitHubCLIQIs there any way with the gh cli to open the github pages site associated with a given repo, something like gh repo view --web, but for the github page?
- GitHubCLIQTo what extent can I use the gh CLI and its auth tokens to supplant ssh as a method for using git?
- GitHubCLIQUsing the gh cli, is there a quick way to list repositories with globs for user and repo name?
- GitHubCLIQWhat's the most idiomatic way to use gh search repos while also displaying primary language and number of stars in a table?