mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-10 16:55:40 +00:00
11 lines
336 B
Markdown
11 lines
336 B
Markdown
# Envsubst
|
|
|
|
This operator is used to replace environment variables in strings using [envsubst](https://github.com/a8m/envsubst).
|
|
|
|
To replace environment variables across all values in a document, this can be used with the recursive descent operator
|
|
as follows:
|
|
|
|
```bash
|
|
yq eval '(.. | select(tag == "!!str")) |= envsubst' file.yaml
|
|
```
|