Error codes

CLI_CONFIG

The CLI configuration is not valid.

Exit code: 2 · Who acts: You: correct the request or the environment · From: the CLI only

What it means

The CLI configuration is not valid.

Common causes

  • An environment variable or a saved setting has a value the CLI cannot use.

Fix it

  1. Read the message: it names the setting.
  2. Check the CLI setup with capxul doctor.

In JSON and the SDK

With --json, the CLI prints:

{
  "outcome": "refused",
  "error": {
    "code": "CLI_CONFIG",
    "message": "…"
  }
}

Only the CLI answers with this code. The SDK never returns it. Branch on the code, not on the message: the message is written for people and can change.

Commands that can answer with it

Every command can answer with this code.

On this page