Skip to main content

Command referencegh issue list

gh issue list command (Linux & Windows / GitHub CLI)

Linux & WindowsGitHub CLIgitbeginner

What it does

List issues in the current or specified GitHub repository with filters. When people search for gh issue list, they usually want practical GitHub CLI flags, safe examples, and how this subcommand fits everyday PR and repo workflows on Linux, Windows, and macOS. Syntax, options, and copyable examples are below.

List issues in the current or specified GitHub repository with filters.

Syntax

gh issue list [flags]

Common options

Flag / optionMeaning
-s, --stateFilter by open, closed, or all.
-a, --assigneeFilter by assignee login.
-l, --labelFilter by label.
-S, --searchSearch query string.
-L, --limitMaximum issues to list.
-w, --webOpen the issues page in a browser.

Practical examples

Open issues

gh issue list

Lists open issues for the current repository.

By label

gh issue list --label bug

Shows open issues tagged bug.

Assigned to me

gh issue list --assignee @me

Filters to issues assigned to the authenticated user.

Search text

gh issue list -S "crash report"

Uses GitHub search syntax within issues.

Common mistakes

  • Forgetting `-s all` when looking for recently closed issues.
  • Running outside a git repo without `-R OWNER/REPO`.

FAQ

What does gh issue list do in GitHub CLI?

List issues in the current or specified GitHub repository with filters.

Does gh issue list work on Windows and Linux?

Yes. The GitHub CLI (`gh`) runs on Linux, Windows, and macOS with the same subcommand syntax after you authenticate with `gh auth login`.

What is a practical gh issue list example?

Try `gh issue list` — Lists open issues for the current repository.

Do I need a token in the command line for gh issue list?

Prefer `gh auth login` so credentials stay in the system keyring or secure storage. Avoid pasting personal access tokens into shell history.

Browse the full Linux and Windows command reference to search more bash, CMD, PowerShell, Conda, and GitHub CLI commands.