phacility/phabricator · error · PhutilArgumentUsageException
Configuration key " " is unknown. Use "bin/config list" to…
Error message
Configuration key "%s" is unknown. Use "bin/config list" to list all known keys.
What it means
Raised in `bin/config set` when the requested key does not exist among options loaded via PhabricatorApplicationConfigOptions::loadAllOptions(). Typos or removed option keys are rejected before any value is written.
Solutions
- Run bin/config list to confirm the exact key name
- Check the application prefix and spelling of the key
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php:73 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21).
Data as JSON: /api/errors/212f066216ad6436.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php:73
throw new PhutilArgumentUsageException(
pht(
'Specify a value to set the configuration key "%s" to, or '.
'use "--stdin" to read a value from stdin.',
$key));
}
if (count($argv) > 2) {
throw new PhutilArgumentUsageException(
pht(
'Too many arguments: expected one key and one value.'));
}
$value = $argv[1];
}
$options = PhabricatorApplicationConfigOptions::loadAllOptions();
if (empty($options[$key])) {
throw new PhutilArgumentUsageException(
pht(
'Configuration key "%s" is unknown. Use "bin/config list" to list '.
'all known keys.',
$key));
}
$option = $options[$key];
$type = $option->newOptionType();
if ($type) {
try {
$value = $type->newValueFromCommandLineValue(
$option,
$value);
$type->validateStoredValue($option, $value);
} catch (PhabricatorConfigValidationException $ex) {
throw new PhutilArgumentUsageException($ex->getMessage());
}View on GitHub (pinned to 5720a38cfe)