Automate With JSON
Use JSON when another program needs to read Yeast output.
Do not scrape human tables or styled terminal output.
Basic Pattern
JSON responses use the yeast.v1 schema version.
Check Success
Successful output starts like this:
Errors still use JSON:
{
"ok": false,
"schema_version": "yeast.v1",
"error": {
"code": "failed_precondition",
"message": "project metadata not found"
}
}
Event Streams
Use lifecycle events when a workflow takes time:
Events are JSON Lines. Read them one line at a time:
Useful JSON Commands
yeast version --json
yeast doctor --json
yeast init --templates --json
yeast pull --list --json
yeast status --json
yeast inspect web --json
Rules For Tools
- check
okbefore readingdata - check
schema_version - treat
dataas command-specific - use events for progress
- do not use
--jsonwithyeast docs; terminal docs are human-only
See JSON Output and Events for the reference shapes.