{"repo":"mikefarah/yq","free":true,"listed":false,"github":"https://github.com/mikefarah/yq","clone":"git clone https://github.com/mikefarah/yq.git","description":"yq is a portable command-line YAML, JSON, XML, CSV, TOML, HCL and properties processor","language":"Go","stars":15842,"topics":["yaml-processor","yaml","cli","golang","splat","devops-tools","portable","bash","xml","json"],"license":"MIT","category":"cli-tools","readme_excerpt":"yq A lightweight and portable command-line YAML, JSON, INI and XML processor. yq uses jq (a popular JSON processor) like syntax but works with yaml files as well as json, kyaml, xml, ini, properties, csv and tsv. It doesn't yet support everything jq does - but it does support the most common operations and functions, and more is being added continuously. yq is written in Go - so you can download a dependency free binary for your platform and you are good to go! If you prefer there are a variety of package managers that can be used as well as Docker and Podman, all listed below. Quick Usage Guide Basic Operations Read a value: Pipe from STDIN: Update a yaml file in place: Update using environment variables: Advanced Operations Merge multiple files: Multiple updates to a yaml file: Find and update an item in an array: Convert between formats: See recipes for more examples and the documentation for more information. Take a look at the discussions for common questions, and cool ideas Install Download the latest binary wget Use wget to download pre-compiled binaries. Choose your platform and architecture: For Linux (example): Latest version (Linux AMD64): Available platforms: linux amd64 , linux arm64 , linux arm , linux 386 , darwin amd64 , darwin arm64 , windows amd64 , windows 386 , etc. MacOS / Linux via Homebrew: Using Homebrew Linux via snap: Snap notes yq installs with strict confinement in snap, this means it doesn't have direct access to root files. To read root files you","default_branch":null,"files":null,"tree":[],"storefront":"/r/mikefarah","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mikefarah/yq/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}