yq install guide

Get yq on macOS and Linux Now!

yq is a portable command-line YAML, JSON, XML, CSV, TOML, HCL and properties processor

yq one-command setup card, command-line tool, for macOS and Linux, 16k stars on the project's repository
★ 16k stars macOS and Linux

Get yq with one command

Pick your system, reveal the step-by-step guide, copy the command, paste it into your terminal and press Enter. This command comes from the project's public source.

PowerShell not published

What yq does

  • Uses similar syntax as but works with YAML, INI, JSON and XML files
  • Date/Time manipulation and formatting with TZ
  • Manipulate yaml comments, styling, tags and anchors and aliases
  • Complex expressions to select and update
  • Error Handling: Encounter a syntax error? It will display the error message and the results of the closest valid filter
  • Examples: Recipes and examples

Summarised from yq's own documentation.

About yq

yq is a portable command-line YAML, JSON, XML, CSV, TOML, HCL and properties processor

CategoryCommand-line tool
Install methodHomebrew
Windowsno install command published
macOS / Linuxdocumented install command available
PriceFree and open source
Command verifiedFrom project source
Popularity16k stars on the project's public repository

On mobile

yq is a command-line tool, so there is no phone app for it — a phone has no shell to run it in. You'll need a desktop, or a remote shell into a machine that has one.

yq is developed by its own authors. This page is an independent reference; we are not affiliated with or sponsored by the project. The command shown here was reproduced from the project's public documentation — always check the project's own documentation before running anything.