cli/cli · error
extension %q not found
Error message
extension %q not found
What it means
Error "extension %q not found" thrown in cli/cli.
Source
Thrown at pkg/cmd/extension/command.go:561
Use: "exec <name> [args]",
Short: "Execute an installed extension",
Long: heredoc.Docf(`
Execute an extension using the short name. For example, if the extension repository is
%[1]sowner/gh-extension%[1]s, you should pass %[1]sextension%[1]s. You can use this command when
the short name conflicts with a core gh command.
All arguments after the extension name will be forwarded to the executable
of the extension.
`, "`"),
Example: heredoc.Doc(`
# Execute a label extension instead of the core gh label command
$ gh extension exec label
`),
Args: cobra.MinimumNArgs(1),
DisableFlagParsing: true,
RunE: func(cmd *cobra.Command, args []string) error {
if found, err := m.Dispatch(args, io.In, io.Out, io.ErrOut); !found {
return fmt.Errorf("extension %q not found", args[0])
} else {
return err
}
},
},
func() *cobra.Command {
promptCreate := func() (string, extensions.ExtTemplateType, error) {
extName, err := prompter.Input("Extension name:", "")
if err != nil {
return extName, -1, err
}
options := []string{"Script (Bash, Ruby, Python, etc)", "Go", "Other Precompiled (C++, Rust, etc)"}
extTmplType, err := prompter.Select("What kind of extension?",
options[0],
options)
return extName, extensions.ExtTemplateType(extTmplType), err
}
var flagType stringView on GitHub (pinned to 0eeec0b92e)
Solutions
- List installed extensions with `gh extension list` and use an installed name.
When it happens
Trigger: Thrown at pkg/cmd/extension/command.go:561 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of cli/cli@0eeec0b92e (2026-08-15).
Data as JSON: /api/errors/9e0ba005269670ea.
Report an issue: GitHub.