Scroll to navigation

DASEL(1) DASEL Manual DASEL(1)

NAME

dasel - Query and modify data structures from the command line.

SYNOPSIS

dasel [flags] [query]
dasel command [flags]

DESCRIPTION

dasel is a command-line tool for querying and modifying data structures. It supports multiple data formats including JSON, YAML, TOML, CSV, XML, and KDL.

COMMANDS

[default] Execute a query
Print the version
Start an interactive session (alpha)
Generate shell completion script
Generate man page

OPTIONS

The following options are available for the default query command:

Variables to pass to the query. E.g. --var foo="bar" --var baz=json:file:./some/file.json
Read/Write flag to customise parsing/output. Applies to read + write E.g. --rw-flag csv-delimiter=;
Reader flag to customise parsing. E.g. --read-flag xml-mode=structured
Writer flag to customise output. E.g. --write-flag csv-delimiter=;
The format of the input data.
The format of the output data.
Return the root value.
Output in compact mode (no indentation/newlines).
Allow access to potentially unstable features.
Run in interactive mode (alpha).
Path to config file

GLOBAL OPTIONS

Show context-sensitive help.

QUERY OPTIONS

Variables to pass to the query. E.g. --var foo="bar" --var baz=json:file:./some/file.json
Read/Write flag to customise parsing/output. Applies to read + write E.g. --rw-flag csv-delimiter=;
Reader flag to customise parsing. E.g. --read-flag xml-mode=structured
Writer flag to customise output. E.g. --write-flag csv-delimiter=;
The format of the input data.
The format of the output data.
Return the root value.
Output in compact mode (no indentation/newlines).
Allow access to potentially unstable features.
Run in interactive mode (alpha).
Path to config file

INTERACTIVE OPTIONS

Variables to pass to the query. E.g. --var foo="bar" --var baz=json:file:./some/file.json
Read/Write flag to customise parsing/output. Applies to read + write E.g. --rw-flag csv-delimiter=;
Reader flag to customise parsing. E.g. --read-flag xml-mode=structured
Writer flag to customise output. E.g. --write-flag csv-delimiter=;
The format of the input data.
The format of the output data.
Path to config file

EXAMPLES

echo '{"name": "Tom"}' | dasel 'name'
echo '{"name": "Tom"}' | dasel -i json -o yaml
echo '{"name": "Tom"}' | dasel -i json -o json --compact

SEE ALSO

Dasel documentation

2026-05-19 3.11.0-1