{"record":{"id":"04a3c907c0d1f7b4","repo":"refinedev/refine","slug":"invalid-provider-providerid","errorCode":null,"errorMessage":"Invalid provider: ${providerId}","messagePattern":"Invalid provider: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/commands/add/sub-commands/provider/create-providers.ts","lineNumber":94,"sourceCode":"          }\n        });\n      } catch (error) {}\n    }\n\n    if (copiedAssets.length) {\n      console.log(`🎉 Created additional assets: ${copiedAssets.join(\", \")}`);\n    }\n    if (failedAssets.length) {\n      console.error(`❌ Failed to create assets: ${failedAssets.join(\", \")}`);\n    }\n  });\n};\n\nexport const getProviderOptions = (providerId: ProviderId): Provider => {\n  const provider = availableProviders.find((p) => p.id === providerId);\n\n  if (!provider) {\n    throw new Error(`Invalid provider: ${providerId}`);\n  }\n\n  return provider;\n};\n\nexport const getDefaultPath = () => {\n  const projectType = getProjectType();\n  const { path } = getProviderPath(projectType);\n  return path;\n};\n","sourceCodeStart":76,"sourceCodeEnd":105,"githubUrl":"https://github.com/refinedev/refine/blob/779d52a20e29b0307ac0df04d135beba434370dc/packages/cli/src/commands/add/sub-commands/provider/create-providers.ts#L76-L105","documentation":"Thrown by refine's CLI 'add provider' command when the providerId passed to getProviderOptions does not match any entry in the availableProviders list. The CLI can only scaffold known data/auth provider templates.","triggerScenarios":"Running `refine add provider <id>` with an unknown or misspelled id, e.g. `refine add provider strapi4` when the registered id is 'strapi', or passing an arbitrary string.","commonSituations":"Typos in provider names; provider ids changing between CLI versions; users assuming any community provider is supported by the CLI scaffolder.","solutions":["Run `refine add provider` without an argument to see the interactive list of valid provider ids","Check the provider's exact id in the CLI's availableProviders / docs and retry with the exact spelling","Update the CLI (`npm update @refinedev/cli`) in case the provider was added in a newer version","Add the provider manually by installing its package and wiring it in the dataProvider/authProvider props"],"exampleFix":"// before\nrefine add provider supabasse\n// after\nrefine add provider supabase","handlingStrategy":"validation","validationCode":"npx refine add provider # interactive list shows valid ids","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Copy provider ids from the CLI's interactive list or official docs","Keep the CLI updated so new providers are available"],"tags":["cli","provider","scaffolding","validation"],"backgroundTag":"invalid-cli-argument","analyzedSha":"779d52a20e29b0307ac0df04d135beba434370dc","analyzedAt":"2026-08-27T11:15:25.854Z","schemaVersion":2},"datasetVersion":"2026-08-27T13:17:12.746Z"}