Options & output
Two options work on every vibedata command, every command reports in the same four words whatever it was asked to do, and every command leaves with an exit code saying which of those four it finished in. This page is all of that, and the contract for reading a command's output from a script, a CI job, or a coding agent you have asked to set Vibedata up.
Global options
These work on every vibedata command, and go before it, as in vibedata --json install compose:
| Option | What it does |
|---|---|
--json | Emit machine-readable JSON output. |
--verbose | Emit extended diagnostics. |
What you'll see (states)
Every command reports in the same four words, whatever it was asked to do:
- Ready — the command finished and what it acted on is working: the install completed, the app is reachable, migrations are applied, durable storage is writable.
- Degraded — the command succeeded, but a non-critical surface such as observability or one provider's sign-in is reporting a problem. The output names the affected check and what to do about it.
- Blocked — the command cannot continue safely. Causes include missing Docker authority, port conflicts, a registry failure, missing provider authority, missing CLI sign-in, stale generated files, or unrecoverable encryption material. The output names the precondition that failed and the action required.
- Not configured — there is nothing to act on:
DATA_DIRis missing, unreadable, or not avibedata-managed installation, or the deployment has not been configured far enough for the command to report on.compose up,downandrestartandmaintenance onandoffare the exception: with no installation they report Blocked (STALE_GENERATED_FILES, exit3).
A command that could not read something reports that it could not read it. It never reports an unread check as absent — see Checking a deployment is ready to use.
Secrets
No command is built to print a generated secret, an access token, an API key or a session cookie, and --verbose does not turn that off. Fields whose names look like secrets are replaced before anything is printed, and so are token-shaped values inside the message itself — which is where one arrives when a provider or a driver quotes it back in an error. That filtering is a safety net rather than a guarantee: it recognises the shapes credentials usually take, and a few commands print a provider's text directly. Pass secrets through a file or an environment variable rather than an argument: an argument is visible to every process on the host and stays in your shell history.
The --json event stream
--json goes before the command, and turns every line of output into one JSON object. The exceptions print plain text: version, auth keyring-check, idp script, and the target checks idp add makes before it reaches the deployment. For example:
vibedata --json install composeThe output is newline-delimited JSON, not a single document: one object per line, written and flushed as it happens rather than collected and printed at the end. A long-running command is therefore readable while it runs — an install reports each phase as it finishes, not twenty minutes later. Parse it line by line; do not wait for the process to exit and parse the whole of standard output as one value.
Every object carries an event key naming what happened. Three shapes exist:
event | Shape | When |
|---|---|---|
info | message, plus any fields the command attached | A command reporting progress or a result in words |
| a name | the fields that event carries | Something specific happened — phase_started, phase_completed, image_pulled, backup_complete |
blocked | reason, message, next_actions, evidence | A precondition failed and the command stopped |
Treat the set of event names as open. New commands add new names, and a consumer that switches on event must ignore one it does not recognise rather than fail. The three shapes above are the stable part; blocked and its reason are the part worth branching on.
Blocked results
A blocked event is the structured form of the Blocked state. reason is drawn from a closed set, so a script can branch on it without matching English:
{
"event": "blocked",
"reason": "PORT_CONFLICT",
"message": "port 5173 is already in use",
"next_actions": ["stop the service holding port 5173", "rerun install"],
"evidence": { "name": "frontend", "port": 5173 }
}next_actions always holds at least one entry and is written for a person to read. evidence carries whatever the command could prove about the failure, and is the field most likely to gain keys over time.
These are the reasons a command can report:
| Reason |
|---|
MISSING_DOCKER |
UNSUPPORTED_DOCKER |
PORT_CONFLICT |
REGISTRY_FAILURE |
UNSUPPORTED_TAG |
STALE_GENERATED_FILES |
MISSING_DURABLE_SECRETS |
DATA_DIR_NOT_WRITABLE |
INSUFFICIENT_DOCKER_RESOURCES |
CONCURRENT_INVOCATION |
MIGRATION_FAILED |
READINESS_FAILED |
COMPANION_STATE_UNKNOWN |
MISSING_DEPENDENCY |
MISSING_CLI_AUTH |
NOT_CONFIGURED |
UPGRADE_GATE_BLOCKED |
BACKUP_FAILED |
RESTORE_FAILED |
OBSERVABILITY_REMOVAL_UNCONFIRMED |
INVALID_INPUT |
BACKEND_SHUTDOWN_FAILED |
Exit codes
| Code | Name | Meaning |
|---|---|---|
0 | SUCCESS | The command finished and what it acted on is working. |
1 | GENERIC_ERROR | The command failed for a reason it could not classify. |
2 | MISUSE | The command was called wrongly: a missing or invalid option. |
3 | BLOCKED | A precondition failed. The output names it and what to do. |
4 | NOT_CONFIGURED | There was nothing to act on. |
doctor setup is the command most worth scripting against, because it uses three of these to say three genuinely different things: ready, a prerequisite is missing, and a prerequisite could not be read at all. See Diagnostics.

