Create YAML file

Apache 2.0

Create a new YAML file.

org.openrewrite.yaml.CreateYamlFile

Required

File path of new file.

Optional

Multiline text content for the file.

URL to file containing text content for the file. Use either fileContents or fileContentsUrl option.

overwriteExistingBoolean

If there is an existing file, should it be overwritten.

mod run . --recipe=org.openrewrite.yaml.CreateYamlFile \ -P relativeFileName=foo/bar/baz.yaml

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.