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

uip maestro bpmn pack

Syntax and options for `uip maestro bpmn pack`, which packages a Maestro project directory into a `.nupkg` for Orchestrator publication.

uip maestro bpmn pack packages a Maestro project directory into a .nupkg ready to publish to Orchestrator as a Process Orchestration release. It's registered under the bpmn branch.

大纲

uip maestro bpmn 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 bpmn 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> (必填) — Maestro 项目目录的路径(必须包含project.uiproj.bpmn以及由init创建的元数据文件)。
  • <outputPath> (必填) — 将写入.nupkg的输出目录。

选项

选项描述
-n, --name <name>Package name. Defaults to the project folder name.
-v, --version <version>Package version. Defaults to 1.0.0.
--author <author>包作者。
--description <text>包描述。
--repository-url <url>Source repository URL, recorded in the package for traceability.
--repository-commit <sha>Source repository commit hash, recorded for traceability.
--repository-branch <branch>源存储库分支。
--repository-type <type>Source repository type. Defaults to git when --repository-url is set.
--release-notes <text>参阅包的发行说明。
--project-url <url>Automation Hub 概念 URL。

示例

# Pack with defaults
uip maestro bpmn pack ./invoice-orchestration ./dist

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

# Pack with traceability metadata for CI provenance
uip maestro bpmn pack ./invoice-orchestration ./dist --version 1.2.0 \
  --repository-url https://github.com/acme/invoice-orchestration \
  --repository-commit "$GIT_SHA" --repository-branch main
# Pack with defaults
uip maestro bpmn pack ./invoice-orchestration ./dist

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

# Pack with traceability metadata for CI provenance
uip maestro bpmn pack ./invoice-orchestration ./dist --version 1.2.0 \
  --repository-url https://github.com/acme/invoice-orchestration \
  --repository-commit "$GIT_SHA" --repository-branch main

数据形状(--输出 json)

{
  "Code": "MaestroPack",
  "Data": {
    "Package": "invoice-orchestration@1.2.0",
    "Output":  "./dist/invoice-orchestration.processOrchestration.ProcessOrchestration.1.2.0.nupkg"
  }
}
{
  "Code": "MaestroPack",
  "Data": {
    "Package": "invoice-orchestration@1.2.0",
    "Output":  "./dist/invoice-orchestration.processOrchestration.ProcessOrchestration.1.2.0.nupkg"
  }
}

生成的.nupkg文件名对<name>.processOrchestration.ProcessOrchestration.<version>.nupkg进行编码。

另请参阅

  • 大纲
  • 参数
  • 选项
  • 示例
  • 数据形状(--输出 json)
  • 另请参阅

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新