yq Training Sessions
Master YAML processing with yq. Each drill builds on the previous, from basic reading to real infrastructure patterns.
Training Philosophy
-
Sessions first - Learn concepts step-by-step
-
Drills for practice - Reinforce with repetition
-
Real data - antora.yml, GitHub Actions, k8s manifests
-
Hands-on - Type the commands, see the output
Sessions (Curriculum)
| Session | Focus | Duration | Status |
|---|---|---|---|
YAML basics, yq syntax, output formats, |
30 min |
[ ] Planned |
|
select, has, path, tag, type — filtering |
45 min |
[ ] Planned |
|
In-place edit ( |
45 min |
[ ] Planned |
|
Multi-document YAML, anchors, aliases |
45 min |
[ ] Planned |
|
Infrastructure: antora.yml, GitHub Actions, k8s manifests |
60 min |
[ ] Planned |
Quick Start
# Run the drill menu
bash ~/atelier/_bibliotheca/domus-captures/docs/modules/ROOT/examples/yq-drills/00-run-drill.sh
# Or run a specific drill
bash ~/atelier/_bibliotheca/domus-captures/docs/modules/ROOT/examples/yq-drills/00-run-drill.sh 01
Key Difference: yq vs jq
yq reads YAML (and JSON, XML, TOML). jq reads JSON only. The filter syntax is nearly identical — if you know jq, yq is the same language applied to YAML.
The critical flag: -o json converts YAML output to JSON, letting you pipe yq into jq for the best of both.
Related
-
jq Training - JSON processing
-
gron Training - JSON structure discovery