Select

Description

This command allows you to select data from data structures.

It will not modify the source data in any way.

Usage

dasel select -f <file> <selector>

Flags

Example

Select the image within a kubernetes deployment manifest file:

$ dasel select -f deployment.yaml "spec.template.spec.containers.(name=auth).image"
"tomwright/auth:v1.0.0"

Piping data into the select:

$ cat deployment.yaml | dasel select -p yaml "spec.template.spec.containers.(name=auth).image"
"tomwright/auth:v1.0.0"

Last updated