Error codes
CAPABILITY_UNAVAILABLE
This deployment cannot do what the request asks.
Exit code: 6 · Who acts: You or another person, after you read the current state, or by waiting · From: the CLI, the SDK and the backend
What it means
This deployment cannot do what the request asks.
Common causes
- The backend runs a different version from the CLI or SDK.
- The feature is not set up in this environment.
Fix it
- Update the CLI or SDK, or use a deployment that matches it.
- Check where you are with
capxul whoami.
In JSON and the SDK
With --json, the CLI prints:
{
"outcome": "refused",
"error": {
"code": "CAPABILITY_UNAVAILABLE",
"message": "…"
}
}In the SDK, a failed result has result.error.code === "CAPABILITY_UNAVAILABLE". 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.