{"record":{"id":"c5d003e0495681ec","repo":"phacility/phabricator","slug":"specify-a-value-to-set-the-configuration-key-s","errorCode":null,"errorMessage":"Specify a value to set the configuration key \"%s\" to, or use \"--stdin\" to read a value from stdin.","messagePattern":"Specify a value to set the configuration key \"(.+?)\" to, or use \"--stdin\" to read a value from stdin\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php","lineNumber":55,"sourceCode":"    }\n\n    $is_stdin = $args->getArg('stdin');\n\n    $key = $argv[0];\n\n    if ($is_stdin) {\n      if (count($argv) > 1) {\n        throw new PhutilArgumentUsageException(\n          pht(\n            'Too many arguments: expected only a configuration key when '.\n            'using \"--stdin\".'));\n      }\n\n      fprintf(STDERR, tsprintf(\"%s\\n\", pht('Reading value from stdin...')));\n      $value = file_get_contents('php://stdin');\n    } else {\n      if (count($argv) == 1) {\n        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(","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php#L37-L73","documentation":"Error \"Specify a value to set the configuration key \"%s\" to, or use \"--stdin\" to read a value from stdin.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php:55 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"}