{"record":{"id":"9e0ba005269670ea","repo":"cli/cli","slug":"extension-q-not-found","errorCode":null,"errorMessage":"extension %q not found","messagePattern":"extension %q not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/cmd/extension/command.go","lineNumber":561,"sourceCode":"\t\t\tUse:   \"exec <name> [args]\",\n\t\t\tShort: \"Execute an installed extension\",\n\t\t\tLong: heredoc.Docf(`\n\t\t\t\tExecute an extension using the short name. For example, if the extension repository is\n\t\t\t\t%[1]sowner/gh-extension%[1]s, you should pass %[1]sextension%[1]s. You can use this command when\n\t\t\t\tthe short name conflicts with a core gh command.\n\n\t\t\t\tAll arguments after the extension name will be forwarded to the executable\n\t\t\t\tof the extension.\n\t\t\t`, \"`\"),\n\t\t\tExample: heredoc.Doc(`\n\t\t\t\t# Execute a label extension instead of the core gh label command\n\t\t\t\t$ gh extension exec label\n\t\t\t`),\n\t\t\tArgs:               cobra.MinimumNArgs(1),\n\t\t\tDisableFlagParsing: true,\n\t\t\tRunE: func(cmd *cobra.Command, args []string) error {\n\t\t\t\tif found, err := m.Dispatch(args, io.In, io.Out, io.ErrOut); !found {\n\t\t\t\t\treturn fmt.Errorf(\"extension %q not found\", args[0])\n\t\t\t\t} else {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t\tfunc() *cobra.Command {\n\t\t\tpromptCreate := func() (string, extensions.ExtTemplateType, error) {\n\t\t\t\textName, err := prompter.Input(\"Extension name:\", \"\")\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn extName, -1, err\n\t\t\t\t}\n\t\t\t\toptions := []string{\"Script (Bash, Ruby, Python, etc)\", \"Go\", \"Other Precompiled (C++, Rust, etc)\"}\n\t\t\t\textTmplType, err := prompter.Select(\"What kind of extension?\",\n\t\t\t\t\toptions[0],\n\t\t\t\t\toptions)\n\t\t\t\treturn extName, extensions.ExtTemplateType(extTmplType), err\n\t\t\t}\n\t\t\tvar flagType string","sourceCodeStart":543,"sourceCodeEnd":579,"githubUrl":"https://github.com/cli/cli/blob/0eeec0b92edbe70199f9768522f831d3534f41ad/pkg/cmd/extension/command.go#L543-L579","documentation":"Error \"extension %q not found\" thrown in cli/cli.","triggerScenarios":"Thrown at pkg/cmd/extension/command.go:561 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["List installed extensions with `gh extension list` and use an installed name."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0eeec0b92edbe70199f9768522f831d3534f41ad","analyzedAt":"2026-08-15T12:31:05.478Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}