Create text file

Apache 2.0

Creates a new plain text file.

org.openrewrite.text.CreateTextFile

Required

Multiline text content for the file.

File path of new file.

Optional

overwriteExistingBoolean

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

mod run . --recipe=org.openrewrite.text.CreateTextFile \ -P fileContents='Some text.' \ -P relativeFileName=foo/bar/baz.txt

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