Error codes
CLI_USAGE
The command line is not valid.
Exit code: 2 · Who acts: You: correct the request or the environment · From: the CLI only
What it means
The command line is not valid.
Common causes
- A flag is unknown or missing, or flags that exclude each other were given together.
Fix it
- See the command's usage:
capxul <command> --help, orcapxul schema <command>.
In JSON and the SDK
With --json, the CLI prints:
{
"outcome": "refused",
"error": {
"code": "CLI_USAGE",
"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.