# diff

URL: /bengal/cli/version/diff/
Section: version
Description: Compare versions

---

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

Open LLM text
(/bengal/cli/version/diff/index.txt)

Share with AI

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

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

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

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

Command

#
`bengal version diff`

Compare versions

5Options

## Usage

```
bengal version diff [OPTIONS]
```

## Options

Option
Type
Description

`--git`

flag

`BOOLEAN`

Compare git refs instead of folder versions

`--new-version`

required

`STRING`

New version ID or git ref

`--old-version`

required

`STRING`

Old version ID or git ref

`--output`

`STRING`

Output format: summary, markdown, json

Default:`summary`

`--source`

`STRING`

Source directory path
