{"record":{"id":"5c3056227b50fe9c","repo":"windmill-labs/windmill","slug":"no-wmill-yaml-found-use-wmill-init-to-bootstrap","errorCode":null,"errorMessage":"No wmill.yaml found. Use 'wmill init' to bootstrap it.","messagePattern":"No wmill\\.yaml found\\. Use 'wmill init' to bootstrap it\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/core/conf.ts","lineNumber":211,"sourceCode":"\n  return foundPath;\n}\n\nexport function getWmillYamlPath(): string | null {\n  return findWmillYaml();\n}\n\nlet legacyConfigWarned = false;\n\nexport async function readConfigFile(opts?: { warnIfMissing?: boolean }): Promise<SyncOptions> {\n  const warnIfMissing = opts?.warnIfMissing ?? true;\n  try {\n    // First, try to find wmill.yaml recursively\n    const wmillYamlPath = findWmillYaml();\n\n    if (!wmillYamlPath) {\n      if (warnIfMissing) {\n        log.warn(\n          \"No wmill.yaml found. Use 'wmill init' to bootstrap it.\"\n        );\n      }\n      return {};\n    }\n\n    const conf = (await yamlParseFile(wmillYamlPath)) as SyncOptions;\n\n    // Handle obsolete overrides format\n    if (conf && \"overrides\" in conf) {\n      const overrides = conf.overrides as any;\n      const hasSettings =\n        overrides &&\n        typeof overrides === \"object\" &&\n        Object.keys(overrides).length > 0;\n\n      if (hasSettings) {\n        throw new Error(","sourceCodeStart":193,"sourceCodeEnd":229,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/cli/src/core/conf.ts#L193-L229","documentation":"Returned-state warning from readConfigFile: findWmillYaml walked up to the filesystem root without finding any wmill.yaml, so no workspace config could be loaded (empty SyncOptions returned). Most sync/CLI commands requiring a workspace will not behave as intended until the config exists.","triggerScenarios":"Thrown at cli/src/core/conf.ts:211 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run 'wmill init' to bootstrap a wmill.yaml in the project root","Or place an existing wmill.yaml in the working directory / an ancestor","Suppress with warnIfMissing: false when the command tolerates missing config"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}