yq
commands.yq
prints with colours if it detects a terminal. You can manully this by using either--colors/-C
flag to force print with colors.--no-colors/-M
flag to force print without coloursyaml
use the --prettyPrint/-P
flag. Note that this is shorthand for using the style operator ... style=""
--indent/-I
to control the number of spaces used for indentation. This also works for JSON output. The default value is 2.--unwrapScalar=false
yq --unwrapScalar=false '.a' data.yml