📄
Dasel
v1
v1
  • Introduction
  • Installation
    • Update
  • Use as a go package
  • Github
  • Playground
  • Usage
    • Select
    • Put
    • Put object
    • Put document
    • Delete
    • Validate
    • Flags
      • Escape HTML
      • Format
      • Multiple
      • Null
      • Merge Input Documents
    • Supported file types
  • Selectors
    • Introduction
    • Property
    • Keys and indexes
    • Index
    • Next Available Index
    • All indexes
    • Dynamic
    • Search
    • Search Optional
    • Length
    • Type
  • Notes
    • File formatting and ordering
    • Memory usage
    • Converting between formats
  • Examples
    • JQ to Dasel
    • YQ to Dasel
    • XML
    • Filter JSON API results
Powered by GitBook
On this page
  • Homebrew
  • Docker
  • Usage
  • Versioning
  • ASDF
  • Nix
  • Manual
  • Scoop
  • Development Version
Edit on GitHub

Installation

Homebrew

The easiest way to get your hands on the latest version of dasel is to use homebrew:

brew install dasel

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.

$ echo '{"name": "Tom"}' | docker run -i --rm ghcr.io/tomwright/dasel:latest -r json '.name'
"Tom"

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

asdf plugin add dasel https://github.com/asdf-community/asdf-dasel.git
asdf list all dasel
asdf install dasel <version>
asdf global dasel <version>

Nix

nix-env -iA nixpkgs.dasel

Or NixOS:

nix-env -iA nixos.dasel

Manual

Don't forget to put the binary somewhere in your PATH.

curl -sSLf "$(curl -sSLf https://api.github.com/repos/tomwright/dasel/releases/latest | grep browser_download_url | grep linux_amd64 | grep -v .gz | cut -d\" -f 4)" -L -o dasel && chmod +x dasel
mv ./dasel /usr/local/bin/dasel
curl -sSLf "$(curl -sSLf https://api.github.com/repos/tomwright/dasel/releases/latest | grep browser_download_url | grep -v .gz | grep darwin_amd64 | cut -d\" -f 4)" -L -o dasel && chmod +x dasel
mv ./dasel /usr/local/bin/dasel

Scoop

Use the scoop command-line installer to install dasel on windows 10.

scoop bucket add extras
scoop install dasel

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.

go install github.com/tomwright/dasel/cmd/dasel@master
PreviousIntroductionNextUpdate

Last updated 2 years ago

Using and the .

To install using the (for non-NixOS)

You can download a compiled executable from the .

Manually download a compiled executable from the .

asdf-vm
asdf-dasel plugin
Nix Package Manager
latest release
latest release