Change TOML key

Apache 2.0

Change a TOML key, while leaving the value intact.

org.openrewrite.toml.ChangeKey

Required

A TOML path expression to locate a key.

The new name for the key.

mod run . --recipe=org.openrewrite.toml.ChangeKey \ -P oldKeyPath=package.name \ -P newKey=project-name

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