jx gitops yset

Modifies a value in a YAML file at a given path expression while preserving comments

Usage

jx gitops yset

Synopsis

Modifies one or more yaml files using a path expression while preserving comments

Examples

# sets the foo.bar=abc in the files *.yaml
jx-gitops yset --path foo.bar --value abc *.yaml

# sets the foo.bar=abc in the file foo.yaml
jx-gitops yset --path foo.bar --value abc --file foo.yaml

# sets the foo.bar=abc in the file foo.yaml and bar.yaml
jx-gitops --path foo.bar --value abc --file bar.yaml --file foo.yaml

Options

  -f, --file stringArray   the file(s) to process
  -h, --help               help for yset
  -p, --path string        the path expression to modify (separated by dots)
  -v, --value string       the value to modify

Source

jenkins-x-plugins/jx-gitops


Last modified February 19, 2025: chore: regenerated plugin docs (cafb845ac6)