Lab 04: Status, Logs, Inspect, JSON
Observe a Yeast project as both a human and an automation tool.
You will learn:
- when to use
yeast status - when to use
yeast logs - when to use
yeast inspect - how
--jsonchanges output - how
--json --eventsstreams lifecycle events
What You Will Build
yeast-lab-04/
└── web VM
├── human status output
├── detailed inspect output
├── runtime logs
└── JSON output for scripts
Before You Start
Run:
Step 1: Create And Start
Step 2: Use Human Output
Human output is for terminals. It is allowed to be friendly, formatted, and easier to read.
Step 3: Use JSON Output
JSON output is for scripts and integrations. It uses the yeast.v1 schema version.
Step 4: See The Error Shape
Run this outside a Yeast project or from a temporary folder:
The output should still be JSON, with ok: false and a structured error.
Step 5: Stream Events
Events are JSON Lines. Each line is one event object. Tools can read progress as Yeast works instead of waiting for the final result.
Verification
Check that these commands work:
Clean Up
What You Learned
Use human output when you are driving Yeast yourself.
Use JSON and events when another tool is driving Yeast.
Next Lab
Continue with Snapshots And Restore.