phacility/phabricator · error · PhutilArgumentUsageException
Specify a configuration key to delete.
Error message
Specify a configuration key to delete.
What it means
Usage guard in the config delete CLI workflow: fires when the wildcard 'args' argument list is empty, meaning no configuration key was named on the command line. The workflow requires exactly one key to delete from local or database config.
Solutions
- Pass exactly one configuration key, e.g. bin/config delete example.key
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/config/management/PhabricatorConfigManagementDeleteWorkflow.php:31 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/0e53382580ba1f16.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/config/management/PhabricatorConfigManagementDeleteWorkflow.php:31
array(
'name' => 'database',
'help' => pht(
'Delete configuration in the database instead of '.
'in local configuration.'),
),
array(
'name' => 'args',
'wildcard' => true,
),
));
}
public function execute(PhutilArgumentParser $args) {
$console = PhutilConsole::getConsole();
$argv = $args->getArg('args');
if (count($argv) == 0) {
throw new PhutilArgumentUsageException(
pht('Specify a configuration key to delete.'));
}
$key = $argv[0];
if (count($argv) > 1) {
throw new PhutilArgumentUsageException(
pht('Too many arguments: expected one key.'));
}
$use_database = $args->getArg('database');
if ($use_database) {
$config = new PhabricatorConfigDatabaseSource('default');
$config_type = 'database';
} else {
$config = new PhabricatorConfigLocalSource();
$config_type = 'local';View on GitHub (pinned to 5720a38cfe)