Skip to content

JSON output

With --json, nothing prompts and stdout holds exactly one JSON object and nothing else, the same the daemon’s API returns. The flags that answer a command’s questions are then required up front.

success: {"result": "created", "project": {...}}
failure: Problem Details (RFC 9457):
{"type": "urn:wdx:error:not_found", "title": "...", "status": 404,
"detail": "...", "code": "not_found", "hint": "...",
"details": {...}, "debug_id": "dbg-..."}

“result” names what happened; commands that change nothing have none. Keys are snake_case, absent values null and timestamps RFC 3339. Each command’s help lists its results and error codes, and wdx <command> --help --json prints the help itself as JSON.