UiPath Documentation
studio
2020.10
false
Studio 用户指南
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

通过命令行发布项目

可以使用 UiPath.Studio.CommandLine.exe 发布命令发布项目。

UiPath.Studio.CommandLine.exe 位于安装文件夹中:

  • 对于每台计算机的安装,默认路径为 C:\Program Files\UiPath\Studio。
  • 对于按用户安装,默认路径为 %localappdata%\Programs\UiPath\Studio。

以下参数可用于发布命令:

参数描述
-p, --project-path要发布的 project.json 的路径。此为必选参数。
-g, --target

发布项目的位置:

  • 自定义 - 自定义 URL 或本地文件夹。使用“-f”、“--feed”参数定义位置。
  • 机器人 - 机器人的默认发布位置(如果未连接到 Orchestrator)。不适用于发布库或模板。
  • Orchestrator 租户 - Orchestrator 租户流程订阅源(对于流程和测试用例)或 Orchestrator 库订阅源(对于库和模板)。
  • Orchestrator 个人文件夹 - Orchestrator 个人工作区订阅源。不适用于发布库、模板或测试用例。
  • OrchestratorFolderHierarchy - If a first-level folder with a separate package feed or one if its subfolders is selected from the folders menu in the Studio status bar, the feed for that folder hierarchy. Not available for publishing libraries or templates.
-f, --feedThe custom URL for publishing the project. This can also be a custom local directory, similar to the path in the Publish options tab in Studio.
-a, --api-key用于发布项目的 API 密钥。此参数可用于自定义目标。
-i, --icon用于包的自定义图标的路径。
-n, --notes包含引入到项目中的更改的发行说明。
-v, --new-version项目的新版本。如果未提供,版本将自动递增。
-t, --timeout指定发布项目的超时值。默认超时为 30 秒。此设置仅适用于指示将包传输到 Orchestrator 的持续时间。
--cer-path用于包签名的证书的本地路径。
--cer-password证书的密码。
--timestamper-url时间戳记程序的 URL。
--incl-all-feeds非必填。
--help查看可用于每个命令的参数。
版本检查 UiPath.Studio.CommandLine.exe 的版本。

例如:

  • 以下命令将示例流程发布到 Orchestrator 租户流程订阅源:

    UiPath.Studio.CommandLine.exe publish --project-path "C:\Users\username\Documents\UiPath\Sample\project.json"--target OrchestratorTenant --notes "Fixed a couple of bugs."

  • 以下命令会将相同流程发布到本地文件夹:

    UiPath.Studio.CommandLine.exe publish --project-path "C:\Users\username\Documents\UiPath\Sample\project.json"--target Custom --feed "C:\Users\username\Desktop\myfeed" --notes "Fixed a couple of bugs."

For more information about the CommandLine.exe utility, see Mass Update Command Line Parameters.

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新