uipath-cli
latest
false
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath CLI 用户指南
uip codedapp pack将构建的编码应用程序打包到.nupkg存档中,准备发布。它会读取<dist>目录,应用提供的包元数据,并将存档写入--output (默认为./.uipath )。使用--dry-run预览文件列表,而不写入存档。
大纲
uip codedapp pack <dist> [options]
uip codedapp pack <dist> [options]
<dist>— 包含已构建应用程序的 dist 文件夹的路径。
选项
| 标记 | 描述 |
|---|---|
-n, --name <name> | 包名称。 |
-v, --version <version> | 包版本。默认值: 1.0.0 。 |
-o, --output <dir> | 输出目录。默认值: ./.uipath 。 |
--author <author> | 包作者。默认值: UiPath Developer 。 |
--description <desc> | 包描述。 |
--main-file <file> | 主条目文件。默认值: index.html 。 |
--content-type <type> | 内容类型: webapp 、 library或process 。默认值: webapp 。 |
--dry-run | 显示将在不写入存档的情况下打包的内容。 |
--reuse-client | 重用clientId中的现有uipath.json ,而不是发出新的 。 |
--base-url <url> | UiPath 基本 URL(身份验证覆盖)。 |
--org-id <id> | 组织 ID(身份验证覆盖)。 |
--tenant-id <id> | 租户 ID(身份验证覆盖)。 |
--access-token <token> | 访问令牌(身份验证覆盖)。 |
示例
# Default — writes ./.uipath/MyApp.1.0.0.nupkg
uip codedapp pack ./dist --name "MyApp" --version "1.0.0"
# Custom output directory and author
uip codedapp pack ./dist \
--name "MyApp" --version "2.0.0" \
--output ./packages \
--author "Contoso Ltd."
# Preview the file list — no archive written
uip codedapp pack ./dist --name "MyApp" --dry-run
# Default — writes ./.uipath/MyApp.1.0.0.nupkg
uip codedapp pack ./dist --name "MyApp" --version "1.0.0"
# Custom output directory and author
uip codedapp pack ./dist \
--name "MyApp" --version "2.0.0" \
--output ./packages \
--author "Contoso Ltd."
# Preview the file list — no archive written
uip codedapp pack ./dist --name "MyApp" --dry-run
数据形状(--输出 json)
{
"Code": "PackCompleted",
"Data": { "message": "Package created successfully." }
}
{
"Code": "PackCompleted",
"Data": { "message": "Package created successfully." }
}
相关内容
- uip codedapp push — 在打包之前将源代码发送到 Studio Web。
- uip codedapp publish — 将生成的
.nupkg上传到 UiPath。