Rename a file

Apache 2.0

Rename a file while keeping it in the same directory.

org.openrewrite.RenameFile

Required

Matching files will be renamed. This is a glob expression.

Just the file name without the folder path that precedes it.

mod run . --recipe=org.openrewrite.RenameFile \ -P fileMatcher='**/application-*.yml' \ -P fileName=application.yml

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