Skip to main content


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.

Install CLI

npm i -g codemod

List Available Codemods

codemod list

Run a Codemod or Recipe

codemod next/13/app-router-recipe   

next/13/app-router-recipe is a sample recipe. Replace it with any codemod or recipe name from the registry.