GitHub CLI Issues and Actions

Issue triage plus GitHub Actions workflows, runs, secrets, variables, and caches.

View
StandardDetailedCompact
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all

Issues

Create, edit, assign, and close issues.

List issues

List open issues.

bashANYissuelist
bash
gh issue list
Notes

List open issues.

View an issue

Show issue details.

bashANYissueview
bash
gh issue view 123
Notes

Show issue details.

Create an issue

Create an issue with title and body.

bashANYissuecreate
bash
gh issue create --title "Bug: login fails" --body "Steps to reproduce..."
Notes

Create an issue with title and body.

Create issue with labels and assignee

Create an issue with metadata.

bashANYissuecreate
bash
gh issue create --title "Upgrade Node" --label tech-debt --assignee @me
Notes

Create an issue with metadata.

Edit an issue

Edit issue labels, assignees, and milestone.

bashANYissueedit
bash
gh issue edit 123 --add-label bug --remove-label needs-triage
Notes

Edit issue labels, assignees, and milestone.

Comment on an issue

Add an issue comment.

bashANYissuecomment
bash
gh issue comment 123 --body "Investigating now."
Notes

Add an issue comment.

Close an issue

Close an issue and leave a comment.

bashANYissueclose
bash
gh issue close 123 --comment "Fixed in #456"
Notes

Close an issue and leave a comment.

Reopen an issue

Reopen a closed issue.

bashANYissuereopen
bash
gh issue reopen 123
Notes

Reopen a closed issue.

Pin an issue

Pin an issue in the repository.

bashANYissuepin
bash
gh issue pin 123
Notes

Pin an issue in the repository.

Unpin an issue

Unpin a previously pinned issue.

bashANYissuepin
bash
gh issue unpin 123
Notes

Unpin a previously pinned issue.

Lock an issue

Lock issue conversation.

bashANYissuelock
bash
gh issue lock 123 --reason resolved
Notes

Lock issue conversation.

Unlock an issue

Unlock issue conversation.

bashANYissuelock
bash
gh issue unlock 123
Notes

Unlock issue conversation.

Show issue status

Show issues assigned to you, mentioned, or created by you.

bashANYissuestatus
bash
gh issue status
Notes

Show issues assigned to you, mentioned, or created by you.

Create a label

Create a repository label.

bashANYlabelcreate
bash
gh label create "customer-impact" --color FF0000 --description "Affects customers"
Notes

Create a repository label.

Clone labels from another repo

Copy labels from another repository.

bashANYlabelclone
bash
gh label clone octo-org/source-repo
Notes

Copy labels from another repository.

Delete a label

Delete a label without prompting.

bashANYlabeldelete
bash
gh label delete "old-label" --yes
Notes

Delete a label without prompting.

GitHub Actions and Workflows

List, run, rerun, and inspect workflows and runs.

List workflows

List workflows in the current repository.

bashANYactionsworkflow
bash
gh workflow list
Notes

List workflows in the current repository.

View workflow details

Show details for a workflow.

bashANYactionsworkflow
bash
gh workflow view "CI"
Notes

Show details for a workflow.

Trigger a workflow

Dispatch a workflow with inputs.

bashANYactionsworkflowdispatch
bash
gh workflow run deploy.yml -f environment=staging
Notes

Dispatch a workflow with inputs.

Enable a workflow

Enable a disabled workflow.

bashANYactionsworkflow
bash
gh workflow enable deploy.yml
Notes

Enable a disabled workflow.

Disable a workflow

Disable a workflow.

bashANYactionsworkflow
bash
gh workflow disable deploy.yml
Notes

Disable a workflow.

List workflow runs

List recent workflow runs.

bashANYactionsrun
bash
gh run list --limit 50
Notes

List recent workflow runs.

View a run

Show status and jobs for a workflow run.

bashANYactionsrun
bash
gh run view 123456789
Notes

Show status and jobs for a workflow run.

View run log

Print logs for a workflow run.

bashANYactionsrunlogs
bash
gh run view 123456789 --log
Notes

Print logs for a workflow run.

Watch a run live

Follow a workflow run until completion.

bashANYactionsrunwatch
bash
gh run watch 123456789
Notes

Follow a workflow run until completion.

Download run artifacts

Download artifacts for a workflow run.

bashANYactionsrunartifacts
bash
gh run download 123456789 -D ./artifacts
Notes

Download artifacts for a workflow run.

Rerun failed jobs

Rerun failed jobs from a workflow run.

bashANYactionsrunrerun
bash
gh run rerun 123456789 --failed
Notes

Rerun failed jobs from a workflow run.

Cancel a run

Cancel an in-progress workflow run.

bashANYactionsruncancel
bash
gh run cancel 123456789
Notes

Cancel an in-progress workflow run.

List Actions caches

List GitHub Actions caches.

bashANYactionscache
bash
gh cache list
Notes

List GitHub Actions caches.

Delete an Actions cache

Delete an Actions cache by key.

bashANYactionscache
bash
gh cache delete my-key
Notes

Delete an Actions cache by key.

List repo secrets

List Actions secrets for the repo.

bashANYactionssecret
bash
gh secret list
Notes

List Actions secrets for the repo.

Set repo secret

Create or update a repository secret from stdin.

bashANYactionssecret
bash
gh secret set AWS_ACCESS_KEY_ID < aws_access_key_id.txt
Notes

Create or update a repository secret from stdin.

List Actions variables

List repository variables.

bashANYactionsvariable
bash
gh variable list
Notes

List repository variables.

Set repository variable

Create or update a repository variable.

bashANYactionsvariable
bash
gh variable set APP_ENV --body production
Notes

Create or update a repository variable.

Recommended next

No recommendations yet.