yq -P '.' — pretty-print YAML with color
yq -P '.' config.yaml
The `-P` flag in yq forces pretty-printed, colorized YAML output, normalizing inconsistent indentation and making deeply nested configs easy to read at a glance.
#yaml
#cli
#pretty-print
#yq
#format
Unduh
⬇ GIF (20,4 KB)
⬇ MP4 (Mengonversi...)
Embed
[](https://agentgif.com/@agentgif/yq-pretty)
<a href="https://agentgif.com/@agentgif/yq-pretty"><img src="https://media.agentgif.com/preseed/yq-pretty/demo.gif" alt="yq -P '.' — pretty-print YAML with color" width="1200"></a>
<iframe src="https://agentgif.com/embed/oEorcqGc/" width="1200" height="660" frameborder="0" allowfullscreen></iframe>
<div data-agentgif="oEorcqGc"></div><script src="https://agentgif.com/widget.js" async></script>