Installation

Homebrew

The easiest way to get your hands on the latest version of dasel is to use homebrew:
1
brew install dasel
Copied!

Docker

Run dasel in docker using the image ghcr.io/tomwright/dasel.

Usage

Run the docker image, passing in a dasel command with the executable excluded.
1
echo '{"name": "Tom"}' | docker run -i --rm ghcr.io/tomwright/dasel:latest -p json '.name'
2
"Tom"
Copied!

Versioning

New image versions are built and pushed automatically as part of the CI/CD pipeline in Github actions.
Tag
Description
latest
The latest release version.
development
The latest build from master branch.
v*.*.*
The specified dasel release. E.g. v1.13.6.

ASDF

Using asdf-vm and the asdf-dasel plugin.
1
asdf plugin add dasel https://github.com/asdf-community/asdf-dasel.git
2
asdf list all dasel
3
asdf install dasel <version>
4
asdf global dasel <version>
Copied!

Manual

You can download a compiled executable from the latest release.
Don't forget to put the binary somewhere in your PATH.
Linux (64 bit)
Mac OS (64 bit)
Windows
1
curl -sSLf "$(curl -sSLf https://api.github.com/repos/tomwright/dasel/releases/latest | grep browser_download_url | grep linux_amd64 | cut -d\" -f 4)" -L -o dasel && chmod +x dasel
2
mv ./dasel /usr/local/bin/dasel
Copied!
1
curl -sSLf "$(curl -sSLf https://api.github.com/repos/tomwright/dasel/releases/latest | grep browser_download_url | grep darwin_amd64 | cut -d\" -f 4)" -L -o dasel && chmod +x dasel
2
mv ./dasel /usr/local/bin/dasel
Copied!
Manually download a compiled executable from the latest release.

Scoop

Use the scoop command-line installer to install dasel on windows 10.
1
scoop bucket add extras
2
scoop install dasel
Copied!

Development Version

You can go install the cmd/dasel package to build and install dasel for you.
You may need to prefix the command with GO111MODULE=on in order for this to work.
1
go install github.com/tomwright/dasel/cmd/[email protected]
Copied!
Last modified 2mo ago