UiPath Documentation
uipath-cli
latest
false

UiPath CLI user guide

上次更新日期 2026年5月7日

uip rpa diff

uip rpa 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 diff --file1-path <string> --file1-title <string> --file2-path <string> --file2-title <string>
uip rpa diff --file1-path <string> --file1-title <string> --file2-path <string> --file2-title <string>

选项

标记描述
--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:

uip rpa diff --help
uip rpa diff --help

示例

# Compare two revisions of a workflow
uip rpa 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 diff \
  --file1-path C:\work\MyProject\Helpers.cs --file1-title "Existing" \
  --file2-path C:\tmp\Helpers.generated.cs --file2-title "Generated"
# Compare two revisions of a workflow
uip rpa 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 diff \
  --file1-path C:\work\MyProject\Helpers.cs --file1-title "Existing" \
  --file2-path C:\tmp\Helpers.generated.cs --file2-title "Generated"
  • uip rpa start-studio — Studio renders the diff window; warm it up if you plan to chain multiple verbs.

另请参阅

  • Synopsis
  • 选项
  • 示例
  • Related
  • 另请参阅

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新