Query and modify data structures using selector strings
Dasel (short for Data-Select) is a command-line tool and library for querying, modifying, and transforming structured data files. It provides a unified interface for working with multiple data formats including JSON, YAML, TOML, XML, CSV, HCL, and INI, allowing users to manipulate these formats using consistent syntax regardless of the underlying format.
The tool excels at data wrangling tasks with powerful features like in-place modification, format conversion, and advanced querying capabilities. Users can extract specific values, update data structures, search for matching conditions, and seamlessly convert between different formats. Its intuitive selector syntax makes it easy to traverse nested data structures and perform complex operations.
Dasel is particularly valuable for developers, DevOps engineers, and anyone working with configuration files or APIs. Its script-friendly design makes it perfect for shell scripts and CI/CD pipelines, while the Go library support allows integration into larger applications. Whether you need to extract a single value from a JSON response, convert YAML to JSON, or update configuration files programmatically, Dasel provides a consistent and powerful solution.
# via Homebrew
brew install dasel
# via Go Install
go install github.com/tomwright/dasel/v3/cmd/dasel@master