Error codes
CLI_STORAGE
The CLI could not read or write its local files.
Exit code: 2 · Who acts: You: correct the request or the environment · From: the CLI only
What it means
The CLI could not read or write its local files.
Common causes
- A file is damaged, has unsafe permissions, or is locked by another
capxulcommand.
Fix it
- Read the message: it names the file and the repair.
- Check the CLI setup with
capxul doctor.
In JSON and the SDK
With --json, the CLI prints:
{
"outcome": "refused",
"error": {
"code": "CLI_STORAGE",
"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.