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

UiPath CLI 用户指南

UIP 流程包

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

大纲

uip flow pack <projectPath> <outputPath> [-n <name>] [-v <version>]
uip flow pack <projectPath> <outputPath> [-n <name>] [-v <version>]

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

参数

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

选项

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

示例

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

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

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

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

# Override the package name
uip 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 project add ) 并使用uip solution pack打包时,解决方案压缩包中生成的.nupkg可能会缺少关键文件.bpmn.flowentry-points.jsonbindings_v2.json )。

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

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

另请参阅

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新