Skip to main content

Command referencegh release list

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

Linux & WindowsGitHub CLIgitbeginner

What it does

List published GitHub releases for the repository. When people search for gh release 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 published GitHub releases for the repository.

Syntax

gh release list [flags]

Common options

Flag / optionMeaning
-L, --limitMaximum releases to list.
--exclude-draftsHide draft releases.
--exclude-pre-releasesHide prereleases.

Practical examples

Recent releases

gh release list

Shows tags, titles, and publication timing.

Stable only

gh release list --exclude-drafts --exclude-pre-releases

Filters toward production releases.

Common mistakes

  • Assuming list shows package registry versions — it lists GitHub Releases.
  • Forgetting drafts are hidden from some consumers until published.

FAQ

What does gh release list do in GitHub CLI?

List published GitHub releases for the repository.

Does gh release 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 release list example?

Try `gh release list` — Shows tags, titles, and publication timing.

Do I need a token in the command line for gh release 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.