- Notifications
You must be signed in to change notification settings - Fork59
The CLI for codemods: scaffold, share, and run multi-step transformations of any size. First-class ast-grep support. Fast, reliable, polyglot.
License
codemod/codemod
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Codemod is the AI-powered, community-led platform for automating code migrations, framework upgrades, and large-scale changes.
This repo houses theCodemod CLI and its underlyingworkflow engine – everything you need to scaffold, test, and run codemods locally or in CI. The CLI can also connect to Codemod’s hosted Registry and Platform when you want to publish or orchestrate migrations across many repositories.
- Workflows – Scaffold, test, and orchestrate complex, multi-step migrations with ast-grep YAML or JavaScript ast-grep (jssg).
- Codemod Registry – Share or discover community codemods via
npx codemod publishornpx codemod search. - Codemod MCP – AI tools for code analysis, AST manipulation, and codemod creation in AI-powered IDEs.
# 1) Scaffold a new codemod projectnpx codemod init my-codemod# 2) Test it locallynpx codemod workflow run -w my-codemod/workflow.yaml# 3) Publish it when you're readynpx codemod publish my-codemod# 4) Run it from the Registrynpx codemod @codemod/my-codemod
See the fullCLI reference for every command and option.
The CLI is the engine that powers campaigns insideCodemod Platform.Need to coordinate changes across multiple repositories, track progress, or collaborate with your team? The Platform adds insights, orchestration, dashboards, and authoring tools that help teams successfully land large-scale code migrations.
Learn more in thedocs and share feedback on thefeedback board. We also hang out in Slack — join us atgo.codemod.com/community.
We welcome contributions to the Codemod CLI. Please see thecontributing guide to get started.
Thanks goes to these wonderful people (emoji key):
This project follows theall-contributors specification. Contributions of any kind welcome!
About
The CLI for codemods: scaffold, share, and run multi-step transformations of any size. First-class ast-grep support. Fast, reliable, polyglot.
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
