GitHub CLI extensions

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.managers.<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.

Platforms

  • 🐧 Linux

  • 🍎 macOS

  • 🪟 Windows

Operations

Operation

Supported

Notes

installed

outdated

search

exact and extended search backfilled by mpm

install

upgrade

upgrade_all

remove

sync

cleanup

Ecosystem

  • Accepted purl types: pkg:gh-ext

Usage

$ mpm --gh-ext installed
$ mpm --gh-ext search "query"
$ mpm --gh-ext upgrade --all
$ mpm install pkg:gh-ext/hello
$ mpm --dry-run --gh-ext upgrade --all

Every example above accepts --dry-run, which simulates the underlying manager calls without touching the system: the safe way to watch what mpm would do before trusting it.

Deselect the manager for a single run with --no-gh-ext, disable it from your configuration, or tune its invocation attributes with per-manager overrides.

Command line

  • CLI names, in lookup order: gh

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+)"

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 needs root.

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)

With --cooldown set, mpm skips this manager’s install and upgrade operations rather than run them unguarded (fail-closed); --allow-unsupported-managers opts back in.

Reference traces

Raw native outputs captured in the bundled definition: the reference mpm’s parsers were written against. 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