The Codemod platform gives you multiple ways to discover, run & share supported codemods and code automation recipes. With the command-line interface (CLI) you can interact with the Codemod platform using a terminal or through an automated system. The Codemod CLI requires Node.js v16+.
For a better developer experience with dry-running codemods, reviewing & tweaking automated changes, reporting issues, and sharing codemods, we recommend using the Codemod VS Code Extension.
npm i -g codemod
List Available Codemods
Run a Codemod or Recipe
next/13/app-router-recipeis a sample recipe. Replace it with any codemod or recipe name from the registry.