UiPath Documentation
uipath-cli
latest
false
UiPath CLI 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

uip Maestro 流程包

“uip Maestro Flow pack”的语法和选项,可将 Flow 项目目录打包到“.nupkg”文件中,以用于 Orchestrator 发布。

uip maestro flow pack将 Flow 项目目录打包到.nupkg文件中,准备发布到 Orchestrator。

大纲​

uip maestro flow pack <projectPath> <outputPath> [-n <name>] [-v <version>] [--author <author>] [--description <text>] [--repository-url <url>] [--repository-commit <sha>] [--repository-branch <branch>] [--repository-type <type>] [--release-notes <text>] [--project-url <url>]
uip maestro flow pack <projectPath> <outputPath> [-n <name>] [-v <version>] [--author <author>] [--description <text>] [--repository-url <url>] [--repository-commit <sha>] [--repository-branch <branch>] [--repository-type <type>] [--release-notes <text>] [--project-url <url>]

使用全局选项。退出代码遵循标准合同。

参数​

  • <projectPath> (必填) — Flow 项目目录的路径(必须包含project.uiproj和至少一个.flow文件)。
  • <outputPath> (必填) — 将写入.nupkg的输出目录。如果不存在,则进行创建。

选项​

  • -n, --name <name> — 包名称。默认为项目文件夹名称。
  • -v, --version <version> — 包版本。默认为1.0.0 。

包元数据选项(在包命令之间共享)​

选项描述
--author <author>包作者。
--description <text>包描述。
--repository-url <url>源存储库 URL,记录在包中以便追踪。
--repository-commit <sha>源存储库提交哈希。
--repository-branch <branch>源存储库分支。
--repository-type <type>源存储库类型。如果设置 git,则默认为 --repository-url。
--release-notes <text>参阅包的发行说明。
--project-url <url>Automation Hub 概念 URL。

示例​

# Pack with defaults (name = folder, version = 1.0.0)
uip maestro flow pack ./invoice-flow ./dist

# Pack with an explicit version
uip maestro flow pack ./invoice-flow ./dist --version 1.2.0

# Override the package name
uip maestro flow pack ./invoice-flow ./dist --name Invoicing.Flow --version 1.2.0
# Pack with defaults (name = folder, version = 1.0.0)
uip maestro flow pack ./invoice-flow ./dist

# Pack with an explicit version
uip maestro flow pack ./invoice-flow ./dist --version 1.2.0

# Override the package name
uip maestro flow pack ./invoice-flow ./dist --name Invoicing.Flow --version 1.2.0

数据形状(--输出 json)​

{
  "Code": "FlowPack",
  "Data": {
    "Package": "invoice-flow.1.2.0.nupkg",
    "Output": "./dist/invoice-flow.1.2.0.nupkg"
  }
}
{
  "Code": "FlowPack",
  "Data": {
    "Package": "invoice-flow.1.2.0.nupkg",
    "Output": "./dist/invoice-flow.1.2.0.nupkg"
  }
}

已知问题 - 解决方案包​

将流程项目添加到解决方案 ( uip solution projects add ) 并使用uip solution pack打包时,解决方案压缩包中生成的.nupkg可能会缺少关键文件( .bpmn 、 .flow 、 entry-points.json 、 bindings_v2.json )。

根本原因在于已发布的@uipath/tool-flow中的非递归copyFiles()帮助程序,它会静默跳过content/和flow_files/子目录。uip maestro flow pack使用递归副本,不受影响。

解决方法:直接使用uip maestro flow pack生成可部署的.nupkg文件,直到解决方案管道修复为止。

另请参阅​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新