uipath-cli
latest
false
UiPath CLI 用户指南
- 概述
- 开始使用
- 概念
- 使用 UiPath CLI
- 操作指南
- CI/CD 方法
- 命令参考
- 迁移
- 参考与支持
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
uip codedapp 部署
“uip codedapp部署”的语法和选项,用于在 UiPath 中部署或升级已发布的编码网页应用程序。
uip codedapp deploy deploys or upgrades a published app in UiPath. When the app is already deployed, the command upgrades it in place; otherwise it checks that the path name is free and deploys the app. It targets the latest published version by default; pass --version to pin a specific build. Use --folder-key to pick the destination folder.
大纲
uip codedapp deploy [options]
uip codedapp deploy [options]
选项
| 标记 | 描述 |
|---|---|
-n, --name <name> | App name. Converted to the package ID the same way as in pack. When omitted, the name saved in the local app configuration is used; in an interactive terminal without a saved name, the command prompts for it. |
--display-name <name> | Human-readable app title shown in UiPath. When omitted, the title remembered from an earlier deploy is used, then --name as typed. On an upgrade, only an explicit --display-name renames the deployed app. |
--path-name <name> | App pathname in the URL (https://<org>.uipath.host/<path-name>). Defaults to the app name. On an upgrade, the path name changes only when you pass this option. To check whether a path name is free, run uip codedapp validate --path-name. |
--client-id <id> | OAuth 客户端 ID 覆盖(非机密/公共客户端)。 |
-v, --version <version> | 以特定的已发布版本为目标。默认为最新发布的版本。 |
--tags <tags> | 已部署应用程序的逗号分隔分类标签,例如governance,insights。 |
--base-url <url> | UiPath 基本 URL(身份验证覆盖)。 |
--org-id <id> | 组织 ID(身份验证覆盖)。 |
--org-name <name> | 组织名称(身份验证覆盖)。 |
--tenant-id <id> | 租户 ID(身份验证覆盖)。 |
--folder-key <key> | Folder key to deploy into. Refer to Folder selection. |
--access-token <token> | 访问令牌(身份验证覆盖)。 |
Folder selection
The destination folder is resolved in this order:
--folder-key, when passed. If the app was published into your Personal Workspace, a shared folder key is refused; if it was published into the tenant feed, a Personal Workspace folder key is refused.- The
UIPATH_FOLDER_KEYenvironment variable. - The folders available to your account, filtered to Personal Workspace or shared folders to match how the app was published. When exactly one folder matches, it is selected automatically. When several match, an interactive terminal shows a picker; a non-interactive run fails and asks for
--folder-key. Runuip or folders list --output jsonto find a folder key.
示例
# Deploy / upgrade to the latest published version
uip codedapp deploy --name "MyApp"
# Pin a specific version
uip codedapp deploy --name "MyApp" --version "1.0.0"
# Deploy into a folder
uip codedapp deploy --name "MyApp" \
--folder-key f0f0f0f0-0000-0000-0000-000000000001
# Separate display title, a custom OAuth client, and system tags
uip codedapp deploy --name "my-app" --display-name "My App" \
--client-id "my-oauth-client-id" --tags governance
# Deploy / upgrade to the latest published version
uip codedapp deploy --name "MyApp"
# Pin a specific version
uip codedapp deploy --name "MyApp" --version "1.0.0"
# Deploy into a folder
uip codedapp deploy --name "MyApp" \
--folder-key f0f0f0f0-0000-0000-0000-000000000001
# Separate display title, a custom OAuth client, and system tags
uip codedapp deploy --name "my-app" --display-name "My App" \
--client-id "my-oauth-client-id" --tags governance
数据形状(--输出 json)
{
"Code": "DeployCompleted",
"Data": { "message": "App deployed successfully." }
}
{
"Code": "DeployCompleted",
"Data": { "message": "App deployed successfully." }
}
A failed deploy returns Result: "Failure" with Message: "Deploy failed" and the cause in Instructions.
故障模式
- External application token without Apps scopes. When you sign in with an external application (client credentials) whose token carries no Apps scope, the UiPath Apps service rejects the request. The command fails with
ErrorCode: "permission_denied"and a message naming theApps.ReadandApps.Writescopes. Grant both scopes to the external application, add them touip login --scope, and sign in again. - Path name already taken. A fresh deploy fails when the path name is in use in the organization. Pass a different
--path-name. - Folder key required. A non-interactive run with several candidate folders and no
--folder-keyorUIPATH_FOLDER_KEYfails. - App not published. The command fails when no published version of the app (or of the
--versionyou passed) is found. Runuip codedapp publishfirst.
相关内容
- uip codedapp publish — 发布
deploy激活的包。 - uip codedapp pack — 生成
.nupkg使用的publish。