Skip to main content

Command referencegh extension list

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

Linux & WindowsGitHub CLIgitbeginner

What it does

List installed GitHub CLI extensions on your machine. When people search for gh extension 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 installed GitHub CLI extensions on your machine.

Syntax

gh extension list

Common options

Flag / optionMeaning
(none)Lists installed extensions and their versions.

Practical examples

Show extensions

gh extension list

Prints installed gh extensions.

Install then list

gh extension install owner/gh-extra && gh extension list

Installs an extension and verifies it appears (use trusted sources only).

Common mistakes

  • Installing untrusted extensions that can run arbitrary code.
  • Expecting extensions to ship with gh by default — they are optional add-ons.

FAQ

What does gh extension list do in GitHub CLI?

List installed GitHub CLI extensions on your machine.

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

Try `gh extension list` — Prints installed gh extensions.

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