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 yset --path foo.bar --value abc --file bar.yaml --file foo.yaml%!(EXTRA string=jx-gitops, string=jx-gitops)

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 June 17, 2021: chore: regenerated plugin docs (5ce430a975)