> ## Documentation Index
> Fetch the complete documentation index at: https://docs.versuno.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# versuno prompts diff

> Show the diff between a local file and its latest remote version.

```
versuno prompts diff <id> [--version <n>]
```

Fetches the remote content of an asset and prints a unified diff against the local copy. Output is colorized when the terminal supports it.

## Arguments

| Argument | Required | Description                  |
| -------- | -------- | ---------------------------- |
| `id`     | Yes      | Asset ID (e.g. `ctx_abc123`) |

## Options

| Flag            | Description                                                                         |
| --------------- | ----------------------------------------------------------------------------------- |
| `--version <n>` | Diff against a specific version number instead of the latest.                       |
| `--format json` | Output a JSON object with the raw diff string instead of colorized terminal output. |

## Example

```bash theme={null}
# Diff the local file against the latest remote version
versuno prompts diff ctx_abc123

# Diff against version 3
versuno prompts diff ctx_abc123 --version 3
```

## Output

```diff theme={null}
--- contexts/onboarding.md (remote v4)
+++ contexts/onboarding.md (local)
@@ -1,5 +1,6 @@
 Welcome to the onboarding flow.
-Please follow these steps carefully.
+Follow these steps in order.
+Contact support if you get stuck.
```

## See also

* [versuno prompts push](/cli/push) — push changes after reviewing the diff
* [versuno prompts log](/cli/log) — view version history
