yq

A command-line tool that reads, queries and edits YAML files the way jq handles JSON.

In more detail

It is useful for changing one field in a large manifest without opening an editor. Exam environments do not promise it is installed, so kubectl's own output options and a text editor remain the safe default.

Example

yq '.spec.replicas = 3' -i deploy.yaml

Related terms

Taught in

References

Certification courses