# uip rpa files diff

> Syntax and options for `uip rpa files diff`, which opens Studio's visual side-by-side diff window for any two files.

`uip rpa files diff` opens Studio's side-by-side diff window on two files. The files can be of any type — workflows, coded files, plain text — and the comparison is purely visual: Studio renders the differences in a window and the command blocks until the user closes it.

Because the diff is rendered by Studio, the verb works only on Windows runners (Studio is Windows-only).

## Synopsis

```
uip rpa files diff --file1-path <string> --file1-title <string> --file2-path <string> --file2-title <string>
```

## Options

| Flag | Description |
|---|---|
| `--file1-path <string>` | Full path of the first file to compare. |
| `--file1-title <string>` | Title for the first file as displayed in the diff window. |
| `--file2-path <string>` | Full path of the second file, compared against the first. |
| `--file2-title <string>` | Title for the second file as displayed in the diff window. |

For the complete option list on your installed tool version, run:

```bash
uip rpa files diff --help
```

## Examples

```bash
# Compare two revisions of a workflow
uip rpa files diff \
  --file1-path C:\work\backup\Main.xaml --file1-title "Main (last release)" \
  --file2-path C:\work\MyProject\Main.xaml --file2-title "Main (current)"

# Compare a generated file with the existing one before overwriting
uip rpa files diff \
  --file1-path C:\work\MyProject\Helpers.cs --file1-title "Existing" \
  --file2-path C:\tmp\Helpers.generated.cs --file2-title "Generated"
```

## Related

- [`uip rpa studio start`](./uip-rpa-studio-start.md) — Studio renders the diff window; warm it up if you plan to chain multiple verbs.

## See also

- [RPA tool overview](./uip-rpa.md)
- [Global options](./global-options.md)
- [Exit codes](./exit-codes.md)
