Dasel
Command-line tool and Go library for querying, modifying and converting JSON, YAML, TOML, XML, CSV, HCL, INI and KDL data.
Tested on Linux
Use it
Linux x86_64
Download dasel_linux_amd64 v3.11.2 release binary into ~/.local/bin and make it executable
mkdir -p ~/.local/bin && curl -sSfL -o ~/.local/bin/dasel https://github.com/TomWright/dasel/releases/download/v3.11.2/dasel_linux_amd64 && chmod +x ~/.local/bin/dasel
Check that it works
dasel versionThe output should contain “3.11.2”.
First thing to try
dasel versionRun dasel version to confirm it is installed.
What it does
- Query different data formats with one syntaxTested
How to use it
- Pipe JSON in and give a selector:
echo '<your json>' | dasel -i json 'foo.bar' - For YAML, set the input format:
cat <file> | dasel -i yaml 'foo.bar'
- Pipe JSON in and give a selector:
- Extract values from structured dataTested
How to use it
- Pipe data in, name its format, and give the path to the value:
echo '<your json>' | dasel -i json 'foo.bar'
- Pipe data in, name its format, and give the path to the value:
- Change values in structured filesTested
How to use it
- Assign a new value and print the whole document with
--root:echo '<your json>' | dasel -i json --root 'foo.bar = "<new value>"'
- Assign a new value and print the whole document with
- Convert data from one format to anotherTested
How to use it
- Set the input and output formats:
echo '<your json>' | dasel -i json -o yaml
- Set the input and output formats:
How far pickfit got
Linux x86_64
- Installs
- Starts
- 4 of 4 features work
- Works offline
macOS and Windows: the project says it runs there; pickfit hasn’t tried it.
Good for
- extract a value from JSON on the command line
- convert a JSON file to YAML
- update values in structured config files in place
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
Linux x86_64
Its main function works
- Replayed from scratch
- Works offline
- Checked on 15 Nov 2026
- Version 3.11.2
Differences the test machine hit
- README: go install github.com/tomwright/dasel/v3/cmd/dasel@master
In the test: Go toolchain not available; used the prebuilt release binary dasel_linux_amd64 (v3.11.2) from GitHub Releases, which the README also offers - README: --root output shown with 2-space indent
In the test: Actual output uses 4-space indentation; content identical