GitHub CLI
GitHub CLI for pull requests, issues, repos, actions, and code review — all from your terminal.
74 commands
Browse by Topic
Getting Started
Quick setup and installation
Auth
Authentication
Repos
Repository management
Pull Requests
PR operations
Issues
Issue tracking
Workflows
GitHub Actions
Releases
Release management
Gists
Gist operations
Codespaces
Cloud development
API
GitHub API access
Install GitHub CLI (macOS)
Install GitHub CLI using Homebrew on macOS
Check GitHub CLI version
Verify GitHub CLI is installed and display the current version
Authenticate with GitHub
Start an interactive login flow to authenticate with GitHub
Login to GitHub
Authenticate with GitHub account interactively
Login with token
Authenticate using a personal access token from file
Login via web browser
Authenticate using web browser flow
Logout from GitHub
Remove authentication credentials
Refresh auth credentials
Refresh stored authentication credentials
Check auth status
View authentication status and active account
Print auth token
Print the auth token for the current account
Clone repository
Clone a GitHub repository to local machine
Create new repository
Create a new public GitHub repository
Create private repository
Create a new private GitHub repository
Delete repository
Delete a GitHub repository (requires confirmation)
Fork repository
Fork a repository and clone it locally
List repositories
List repositories for authenticated user
Rename repository
Rename the current repository
Sync fork with upstream
Sync a fork with its upstream repository
View repository
View repository details in terminal
Open repo in browser
Open repository in web browser
Checkout pull request
Check out a pull request branch locally
View PR checks
View status checks for a pull request
Close pull request
Close a pull request without merging
Create pull request
Create a new pull request interactively
Create draft PR
Create a draft pull request
Create PR with auto-fill
Create PR using commit info for title and body
View PR diff
View the diff of a pull request
List pull requests
List open pull requests in repository
Merge pull request
Merge a pull request
Squash merge PR
Squash and merge a pull request
Mark PR ready for review
Mark a draft PR as ready for review
Review pull request
Approve a pull request
View pull request
View pull request details
Open PR in browser
Open pull request in web browser
Close issue
Close an issue
Comment on issue
Add a comment to an issue
Create issue
Create a new issue interactively
Create issue with title
Create issue with specified title and body
Edit issue
Edit an existing issue
List issues
List open issues in repository
List my issues
List issues assigned to you
Reopen issue
Reopen a closed issue
View issue
View issue details
Download artifacts
Download artifacts from a workflow run
List workflow runs
List recent workflow runs
Rerun workflow
Rerun a failed workflow run
View workflow run
View details of a workflow run
Watch workflow run
Watch a workflow run until completion
List workflows
List GitHub Actions workflows
Run workflow
Trigger a workflow dispatch event
View workflow
View workflow details and recent runs
Create release
Create a new release with tag
Create release with auto notes
Create release with auto-generated notes
Delete release
Delete a release
Download release assets
Download release assets
List releases
List releases in repository
View release
View release details
Clone gist
Clone a gist locally
Create gist
Create a new gist from file
Create public gist
Create a public gist
Edit gist
Edit an existing gist
List gists
List your gists
View gist
View gist content
Open in VS Code
Open codespace in VS Code
Create codespace
Create a new codespace
Delete codespace
Delete a codespace
List codespaces
List your codespaces
SSH to codespace
SSH into a codespace
Stop codespace
Stop a running codespace
API GET request
Make GET request to GitHub API
GraphQL query
Execute GraphQL query against GitHub API
Paginate API results
Automatically paginate through all results
API POST request
Make POST request to GitHub API
Get repo info via API
Get repository information via API
Discussion
Loading comments...