Rename file

Proprietary

Renames files matching a glob pattern to a new file name, preserving the directory.

org.openrewrite.angular.migration.rename-file

Required

Glob pattern to match files (e.g., **/browserslist). Supports ** prefix to match in any directory.

The new file name (just the basename, e.g., .browserslistrc).

mod run . --recipe=org.openrewrite.angular.migration.rename-file \ -P fileMatcher='**/browserslist' \ -P fileName=.browserslistrc

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