Querying and updating structured configuration files in CI/CD pipelines often requires maintaining separate tools for JSON (jq), YAML (yq), and TOML. Developers frequently turn to dasel (Data Selector), an all-in-one command-line tool written in Go that reads and modifies JSON, YAML, TOML, XML, and CSV using a single unified query syntax. On freshly provisioned cloud servers, minimal container images, or basic Linux installations, running the utility yields bash: dasel: command not found.
Install dasel via Official Automated Shell Script
Deploy the latest release across any Linux distribution using the official script:
curl -s https://raw.githubusercontent.com/TomWright/dasel/master/install.sh | sh
The installer automatically selects the correct x86_64, ARM, or s390x binary and places it directly into /usr/local/bin/dasel.
Install via Native Package Repositories
Alternatively, install directly using package managers where supported:
- Arch Linux:
sudo pacman -S dasel - Alpine Linux:
sudo apk add dasel - Debian / Ubuntu: Install via Homebrew:
brew install dasel
Download Official GitHub Standalone Binary Release
For systems requiring strict manual binary control:
DASEL_VER=$(curl -s https://api.github.com/repos/TomWright/dasel/releases/latest | grep 'tag_name' | cut -d '"' -f 4)
curl -sL "https://github.com/TomWright/dasel/releases/download/${DASEL_VER}/dasel_linux_amd64" -o /usr/local/bin/dasel
sudo chmod +x /usr/local/bin/dasel
Confirm the tool is accessible by running dasel --version or testing property selection on JSON (e.g. echo '{"server":{"port":8080}}' | dasel -p json '.server.port').