GitHub CLI extensions¶
- ID
gh-ext- Links
- Upstream stars
⭐ 46,451
- Last commit
2026-09-29
- Version requirement
>= 2
- Platforms
🐧 Linux · 🍎 macOS · 🪟 Windows
- Operations
installed·search·install·upgrade·upgrade_all·remove- purl types
pkg:gh-ext/- CLI name
gh- Issues and PRs
- Source
This is a real, 100%-config-defined manager: mpm loads it from this file at startup
through the very same schema and parser a user’s own [mpm.overrides.<id>] section
goes through, dogfooding the configuration-defined-manager feature on a genuine
cross-platform CLI.
mpm identifies each extension by its owner/repo slug: it is the only id both
reported by gh extension list and accepted by every extension subcommand, so ids
round-trip cleanly through install, remove, upgrade and backup/restore.
What mpm adds to gh-ext¶
Through mpm, gh-ext gains --exact and --extended search, to narrow to exact names or match descriptions.
Bigger still, mpm reaches across every manager at once: mpm installed and mpm outdated cover gh-ext alongside every other manager you run in one table, mpm upgrade --all updates them together, and mpm sbom exports the whole machine as one bill of materials.
Every mpm command also gains --dry-run and --plan previews, cross-scheme version comparison and purl identifiers. See manager augmentations for how each one is built.
Your gh-ext commands, in mpm¶
You already know gh-ext: each operation maps one-to-one onto mpm, in an interface shared by every manager.
To… |
With |
With |
|---|---|---|
List what’s installed |
|
|
Search for a package |
|
|
Install a package |
|
|
Upgrade one package |
|
|
Upgrade everything |
|
|
Remove a package |
|
|
Prefix any command above with --dry-run to simulate the underlying manager calls without touching the system: the safe way to watch what mpm would do before trusting it.
Operations¶
Operation |
Supported |
Notes |
|---|---|---|
|
✅ |
|
|
||
|
||
|
✅ |
Exact and extended search backfilled by |
|
✅ |
|
|
✅ |
|
|
✅ |
|
|
✅ |
|
|
||
|
||
|
Configuration¶
Ignore
gh-exton thempmCLI by passing the--no-gh-extoption.Ignore it for every run in your configuration:
[mpm] gh-ext = false
Raise the timeout of all
gh-extcalls:[mpm.overrides.gh-ext] timeout = 900
Run
mpm config-template gh-extto print all overridable settings for your configuration file:[mpm.overrides.gh-ext] cli_names = [ "gh", ] cli_search_path = [] dry_run = false ignore_auto_updates = true plan = false post_args = [] pre_args = [] pre_cmds = [] requirement = ">=2.0.0" stop_on_error = false unmaintained = false version_cli_options = [ "--version", ] version_regexes = [ "gh version\\s+(?P<version>\\d+\\.\\d+\\.\\d+)", ]
Recipes¶
A few jobs you would otherwise script around gh-ext, one mpm command each:
Snapshot and clone a machine:
mpm --gh-ext dump gh-ext.toml, thenmpm restore gh-ext.tomlon the next one.Export a compliance SBOM:
mpm --gh-ext sbom(CycloneDX by default,--spdxfor SPDX).
Privilege escalation¶
mpm runs this manager as the current user and never prepends sudo by default. Flip the policy for its privileged operations with --sudo or the per-manager sudo override.
None of its operations is privileged.
See privilege escalation for the full policy.
Cooldown¶
State of GitHub CLI extensions’s release-age gating, from the cooldown support table:
Status: ❌ None (installs extensions from git repos)
A cooldown only pays off where a compromised release can be withdrawn while the clock runs, and can only be emulated where the registry dates its releases. From the retraction table:
Registry: GitHub release assets
Retraction: None: withdrawing a build is the upstream author deleting their own release or tag. Nothing sits between them and the user
Publish date: ✅ server-set
published_aton each release (REST API)
With --cooldown set, mpm skips this manager’s install and upgrade operations rather than run them unguarded (fail-closed); --cooldown best-effort opts back in.
Reference traces¶
A collection of raw native outputs captured from the manager’s own CLI and recorded in the bundled definition. If you know GitHub CLI extensions well and a transcript below looks wrong, or a newer release changed its output format, report it.
$ gh extension list
gh dash dlvhdr/gh-dash v4.7.0
gh cockpit github/gh-cockpit a1b2c3d4
$ gh extension search {query}
dlvhdr/gh-dash A rich terminal UI for GitHub
vilmibm/gh-screensaver Screensavers for your terminal
installed cli/gh-webhook Forward webhooks to localhost
Version check¶
The version is probed by running:
$ gh --version
gh version 2.62.0 (2024-11-14)
and extracted with:
r"gh version\s+(?P<version>\d+\.\d+\.\d+)"
Upstream project¶
Metrics |
|
|---|---|
Activity |
|
Popularity |
|
Metadata |
|
Changelog¶
7.2.0(2026-07-09)Report installed extensions by their
owner/reposlug instead of the bare extension name, so the ids returned bympm installedandmpm backupfeed back intoinstall,remove,upgradeandrestore.
7.1.0(2026-07-07)Add GitHub CLI extensions (
gh extension) manager withinstalled,search,install,upgrade, andremovesupport, cross-platform on Linux, macOS, and Windows; mpm’s first bundled configuration-defined manager. Requires gh>=2.0.0.