Back to Chezmoi

`rbwFields` *name* [*arg*...]

assets/chezmoi.io/docs/reference/templates/bitwarden-functions/rbwFields.md

2.70.2643 B
Original Source

rbwFields name [arg...]

rbw returns structured data retrieved from Bitwarden using rbw. name is passed to rbw get --raw, along with any extra args, the output is parsed as JSON, and the elements of fields are returned as a dict indexed by each field's name.

The output from rbw get --raw is cached so calling rbwFields multiple times with the same arguments will only invoke rbwFields once.

!!! example

```
{{ (rbwFields "item").name.value }}
{{ (rbwFields "item" "--folder" "my-folder").name.value }}
```