create
command generates a new codemod function with the necessary boilerplate.
NAME
: The name of the codemod to create (e.g., “rename-function”)PATH
: The path where the codemod should be created (e.g., ”.” for current directory)--description
, -d
: A description of what the codemod should do. This will be used to generate an AI-powered implementation.codegen create rename-function .
, it creates:
codegen run rename-function
codegen deploy rename-function
--overwrite
flag to replace the existing fileupdate-imports
becomes update_imports.py
).