{"record":{"id":"0534b8bd26ae74d2","repo":"gatsbyjs/gatsby","slug":"please-pass-your-desired-config-key-and-value-cur","errorCode":null,"errorMessage":"Please pass your desired config key and value. Currently you can only set your package manager using `pm`.","messagePattern":"Please pass your desired config key and value\\. Currently you can only set your package manager using `pm`\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-cli/src/create-cli.ts","lineNumber":603,"sourceCode":"          setPackageManager(`npm`)\n        }\n\n        if (cmd === `set`) {\n          if (key === `pm` || key === `package-manager`) {\n            if (value && value !== `yarn` && value !== `npm`) {\n              report.panic(`Package manager must be yarn or npm.`)\n            }\n\n            if (value) {\n              // @ts-ignore\n              setPackageManager(value)\n\n              return\n            } else {\n              setPackageManager(`npm`)\n            }\n          } else {\n            reporter.warn(\n              `Please pass your desired config key and value. Currently you can only set your package manager using \\`pm\\`.`\n            )\n          }\n          return\n        }\n\n        console.log(`\n        Package Manager: ${getPackageManager()}\n        `)\n      }),\n    })\n    .wrap(cli.terminalWidth())\n    .demandCommand(1, `Pass --help to see all available commands and options.`)\n    .strict()\n    .recommendCommands()\n    .parse(argv.slice(2))\n}\n","sourceCodeStart":585,"sourceCodeEnd":621,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-cli/src/create-cli.ts#L585-L621","documentation":"CLI usage warning from `gatsby config set`: the command was invoked with a key other than `pm`/`package-manager` (or with a missing value), and package manager is currently the only configurable key. It is a guard against unsupported config keys, not an error in existing configuration.","triggerScenarios":"Thrown at packages/gatsby-cli/src/create-cli.ts:603 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use `gatsby config set pm yarn` or `gatsby config set pm npm`"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e85d62f1779e353eaac1753211629a26d123e26c","analyzedAt":"2026-08-26T17:50:09.662Z","contentChangedAt":"2026-08-26T17:50:09.662Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}