Select
Select is the default command for the
dasel
cli.The select command allows you to select data from any supported data structure.
$ echo '{"name":{"first":"Tom","last":"Wright"}}' | dasel -r json 'name.first'
"Tom"
Flag | Type | Description | Default |
---|---|---|---|
--colour | bool | Print colourised output. | false |
--escape-html | bool | Escape HTML tags when writing output. | false |
-f , --file | string | The file to query.
If no file is given dasel reads from stdin . | |
--pretty | bool | Pretty print the output. | true |
-r , --read | string | The parser to use when reading.
If no parser is given dasel attempts to find a parser from the --file flag. | |
-s , --selector | string | The selector used to query the input data.
If no flag is given dasel attempts to use the first argument as the selector. | |
-w , --write | string | The parser to use when writing.
If no parser is given dasel will use the --read flag. | |
Last modified 9mo ago