DASEL(1)
π DASEL(1) β the manual page, but make it cute π
okay bestie, gather round, because this is the DASEL manual straight out of the DASEL Manual set, and it is genuinely one of the most useful little tools ever. it's a command-line tool for querying and modifying data structures, and it speaks JSON, YAML, TOML, CSV, XML, and KDL. yes, all of them. no cap. π¦
β¨ NAME β¨
dasel β query and modify data structures from the command line.
like... that's the whole vibe. pull values out, push values in, from your terminal. periodt. π
πΈ SYNOPSIS πΈ
dasel [flags] [query]
dasel command [flags]
two whole moods: either you're running a raw query with flags, or you're calling an actual command with flags. pick your main character energy. π
π DESCRIPTION π
so dasel is a command-line tool for querying and modifying data structures. that's the job. that's the assignment. and she eats every time. π₯
she supports multiple data formats, and here's the full list, no edits, no omissions:
- JSON
- YAML
- TOML
- CSV
- XML
- KDL
it's giving "one tool to rule them all" fr fr. π
π«Ά COMMANDS π«Ά
queryβ [default] Execute a query. this is the default one, so if you don't name a command, this is what you're doing anyway. lowkey the main character. βversionβ Print the version. gotta know which era ofdaselyou're living in bestie.interactiveβ Start an interactive session (alpha). β οΈ heads up: she's alpha, okay? treat her gently.completionβ Generate shell completion script. your shell but with β¨predictionsβ¨.manβ Generate man page. yes, the tool can write its own man page. iconic behaviour tbh.
π OPTIONS π
The following options are available for the default query command:
--varβ Variables to pass to the query. E.g.--var foo="bar" --var baz=json:file:./some/file.json. inject your own little variables in there, bestie. π--rw-flagβ Read/Write flag to customise parsing/output. Applies to read + write. E.g.--rw-flag csv-delimiter=;--read-flagβ Reader flag to customise parsing. E.g.--read-flag xml-mode=structured--write-flagβ Writer flag to customise output. E.g.--write-flag csv-delimiter=;-i,--inβ The format of the input data.-o,--outβ The format of the output data.--rootβ Return the root value. π³--compactβ Output in compact mode (no indentation/newlines). tiny. efficient. clean. π§--unstableβ Allow access to potentially unstable features. β οΈ unstable is literally in the name, babes, proceed accordingly.--itβ Run in interactive mode (alpha).-c,--configβ Path to config file.
π GLOBAL OPTIONS π
-h,--helpβ Show context-sensitive help. the "bestie explain" button, and it's context-sensitive too, so it actually tells you what applies right where you are. we love a helpful girl. π«Ά
β QUERY OPTIONS β
here's the full list again, because the query command has her own copy, and we do not summarise, we do not skip:
--varβ Variables to pass to the query. E.g.--var foo="bar" --var baz=json:file:./some/file.json--rw-flagβ Read/Write flag to customise parsing/output. Applies to read + write. E.g.--rw-flag csv-delimiter=;--read-flagβ Reader flag to customise parsing. E.g.--read-flag xml-mode=structured--write-flagβ Writer flag to customise output. E.g.--write-flag csv-delimiter=;-i,--inβ The format of the input data.-o,--outβ The format of the output data.--rootβ Return the root value.--compactβ Output in compact mode (no indentation/newlines).--unstableβ Allow access to potentially unstable features.--itβ Run in interactive mode (alpha).-c,--configβ Path to config file.
π INTERACTIVE OPTIONS π
and these are the ones the interactive mode gets. slightly shorter list, still slaying:
--varβ Variables to pass to the query. E.g.--var foo="bar" --var baz=json:file:./some/file.json--rw-flagβ Read/Write flag to customise parsing/output. Applies to read + write. E.g.--rw-flag csv-delimiter=;--read-flagβ Reader flag to customise parsing. E.g.--read-flag xml-mode=structured--write-flagβ Writer flag to customise output. E.g.--write-flag csv-delimiter=;-i,--inβ The format of the input data.-o,--outβ The format of the output data.-c,--configβ Path to config file.
π¦ EXAMPLES π¦
okay this is the part where it all clicks, watch this:
Query JSON from stdin:
echo '{"name": "Tom"}' | dasel 'name'
Convert JSON to YAML:
echo '{"name": "Tom"}' | dasel -i json -o yaml
Query with compact output:
echo '{"name": "Tom"}' | dasel -i json -o json --compact
see? pipe in, get out. it's giving effortless. πΈ
π SEE ALSO π
- Dasel documentation
that's the only one bestie, but it's the good one. go read it. iykyk. π
and that's the whole page!! hope this helped, you're gonna be a dasel girlie in no time, mwah πβ¨π
this lovely thing lives in the development era and the page is dated 2026-08-01 β that's the version and the date, and yes i'm mentioning them because the last line of the original said so, so here we are, sign-off style π bye bestie!! π«Ά
π¦ where this page comes from
- ubuntu stonking: dasel 3.11.2-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms