# codemod

URL: /bengal/cli/codemod/
Section: cli
Description: Run automated code migrations

---

> For a complete page index, fetch /bengal/llms.txt.

Open LLM text
(/bengal/cli/codemod/index.txt)

Share with AI

Ask Claude
(https://claude.ai/new?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fbengal%2Fcli%2Fcodemod%2Findex.txt)

Ask ChatGPT
(https://chatgpt.com/?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fbengal%2Fcli%2Fcodemod%2Findex.txt)

Ask Gemini
(https://gemini.google.com/app?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fbengal%2Fcli%2Fcodemod%2Findex.txt)

Ask Copilot
(https://copilot.microsoft.com/?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fbengal%2Fcli%2Fcodemod%2Findex.txt)

Command

#
`bengal codemod`

Run automated code migrations

4Options

## Usage

```
bengal codemod [OPTIONS]
```

## Options

Option
Type
Description

`--diff`

flag

`BOOLEAN`

Show unified diff of changes

`--dry-run`

flag

`BOOLEAN`

Preview changes without modifying files

`--path`

required

`STRING`

Directory path to process recursively

`--yes`

flag

`BOOLEAN`

Skip confirmation prompt (for CI/automation)
