Favicon of yq

yq

Lightweight command-line YAML processor for parsing, querying, and modifying YAML documents with powerful filtering and transformation capabilities.

yq is a command-line tool that brings powerful YAML processing capabilities to your terminal. Whether you need to extract specific values, modify YAML structures, or transform entire documents, yq provides an intuitive syntax for working with YAML data.

Key capabilities include:

  • Query and extract values from YAML files using simple path expressions
  • Modify and update YAML documents programmatically without manual editing
  • Transform YAML structures into different formats or reorganize data hierarchies
  • Filter arrays and objects based on conditions
  • Merge multiple YAML files or combine nested structures
  • Convert between YAML and other formats like JSON or XML

The tool is particularly useful for DevOps workflows, configuration management, CI/CD pipelines, and any scenario where you need to automate YAML manipulation. Its lightweight nature and straightforward syntax make it accessible for both simple one-liners and complex data transformations, eliminating the need for manual file editing or heavier scripting solutions.

Features

JSON outputScriptable

Media

Pros

3
  • Parses, queries, and modifies YAML documents
  • Powerful filtering and transformation capabilities
  • Lightweight command-line tool

Related tools

Categories:

Share:

Quiet lately: No commits in 6 months — this project might not be actively maintained.

Auto-fetched .

Recent releases

Similar to yq

Favicon

 

  
 
Favicon

 

  
 
Favicon