phacility/phabricator · error · PhutilArgumentUsageException

No such configuration key

Error message

No such configuration key '%s'! Use `%s` to list all keys.

What it means

Lookup guard in bin/config get execute(): the requested key is not present in the registry of known configuration options loaded by PhabricatorApplicationConfigOptions::loadAllOptions(). The message suggests the config list command.

Solutions

  1. Run bin/config list to see all valid keys
  2. Check the key spelling, including the application prefix (e.g. phabricator., metamta.)
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/applications/config/management/PhabricatorConfigManagementGetWorkflow.php:38 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/7c2cd4a0b1ed3daa. Report an issue: GitHub.

Appendix: source

Thrown at src/applications/config/management/PhabricatorConfigManagementGetWorkflow.php:38

  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 get.'));
    }

    $key = $argv[0];

    if (count($argv) > 1) {
      throw new PhutilArgumentUsageException(
        pht('Too many arguments: expected one key.'));
    }

    $options = PhabricatorApplicationConfigOptions::loadAllOptions();
    if (empty($options[$key])) {
      throw new PhutilArgumentUsageException(
        pht(
          "No such configuration key '%s'! Use `%s` to list all keys.",
          $key,
          'config list'));
    }

    $values = array();
    $config = new PhabricatorConfigLocalSource();
    $local_value = $config->getKeys(array($key));
    if (empty($local_value)) {
      $values['local'] = array(
        'key' => $key,
        'value' => null,
        'status' => 'unset',
        'errorInfo' => null,
      );
    } else {
      $values['local'] = array(

View on GitHub (pinned to 5720a38cfe)