Command referencegh extension list
gh extension list command (Linux & Windows / GitHub CLI)
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 / option | Meaning |
|---|---|
| (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.
Related commands
- gh configGet or set GitHub CLI configuration values such as git protocol and prompt behavior.
- gh apiMake authenticated HTTP requests to the GitHub REST or GraphQL API using your gh credentials.
- gh auth statusShow which GitHub accounts are logged in and whether credentials are valid for each host.
- gh auth loginAuthenticate the GitHub CLI with GitHub.com or GitHub Enterprise so other gh commands can run.
- gh pr createCreate a pull request from the current branch with title, body, reviewers, and base branch options.
- gh pr mergeMerge a pull request using merge commit, squash, or rebase strategies.
- gitTrack source history and collaborate through distributed repositories.
- gh repo cloneClone a GitHub repository to your machine using your authenticated gh settings.
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.