{"record":{"id":"212f066216ad6436","repo":"phacility/phabricator","slug":"configuration-key-s-is-unknown-use-bin-config","errorCode":null,"errorMessage":"Configuration key \"%s\" is unknown. Use \"bin/config list\" to list all known keys.","messagePattern":"Configuration key \"(.+?)\" is unknown\\. Use \"bin/config list\" to list all known keys\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php","lineNumber":73,"sourceCode":"        throw new PhutilArgumentUsageException(\n          pht(\n            'Specify a value to set the configuration key \"%s\" to, or '.\n            'use \"--stdin\" to read a value from stdin.',\n            $key));\n      }\n\n      if (count($argv) > 2) {\n        throw new PhutilArgumentUsageException(\n          pht(\n            'Too many arguments: expected one key and one value.'));\n      }\n\n      $value = $argv[1];\n    }\n\n    $options = PhabricatorApplicationConfigOptions::loadAllOptions();\n    if (empty($options[$key])) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'Configuration key \"%s\" is unknown. Use \"bin/config list\" to list '.\n          'all known keys.',\n          $key));\n    }\n\n    $option = $options[$key];\n\n    $type = $option->newOptionType();\n    if ($type) {\n      try {\n        $value = $type->newValueFromCommandLineValue(\n          $option,\n          $value);\n        $type->validateStoredValue($option, $value);\n      } catch (PhabricatorConfigValidationException $ex) {\n        throw new PhutilArgumentUsageException($ex->getMessage());\n      }","sourceCodeStart":55,"sourceCodeEnd":91,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php#L55-L91","documentation":"Error \"Configuration key \"%s\" is unknown. Use \"bin/config list\" to list all known keys.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php:73 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}