Build a codemod package
Login to Codemod platform
Publish codemod
codemod-template
and your codemods, or any future updates to them, will automatically get published to Codemod Registry.Login to Codemod platform
Publish codemod
codemodrc.json
configuration file automatically for you.await
or import.meta
, you can rename it to use .mjs
or .mts
extension or specify --esm
flag to treat the source file as ESM package explicitly.Run with CLI
. After publishing the codemod, you will be able to run the codemod using Codemod CLI while being logged in with the same user used on Codemod Studio.
To run the codemod, you can simply copy the exported command in the pop-up modal and run the command on any local codebase of your choice.
codemod unpublish
command.