- 概述
- 开始使用
- 概念
- 使用 UiPath CLI
- 操作指南
- CI/CD 方法
- 命令参考
- 迁移
- 参考与支持
UIP 解决方案部署
“uip solutionDeploy”的语法和选项,用于在 Orchestrator 中安装、升级、激活和卸载解决方案部署。
uip solution deploy采用已发布的解决方案包(查看uip solution publish )并将其安装到 Orchestrator 中:创建文件夹,配置资源(队列、资产、流程、存储桶、连接),并激活部署。
本页涵盖 deploy 下的每个子命令。
run, status, list, and config get accept --feed <name-or-key> to work with a folder feed. Refer to uip solution feeds to list the feeds you can reach. For more information about folder feeds, refer to Solution feed in the Solutions Management documentation.
| 子命令 | 用途 |
|---|---|
run | 从已发布的包中安装部署。 |
upgrade | 将现有部署就地移动到其包的另一个已发布版本。 |
status | 按名称或键查看部署的状态,或管道部署运行的进度。 |
list | 列出现有部署。 |
activate | 激活未自动激活功能安装的部署。 |
uninstall | 删除部署及其配置的资源。 |
delete | 删除uninstall无法移除的部署记录。 |
config get | 获取包的默认部署配置。 |
config set | 在部署配置文件中设置资源属性。 |
config link | 将解决方案资源链接到现有的 Orchestrator 资源。 |
config unlink | 从部署配置文件中删除资源链接。 |
每个子命令都经过身份验证。请先运行uip login 。
典型工作流
deploy config get → deploy config set / link → deploy run → deploy status
│
├─→ deploy activate (if not auto-activated)
├─→ deploy upgrade (new package version, same deployment)
└─→ deploy uninstall (tear down) → deploy delete
deploy config get → deploy config set / link → deploy run → deploy status
│
├─→ deploy activate (if not auto-activated)
├─→ deploy upgrade (new package version, same deployment)
└─→ deploy uninstall (tear down) → deploy delete
deploy run键入设为--name 。尚不存在的名称将在新文件夹中获取新部署。如果包已部署,则deploy run会停止并指向deploy upgrade ,这会将现有部署移动到另一个版本。要安装第二个单独的副本,请传递-y, --yes和不同的--name 。
uip 解决方案部署运行
在 Orchestrator 中从已发布的包中安装解决方案部署。创建新文件夹(在--parent-folder-path或--parent-folder-key ,或当前用户的个人工作区下),配置包(或--config-file中)描述的每个资源,并将其激活(除非设置了--skip-activate )。
部署的密钥为--name 。在安装之前,该命令会检查包是否已有部署;如果是,它会停止并指向deploy upgrade 。检查会尽最大努力:查找失败仅发出警告,在外部应用程序(客户端凭据)登录下,现有部署将报告为警告,而不是停止部署。
在安装任何内容之前,会根据目标验证包。验证失败使运行在ValidationFailed结束,错误为Instructions ,并且未安装任何内容。被拒绝的尝试将保留为待处理草稿:修复配置并重新运行相同的命令,服务器将再次使用新文件验证草稿。文件未命名的设置和资源链接会保留拒绝草稿的值。
After the package is installed, the command checks that the deployment's folder has a runtime for the unattended jobs of its RPA processes, test cases, and MCP servers, for example an Unattended or serverless machine. A missing runtime does not fail the deploy: it is reported in Data.Warnings and on stderr. Refer to Folder runtime warnings.
While the command waits, it writes a progress line to stderr each time the status changes, and at least every 30 seconds. --log-level error turns the progress lines off.
大纲
uip solution deploy run \
--name <deployment-name> \
--package-name <name> \
--package-version <version> \
--folder-name <name> \
[--parent-folder-path <path> | --parent-folder-key <guid> | --personal-workspace] \
[--feed <name-or-key>] \
[--config-file <path>] \
[--skip-activate] \
[-y, --yes] \
[--acknowledge-permanent-deletion] \
[--timeout <seconds>] \
[--poll-interval <ms>] \
[--login-validity <minutes>]
uip solution deploy run \
--name <deployment-name> \
--package-name <name> \
--package-version <version> \
--folder-name <name> \
[--parent-folder-path <path> | --parent-folder-key <guid> | --personal-workspace] \
[--feed <name-or-key>] \
[--config-file <path>] \
[--skip-activate] \
[-y, --yes] \
[--acknowledge-permanent-deletion] \
[--timeout <seconds>] \
[--poll-interval <ms>] \
[--login-validity <minutes>]
选项
| 长 | 值 | 默认 | 描述 |
|---|---|---|---|
-n, --name <deployment-name> | text | — | 必需。部署的名称。由deploy status 、 deploy upgrade 、 deploy activate 、 deploy uninstall和deploy delete用于标识此安装。 |
--package-name <name> | text | — | 必需。解决方案包名称。使用packages list查找可用名称。 |
--package-version <version> | text | — | 必需。解决方案包版本 |
--folder-name <name> | text | — | 必需。为此部署创建的新 Orchestrator 文件夹的名称。 |
--parent-folder-path <path> | 路径 | — | 父文件夹路径(例如 Shared)。系统将在其下创建部署文件夹。与 --parent-folder-key 和 --personal-workspace 互斥。 |
--parent-folder-key <key> | GUID | — | 父文件夹密钥。--parent-folder-path 的替代方案。 |
--personal-workspace | 标记 | 关闭 | 部署到当前用户的个人工作区。工作区名称由 Orchestrator 自动解析。需要用户登录;外部应用程序没有个人工作区。与--parent-folder-path 、 --parent-folder-key和--feed互斥。 |
--feed <name-or-key> | text | 租户订阅源 | 部署已发布到此订阅源( solution feeds list中的名称或文件夹键)而非租户订阅源的包。馈送包来自的此作用域 — --parent-folder-path / --parent-folder-key / --personal-workspace标志仍控制创建 Orchestrator 文件夹的位置。需要用户登录;系统会拒绝外部应用程序登录,而不是将其部署到租户订阅源。与--personal-workspace互斥。 |
--config-file <path> | 路径 | — | JSON 或 YAML 配置文件。使用deploy config get生成,使用config set / config link编辑,然后在此处传递。 |
--skip-activate | 标记 | 关闭 | 跳过自动激活;将部署保留为 Inactive (Ready to activate) 状态。稍后使用deploy activate激活。 |
-y, --yes | 标记 | 关闭 | 即使此包已存在部署,也仍进行部署。如无它,命令将查找包,如果已部署则停止。检查会尽最大努力:查找失败仅发出警告,在外部应用程序(客户端凭据)登录下,现有部署将报告为警告,而不是停止部署。--yes只会跳过检查。重用现有部署的--name会就地更新部署;针对单独的副本传递不同的--name 。 |
--acknowledge-permanent-deletion | 标记 | 关闭 | 确认已永久删除此部署用链接替换的已安装资源及其数据。否则,部署将在服务器发出确认请求时停止,列出这些资源,然后安装任何内容。使用它,CLI 确认列出的每个资源,并在相同的--timeout中再次运行相同的安装。独立于--yes 。请参阅永久删除被替换的资源。 |
--timeout <seconds> | 秒 | 360 | 每个阶段应用的轮询超时 — 部署,并且(如未跳过)激活。 |
--poll-interval <ms> | 毫秒 | 5000 | 在部署和激活阶段,状态轮询之间相隔以毫秒为单位。 |
--login-validity <minutes> | 分钟 | 10 | 在令牌过期前触发刷新的最短分钟数。 |
示例
常见
uip solution deploy run \
--name my-deployment \
--package-name my-package \
--package-version 1.0.0 \
--folder-name MySolution \
--parent-folder-path "Shared"
uip solution deploy run \
--name my-deployment \
--package-name my-package \
--package-version 1.0.0 \
--folder-name MySolution \
--parent-folder-path "Shared"
跳过自动激活
uip solution deploy run \
--name my-deployment \
--package-name my-package --package-version 1.0.0 \
--folder-name MySolution --parent-folder-path "Shared" \
--skip-activate
uip solution deploy run \
--name my-deployment \
--package-name my-package --package-version 1.0.0 \
--folder-name MySolution --parent-folder-path "Shared" \
--skip-activate
进入个人工作区
uip solution deploy run \
--name my-deployment \
--package-name my-package --package-version 1.0.0 \
--folder-name MySolution --personal-workspace
uip solution deploy run \
--name my-deployment \
--package-name my-package --package-version 1.0.0 \
--folder-name MySolution --personal-workspace
已部署包的第二个独立副本
uip solution deploy run \
--name my-deployment-2 \
--package-name my-package --package-version 1.0.0 \
--folder-name MySolutionCopy --parent-folder-path "Shared" --yes
uip solution deploy run \
--name my-deployment-2 \
--package-name my-package --package-version 1.0.0 \
--folder-name MySolutionCopy --parent-folder-path "Shared" --yes
来自文件夹订阅源
uip solution deploy run \
--name my-deployment \
--package-name my-package --package-version 1.0.0 \
--folder-name MySolution --feed Finance
uip solution deploy run \
--name my-deployment \
--package-name my-package --package-version 1.0.0 \
--folder-name MySolution --feed Finance
使用自定义配置
uip solution deploy config get my-package -d ./deploy-config.json
uip solution deploy config set ./deploy-config.json MyQueue maxNumberOfRetries 5
uip solution deploy run \
--name my-deployment \
--package-name my-package --package-version 1.0.0 \
--folder-name MySolution --parent-folder-path "Shared" \
--config-file ./deploy-config.json
uip solution deploy config get my-package -d ./deploy-config.json
uip solution deploy config set ./deploy-config.json MyQueue maxNumberOfRetries 5
uip solution deploy run \
--name my-deployment \
--package-name my-package --package-version 1.0.0 \
--folder-name MySolution --parent-folder-path "Shared" \
--config-file ./deploy-config.json
脚本编写 — 捕获部署 ID 以供后续调用
PIPELINE_ID=$(uip solution deploy run \
--name my-deployment \
--package-name my-package --package-version 1.0.0 \
--folder-name MySolution --parent-folder-path "Shared" \
--output-filter "PipelineDeploymentId" --output plain)
uip solution deploy status "$PIPELINE_ID"
PIPELINE_ID=$(uip solution deploy run \
--name my-deployment \
--package-name my-package --package-version 1.0.0 \
--folder-name MySolution --parent-folder-path "Shared" \
--output-filter "PipelineDeploymentId" --output plain)
uip solution deploy status "$PIPELINE_ID"
数据形状(--输出 json)
此命令等待部署完成,以--timeout为边界:
{
"Code": "SolutionDeployRun",
"Data": {
"Status": "DeploymentSucceeded",
"OrchestratorUrl": "https://cloud.uipath.com/my-org/my-tenant/orchestrator_/solutions-management/deployments(sidepanel:sidepanel/solutions-management/deployment-details/a1b2c3d4-0000-0000-0000-000000000001/overview)?allowBindings=true",
"FolderUrl": "https://cloud.uipath.com/my-org/my-tenant/orchestrator_/processes?fkey=d4e5f6a7-0000-0000-0000-000000000001",
"DeploymentKey": "a1b2c3d4-0000-0000-0000-000000000001",
"PipelineDeploymentId": "b2c3d4e5-0000-0000-0000-000000000001",
"InstanceId": "c3d4e5f6-0000-0000-0000-000000000001",
"FolderName": "MySolution",
"FolderPath": "Shared/MySolution",
"ActivationStatus": "SuccessfulActivate"
}
}
{
"Code": "SolutionDeployRun",
"Data": {
"Status": "DeploymentSucceeded",
"OrchestratorUrl": "https://cloud.uipath.com/my-org/my-tenant/orchestrator_/solutions-management/deployments(sidepanel:sidepanel/solutions-management/deployment-details/a1b2c3d4-0000-0000-0000-000000000001/overview)?allowBindings=true",
"FolderUrl": "https://cloud.uipath.com/my-org/my-tenant/orchestrator_/processes?fkey=d4e5f6a7-0000-0000-0000-000000000001",
"DeploymentKey": "a1b2c3d4-0000-0000-0000-000000000001",
"PipelineDeploymentId": "b2c3d4e5-0000-0000-0000-000000000001",
"InstanceId": "c3d4e5f6-0000-0000-0000-000000000001",
"FolderName": "MySolution",
"FolderPath": "Shared/MySolution",
"ActivationStatus": "SuccessfulActivate"
}
}
OrchestratorUrl opens the deployment in Orchestrator, and FolderUrl opens the automations of the folder it was installed into. Either field is absent when the CLI cannot build the link, for example when the installed folder cannot be read. With --log-level info, the Orchestrator link is also written to stderr as Deployed: <url>.
已安装但需要在 Orchestrator 中安装程序激活才能激活的部署将返回Result: Success和ActivationStatus: NeedsSetupToActivate 。请勿再次部署;配置列出的资源并激活:
{
"Code": "SolutionDeployRun",
"Data": {
"Status": "DeploymentSucceeded",
"DeploymentKey": "a1b2c3d4-0000-0000-0000-000000000003",
"PipelineDeploymentId": "b2c3d4e5-0000-0000-0000-000000000003",
"InstanceId": null,
"FolderName": "MySolution",
"FolderPath": "Shared/MySolution",
"ActivationStatus": "NeedsSetupToActivate",
"PendingResources": [
{
"Kind": "connection",
"Name": "Outlook",
"Type": "uipath-microsoft-outlook365",
"Reason": "[CNS1072] You will need to authenticate this connection before proceeding further"
}
],
"NextSteps": [
"Deployment 'my-deployment' is installed at version 1.0.0 but not live: it needs 'Setup activation' before it can be activated.",
"Resources that need configuration: connection 'Outlook' (uipath-microsoft-outlook365): [CNS1072] You will need to authenticate this connection before proceeding further."
]
}
}
{
"Code": "SolutionDeployRun",
"Data": {
"Status": "DeploymentSucceeded",
"DeploymentKey": "a1b2c3d4-0000-0000-0000-000000000003",
"PipelineDeploymentId": "b2c3d4e5-0000-0000-0000-000000000003",
"InstanceId": null,
"FolderName": "MySolution",
"FolderPath": "Shared/MySolution",
"ActivationStatus": "NeedsSetupToActivate",
"PendingResources": [
{
"Kind": "connection",
"Name": "Outlook",
"Type": "uipath-microsoft-outlook365",
"Reason": "[CNS1072] You will need to authenticate this connection before proceeding further"
}
],
"NextSteps": [
"Deployment 'my-deployment' is installed at version 1.0.0 but not live: it needs 'Setup activation' before it can be activated.",
"Resources that need configuration: connection 'Outlook' (uipath-microsoft-outlook365): [CNS1072] You will need to authenticate this connection before proceeding further."
]
}
}
对于--skip-activate , ActivationStatus为Skipped 。
仅当请求的 RequestedFolderName 和 FolderNote 已被占用时,--folder-name 才会显示:Orchestrator 会冲突重命名文件夹,而不是重新使用文件夹,因此实际的 FolderName/FolderPath 与请求的 FolderNote 不同使用指针解释重命名,以使用重命名的文件夹或使用自由名称重新运行。
终端部署状态: DeploymentSucceeded 、 DeploymentFailed 、 ValidationFailed 、 ConflictFixingError 、 DeploymentScheduleError 。不成功的最终状态以1退出,并将验证/冲突/计划/工作流错误聚合到Instructions字段中。
Folder runtime warnings
deploy run and deploy upgrade check the deployment's folder after the install. The check covers RPA processes, test cases, and MCP servers. Apps, agents, flows, API workflows, functions, cases, and BPMN processes need no machine in the folder and are not checked. A process linked to an existing process is not checked either, because its jobs run in the folder of the linked process.
The command still returns Result: Success. Data.Warnings is present only when there is something to report, and each entry is also written to stderr:
{
"Code": "SolutionDeployRun",
"Data": {
"Status": "DeploymentSucceeded",
"DeploymentKey": "a1b2c3d4-0000-0000-0000-000000000004",
"PipelineDeploymentId": "b2c3d4e5-0000-0000-0000-000000000004",
"InstanceId": "c3d4e5f6-0000-0000-0000-000000000004",
"FolderName": "MySolution",
"FolderPath": "Shared/MySolution",
"ActivationStatus": "SuccessfulActivate",
"Warnings": [
"Folder 'Shared/MySolution' has no runtime for unattended jobs of the Process process 'InvoiceBot' (...): its triggers and the jobs Orchestrator starts will not run until one is assigned. ..."
]
}
}
{
"Code": "SolutionDeployRun",
"Data": {
"Status": "DeploymentSucceeded",
"DeploymentKey": "a1b2c3d4-0000-0000-0000-000000000004",
"PipelineDeploymentId": "b2c3d4e5-0000-0000-0000-000000000004",
"InstanceId": "c3d4e5f6-0000-0000-0000-000000000004",
"FolderName": "MySolution",
"FolderPath": "Shared/MySolution",
"ActivationStatus": "SuccessfulActivate",
"Warnings": [
"Folder 'Shared/MySolution' has no runtime for unattended jobs of the Process process 'InvoiceBot' (...): its triggers and the jobs Orchestrator starts will not run until one is assigned. ..."
]
}
}
| Warning | 意义 |
|---|---|
Folder '<path>' has no runtime for unattended jobs of the <type> process '<name>' ... | Triggers and jobs that Orchestrator starts do not run until a machine with the right slots is assigned to the folder. Running the process attended from Assistant is not affected. |
Folder '<path>' has no serverless runtime for the <type> process '<name>' ... | The process does not start until a serverless machine is assigned to the folder. |
Could not check that ... has the runtimes the package's processes need: <reason> ... | The check did not run. The deploy is not affected. |
Each warning names the commands that fix it: uip or machines list, uip or machines assign <machine-key> --folder-path <path>, and uip or folders runtimes --folder-path <path> to check the result. Do not deploy again; assign the machine.
永久删除已替换的资源
当部署或升级用链接替换已安装的资源时(例如deploy config link ),服务器将在继续运行时永久删除已安装的资源及其数据。它会先要求您确认:运行在DeploymentScheduleError停止,直到您确认删除为止。本节适用于deploy run和deploy upgrade 。
没有--acknowledge-permanent-deletion ,命令将失败,退出代码为1 、 ErrorCode: invalid_argument和Retry: RetryWillNotFix 。不会安装任何内容,并且该尝试将保留为待处理草稿。该消息会命名每个要删除的资源。失败信封的Data包含PipelineDeploymentId 、 DeploymentKey (保留的草稿)和PermanentDeletionResources ,每个资源一个条目:
| 字段 | 描述 |
|---|---|
Key | 部署上的资源密钥。 |
Kind | 服务器报告的资源类型,或null 。 |
Name | 资源名称或其键(如果没有名称)。 |
Instructions双向命名:
- 要确认删除,请使用
--acknowledge-permanent-deletion重新运行相同的命令。 - 要在
deploy run上保留已安装的副本,请使用--config-file从deploy config unlink中删除这些链接,然后重新运行。在deploy upgrade放弃草稿,直接在没有这些链接的情况下升级,或先从 Orchestrator 的部署中删除链接。
使用--acknowledge-permanent-deletion时,命令会读取服务器要确认的资源,确认每个资源,然后再次运行相同的安装。它仅确认其可以命名的删除操作:
- 如果无法读取资源列表,则系统不会确认或安装任何内容,并且命令将失败。
- 如果服务器拒绝确认,则不会再次运行安装。故障前已确认的资源在草稿上保持确认状态。
404表示服务器尚未提供确认路由;改为在 Orchestrator 中确认删除。 - 如果在运行状态下更改部署,则不会再次运行安装,并且
Instructions会要求您查看 Orchestrator 中的部署,因为确认是按名称向部署发送的。 - 如果服务器在确认列出的每个资源后再次要求确认,则该命令将停止而不是循环。
重新运行安装成功后,已删除的资源将显示在Data.PermanentlyDeletedResources中。如果重新运行在运行之前被拒绝,则系统不会删除任何内容,但确认会保留在保留的草稿中,因此再次运行相同的命令将在不询问的情况下删除这些资源。
超时行为
如果部署在--timeout过去之前未达到终止状态,则命令将非零退出,并将指针指向deploy status <pipeline-deployment-id> ,以便您继续监控。
故障模式
- 该包已具有部署。拒绝,除非通过传递
-y, --yes。使用deploy upgrade将现有部署移动到新版本,或传递带有不同--name的--yes以安装第二个单独的副本。 - 验证失败。运行于
ValidationFailed结束,未安装任何内容。被拒绝的尝试将保留为待处理草稿;修复配置,然后重新运行命令。当运行是对现有部署的更新时,Instructions还会命名会放弃草稿并升级实时版本的deploy upgrade <deployment-key> --discard-draft --version <version>命令。 --namehas a pending draft for another version. Refused. Re-run with the draft's--package-versionto retry the draft, or discard it withdeploy upgrade --discard-draft. When the draft is left by the first deploy of the name, nothing is installed to upgrade:Instructionsnames thedeploy deletecommand that removes the draft.- The account has no permission to deploy into the folder (HTTP 403). Fails with
ErrorCode: permission_deniedandRetry: RetryWillNotFix. The message names the folder and the permissions that deploying needs:SolutionDeployments.Createon the tenant orFolderSolutionDeployments.Createon the folder, and for an External Application theSolutions.Deployments.Writescope. Under a user login,Instructionsalso gives the Personal Workspace route: publish withuip solution publish <package.zip> --personal-workspace, then run the deploy with--personal-workspacein place of--feed,--parent-folder-path, and--parent-folder-key. - 存在
--name绑定到其他 的--package-name。完全失败 — 部署名称无法通过deploy run切换包。 --name的部署已在进行中。失败 — 必须先完成前一个操作。
uip 解决方案部署升级
将现有部署就地升级到其包的另一个已发布版本。此 CLI 等效于 Orchestrator 中的“升级”按钮。等deploy run停止时使用它,因为包已经部署。部署的现有配置会保留,因此不会将已在其上设置的值(例如凭据资产的密码)重置为包默认值。
To change the configuration of a deployment, pass --config-file. For example, link a connection that the deploy created to an existing, authenticated one. With --version set to the deployed version, only the configuration changes, and the command reports Operation: ConfigurationChange.
The package is validated against the target before anything is installed. A validation failure reports the errors and leaves the deployment on its current version. The command waits for the upgrade to finish unless --no-wait is passed; track a running upgrade with deploy status <pipeline-deployment-id>. While it waits, it writes progress lines to stderr, as deploy run does.
After the new version is installed, the command checks the deployment's folder for the runtimes its processes need, and reports a missing one in Data.Warnings. Refer to Folder runtime warnings.
大纲
uip solution deploy upgrade <deployment-key> [options]
uip solution deploy upgrade --name <deployment-name> --package-name <name> [options]
uip solution deploy upgrade <deployment-key> [options]
uip solution deploy upgrade --name <deployment-name> --package-name <name> [options]
通过密钥或通过使用--name --package-name来对部署进行定位,而不是同时使用两者。
参数
[deployment-key]— 要升级的部署的密钥(deploy list报告为Key),或存储的InstallDeploymentKey。部署的名称、包、当前版本和订阅源是从服务器读取的,因此不需要--package-name和--personal-workspace。需使用此参数或将--name与--package-name配合使用。
选项
| 长 | 值 | 默认 | 描述 |
|---|---|---|---|
-n, --name <deployment-name> | text | — | 要升级的部署的名称,由deploy list报告。搭配--package-name 。此命令在安装前会检查名称是否存在,因此会拒绝输入错误的名称,而不会创建新的部署。 |
--package-name <name> | text | — | 部署的包。需要适用于--name 。 |
--version <version> | text | 最新发布 | 目标包版本。接受同一包的任何已发布版本,包括旧版本。会拒绝空值。 |
--config-file <path> | 路径 | — | JSON or YAML deployment configuration to apply with the upgrade. It is the same file that deploy run --config-file takes: generate it with deploy config get, then edit it with config set or config link. Each resource the file names is applied as written, so a file straight from config get sets those resources back to the package defaults. A resource the file leaves out keeps the values the deployment has. Keep only the resources you change. |
--personal-workspace | 标记 | 关闭 | 使用--name :升级个人工作区订阅源中的部署(而非租户)。使用密钥,可以从部署中读取订阅源,并且不需要此标志。 |
--acknowledge-permanent-deletion | 标记 | 关闭 | 确认已永久删除新版本替换为链接的已安装资源及其数据。否则,升级将会在服务器确认请求时停止,列出这些资源,然后安装任何内容。使用它,CLI 确认列出的每个资源,并在相同的--timeout中再次运行相同的升级,并重新运行相同版本的待处理草稿,等待此确认(而不是拒绝)。对--no-wait没有影响,该变量永远不会看到运行结束。请参阅永久删除被替换的资源。 |
--discard-draft | 标记 | 关闭 | 当部署存在待处理草稿(从未完成的先前尝试,通常被验证拒绝)时,请先放弃草稿,然后升级实时版本。如无它,此类部署会被拒绝,因为服务器将使用被拒绝的配置重新运行草稿。使用--name时,仅在用户登录名下找到草稿;在“外部应用程序”下,请传递部署密钥。 |
--no-wait | 标记 | 关闭 | 接受升级后立即返回,而不是等待升级完成。 |
--timeout <seconds> | 秒 | 300 | 等待升级完成的秒数。 |
--poll-interval <ms> | 毫秒 | 5000 | 状态轮询之间的毫秒数。 |
--login-validity <minutes> | 分钟 | 10 | 在令牌过期前触发刷新的最短分钟数。 |
这两种表单都在外部应用程序(客户端凭据)登录下工作,因此可以在 CI/CD 管道中运行。个人工作区或文件夹订阅源中的部署需要用户登录。--name表单没有--feed选项;如要升级文件夹订阅源中的部署,请传递其密钥。
示例
# By key, to the newest published version
uip solution deploy upgrade c3d4e5f6-0000-0000-0000-000000000003
# By name, to the newest published version
uip solution deploy upgrade --name my-deployment --package-name my-package
# To a specific published version (for example from a CI/CD pipeline)
uip solution deploy upgrade --name my-deployment --package-name my-package --version 1.5.0
# Start the upgrade without waiting
uip solution deploy upgrade --name my-deployment --package-name my-package --no-wait
# Discard the pending draft a rejected attempt left behind, then upgrade the live version
uip solution deploy upgrade c3d4e5f6-0000-0000-0000-000000000003 --version 2.0.0 --discard-draft
# Relink a deployment's resources without moving its version
uip solution deploy config get my-package --package-version 1.5.0 -d ./deploy-config.json
uip solution deploy config link ./deploy-config.json Outlook --name SharedOutlook --folder-path "Shared"
uip solution deploy upgrade c3d4e5f6-0000-0000-0000-000000000003 --version 1.5.0 --config-file ./deploy-config.json
# By key, to the newest published version
uip solution deploy upgrade c3d4e5f6-0000-0000-0000-000000000003
# By name, to the newest published version
uip solution deploy upgrade --name my-deployment --package-name my-package
# To a specific published version (for example from a CI/CD pipeline)
uip solution deploy upgrade --name my-deployment --package-name my-package --version 1.5.0
# Start the upgrade without waiting
uip solution deploy upgrade --name my-deployment --package-name my-package --no-wait
# Discard the pending draft a rejected attempt left behind, then upgrade the live version
uip solution deploy upgrade c3d4e5f6-0000-0000-0000-000000000003 --version 2.0.0 --discard-draft
# Relink a deployment's resources without moving its version
uip solution deploy config get my-package --package-version 1.5.0 -d ./deploy-config.json
uip solution deploy config link ./deploy-config.json Outlook --name SharedOutlook --folder-path "Shared"
uip solution deploy upgrade c3d4e5f6-0000-0000-0000-000000000003 --version 1.5.0 --config-file ./deploy-config.json
数据形状(--输出 json)
通过密钥升级:
{
"Code": "SolutionDeployUpgrade",
"Data": {
"Status": "DeploymentSucceeded",
"OrchestratorUrl": "https://cloud.uipath.com/my-org/my-tenant/orchestrator_/solutions-management/deployments(sidepanel:sidepanel/solutions-management/deployment-details/d4e5f6a7-0000-0000-0000-000000000004/overview)?allowBindings=true",
"FolderUrl": "https://cloud.uipath.com/my-org/my-tenant/orchestrator_/processes?fkey=e5f6a7b8-0000-0000-0000-000000000004",
"Operation": "VersionChange",
"DeploymentStatus": "SuccessfulActivate",
"Actions": ["Uninstall", "Upgrade"],
"DeploymentName": "my-deployment",
"FromVersion": "1.5.0",
"ToVersion": "2.0.0",
"PipelineDeploymentId": "b2c3d4e5-0000-0000-0000-000000000002",
"DeploymentKey": "d4e5f6a7-0000-0000-0000-000000000004",
"InstallDeploymentKey": "c3d4e5f6-0000-0000-0000-000000000003"
}
}
{
"Code": "SolutionDeployUpgrade",
"Data": {
"Status": "DeploymentSucceeded",
"OrchestratorUrl": "https://cloud.uipath.com/my-org/my-tenant/orchestrator_/solutions-management/deployments(sidepanel:sidepanel/solutions-management/deployment-details/d4e5f6a7-0000-0000-0000-000000000004/overview)?allowBindings=true",
"FolderUrl": "https://cloud.uipath.com/my-org/my-tenant/orchestrator_/processes?fkey=e5f6a7b8-0000-0000-0000-000000000004",
"Operation": "VersionChange",
"DeploymentStatus": "SuccessfulActivate",
"Actions": ["Uninstall", "Upgrade"],
"DeploymentName": "my-deployment",
"FromVersion": "1.5.0",
"ToVersion": "2.0.0",
"PipelineDeploymentId": "b2c3d4e5-0000-0000-0000-000000000002",
"DeploymentKey": "d4e5f6a7-0000-0000-0000-000000000004",
"InstallDeploymentKey": "c3d4e5f6-0000-0000-0000-000000000003"
}
}
与 --no-wait 一起:
{
"Code": "SolutionDeployUpgrade",
"Data": {
"Status": "Accepted",
"DeploymentName": "my-deployment",
"ToVersion": "2.0.0",
"PipelineDeploymentId": "b2c3d4e5-0000-0000-0000-000000000002"
}
}
{
"Code": "SolutionDeployUpgrade",
"Data": {
"Status": "Accepted",
"DeploymentName": "my-deployment",
"ToVersion": "2.0.0",
"PipelineDeploymentId": "b2c3d4e5-0000-0000-0000-000000000002"
}
}
| 字段 | 描述 |
|---|---|
Status | 终端管道状态 ( DeploymentSucceeded ),或Accepted如果在升级完成之前返回--no-wait 。 |
OrchestratorUrl | Link that opens the deployment in Orchestrator. Absent with --no-wait, and when the CLI cannot build the link. |
FolderUrl | Link that opens the automations of the folder the deployment is installed into. Absent with --no-wait, and when the folder cannot be read. |
Operation | 服务器执行的操作: VersionChange表示版本移动, ConfigurationChange表示请求的版本已部署。--no-wait缺失。 |
DeploymentStatus | SuccessfulActivate 当新版本运行时, SuccessfulInstall ,当它已安装但等待激活设置时(先前版本的继续运行)。--no-wait缺失。 |
Actions | 接下来对部署执行可用操作(例如SetupActivation 、 Uninstall 、 Upgrade )。 |
ActivationStatus, PendingResources, NextSteps | 在新版本尚未运行时呈现,例如ActivationStatus: NeedsSetupToActivate与需要配置的资源。与deploy run形状相同。 |
Warnings | Present when the deployment's folder lacks a runtime that the new version's processes need, or when the check did not run. Refer to Folder runtime warnings. |
FromVersion | 升级前部署的版本。仅限密钥表单。 |
ToVersion | 目标升级版本。 |
PipelineDeploymentId | 执行升级的管道运行的 ID。将其传递给deploy status 。 |
DeploymentKey | 已升级部署记录的密钥。--no-wait缺失。 |
InstallDeploymentKey | 原始安装的密钥。它在升级后保持不变,因此要存储。仅限密钥表单。 |
DiscardedDraftKey | 已删除--discard-draft的待处理草稿的密钥。仅在放弃一项操作时存在。 |
故障模式
- 密钥和
--name都已传递,或--name没有--package-name。已拒绝。 - 未找到该密钥或该订阅源中名称的部署。已拒绝。
- 部署已卸载。已拒绝,因为安装会创建新部署。使用
deploy run再次部署包。 - 部署存在待处理草稿。拒绝,除非通过传递
--discard-draft。 - 部署位于个人工作区或文件夹订阅源中,登录名为外部应用程序。已拒绝;使用用户登录。
- 目标版本未在订阅源中发布。已拒绝。
- The
--config-fileis missing, empty, or not valid JSON or YAML. Refused withErrorCode: invalid_argumentbefore anything is sent. - 验证、冲突修复、计划或安装失败。命令以
1退出并报告错误。部署将停留在已在运行的版本上。当故障变为待处理草稿时,Instructions命名要重试的--discard-draft命令。 - 新版本用链接替换已安装的资源。除非传递
--acknowledge-permanent-deletion,否则将被拒绝,如永久删除被替换的资源中所述。 - 超时。升级未在
--timeout内完成。可能仍在运行;使用deploy status <pipeline-deployment-id>进行检查。
UIP 解决方案部署状态
按名称或deploy list或deploy upgrade中的部署密钥检查部署的状态:操作、激活状态以及在运行之前剩余的操作。该命令还会从deploy run中获取管道部署 ID,并返回该运行的进度和错误。
参数
<deployment>(required) — Deployment name (preferred), a deployment key, or a pipeline deployment ID. A key is resolved across every feed, and a superseded key is answered with the deployment's current record. A name that only an uninstalled deployment has is answered with that record (Operation: Uninstall,OperationStatus: Successful), asdeploy listshows it. When a feed that could not be searched may hold a live deployment of the same name,NextStepsnames that feed.
选项
| 长 | 值 | 默认 | 描述 |
|---|---|---|---|
--feed <name-or-key> | text | — | 对于部署名称:要在其中查找部署名称的订阅源(来自solution feeds list名称或文件夹键)。如果没有--feed或--personal-workspace ,系统将在订阅源中查找名称。与--personal-workspace互斥。 |
--personal-workspace | 标记 | 关闭 | 对于部署名称:在个人工作区订阅源中查找,而不是在租户中。 |
--login-validity <minutes> | 分钟 | 10 | 在令牌过期前触发刷新的最短分钟数。 |
--personal-workspace和带有部署名称的--feed需要用户登录;外部应用程序登录被拒绝。
示例
# By deployment name
uip solution deploy status my-deployment
# By deployment key
uip solution deploy status a1b2c3d4-0000-0000-0000-000000000001
# By name, in your Personal Workspace feed
uip solution deploy status my-deployment --personal-workspace
# The pipeline deployment run that deploy run started
uip solution deploy status b2c3d4e5-0000-0000-0000-000000000001
# By deployment name
uip solution deploy status my-deployment
# By deployment key
uip solution deploy status a1b2c3d4-0000-0000-0000-000000000001
# By name, in your Personal Workspace feed
uip solution deploy status my-deployment --personal-workspace
# The pipeline deployment run that deploy run started
uip solution deploy status b2c3d4e5-0000-0000-0000-000000000001
数据形状(--输出 json)
按名称或键编址的部署返回Code: SolutionDeployment 。以下示例是已升级但尚未上线的部署:
{
"Code": "SolutionDeployment",
"Data": {
"DeploymentKey": "a1b2c3d4-0000-0000-0000-000000000002",
"Superseded": false,
"CurrentDeploymentKey": "a1b2c3d4-0000-0000-0000-000000000002",
"InstallDeploymentKey": "a1b2c3d4-0000-0000-0000-000000000001",
"Name": "my-deployment",
"PackageName": "my-package",
"PackageVersion": "2.0.0",
"NewPackageVersionAvailable": null,
"Operation": "VersionChange",
"OperationStatus": "Successful",
"DeploymentStatus": "SuccessfulInstall",
"ActivationStatus": "NeedsSetupToActivate",
"Actions": ["SetupActivation", "Uninstall", "Upgrade"],
"PendingResources": [
{
"Kind": "connection",
"Name": "Outlook",
"Type": "uipath-microsoft-outlook365",
"Reason": "[CNS1072] You will need to authenticate this connection before proceeding further"
}
],
"NextSteps": [
"Deployment 'my-deployment' is installed at version 2.0.0 but not live: it needs 'Setup activation' before it can be activated.",
"Resources that need configuration: connection 'Outlook' (uipath-microsoft-outlook365): [CNS1072] You will need to authenticate this connection before proceeding further."
]
}
}
{
"Code": "SolutionDeployment",
"Data": {
"DeploymentKey": "a1b2c3d4-0000-0000-0000-000000000002",
"Superseded": false,
"CurrentDeploymentKey": "a1b2c3d4-0000-0000-0000-000000000002",
"InstallDeploymentKey": "a1b2c3d4-0000-0000-0000-000000000001",
"Name": "my-deployment",
"PackageName": "my-package",
"PackageVersion": "2.0.0",
"NewPackageVersionAvailable": null,
"Operation": "VersionChange",
"OperationStatus": "Successful",
"DeploymentStatus": "SuccessfulInstall",
"ActivationStatus": "NeedsSetupToActivate",
"Actions": ["SetupActivation", "Uninstall", "Upgrade"],
"PendingResources": [
{
"Kind": "connection",
"Name": "Outlook",
"Type": "uipath-microsoft-outlook365",
"Reason": "[CNS1072] You will need to authenticate this connection before proceeding further"
}
],
"NextSteps": [
"Deployment 'my-deployment' is installed at version 2.0.0 but not live: it needs 'Setup activation' before it can be activated.",
"Resources that need configuration: connection 'Outlook' (uipath-microsoft-outlook365): [CNS1072] You will need to authenticate this connection before proceeding further."
]
}
}
| 字段 | 描述 |
|---|---|
DeploymentKey | 请求的密钥。 |
Superseded | true 被稍后的操作替换了请求的记录时。状态字段会描述当前记录, NextSteps则会命名要使用的键。则当无法读取记录链时,请执行null 。 |
CurrentDeploymentKey | 部署当前记录的键。 |
InstallDeploymentKey | 原始安装的密钥,在所有升级版本中均保持稳定。 |
DeploymentStatus | SuccessfulActivate 当版本运行时, SuccessfulInstall当版本等待激活或设置时。 |
ActivationStatus | 激活状态,例如Active 、 ReadyToActivate或NeedsSetupToActivate 。出现无法读取的情况时,返回null 。 |
Actions | 部署中的可用操作。当无法读取这些文件时,则会返回null 。 |
PendingResources | 需要在激活前配置的资源。仅在部署等待设置时显示。 |
NextSteps | 部署运行前的剩余阶段。运行时不存在。 |
管道部署 ID 返回Code: SolutionDeployStatus和运行进度:
{
"Code": "SolutionDeployStatus",
"Data": {
"PipelineDeploymentId": "b2c3d4e5-0000-0000-0000-000000000001",
"Status": "DeploymentSucceeded",
"DeploymentKey": "a1b2c3d4-0000-0000-0000-000000000001",
"ConfigurationKey": "...",
"InstanceId": "c3d4e5f6-0000-0000-0000-000000000001",
"DeploymentResult": {
"Name": "my-deployment",
"PackageName": "my-package",
"PackageVersion": "1.0.0",
"Status": "Successful",
"StartDate": "2026-04-15T10:30:00Z",
"EndDate": "2026-04-15T10:31:12Z",
"Errors": null
}
}
}
{
"Code": "SolutionDeployStatus",
"Data": {
"PipelineDeploymentId": "b2c3d4e5-0000-0000-0000-000000000001",
"Status": "DeploymentSucceeded",
"DeploymentKey": "a1b2c3d4-0000-0000-0000-000000000001",
"ConfigurationKey": "...",
"InstanceId": "c3d4e5f6-0000-0000-0000-000000000001",
"DeploymentResult": {
"Name": "my-deployment",
"PackageName": "my-package",
"PackageVersion": "1.0.0",
"Status": "Successful",
"StartDate": "2026-04-15T10:30:00Z",
"EndDate": "2026-04-15T10:31:12Z",
"Errors": null
}
}
}
管道服务仅会跟踪处于活动状态的运行。运行结束后,请改为按名称或密钥检查部署。
故障模式
- No deployment with that name in the feeds the session can reach. Fails with
ErrorCode: not_foundandRetry: RetryWillNotFix. Add--personal-workspaceor--feedfor a feed outside the tenant.
UIP 解决方案部署列表
列出解决方案部署。显示部署名称、当前/目标包版本、待处理操作、激活状态和文件夹路径。
选项
| 长 | 值 | 默认 | 描述 |
|---|---|---|---|
--folder-path <path> | 路径 | — | 按部署安装到的文件夹的完整路径(例如Shared或Shared/Finance )筛选。精确匹配,不区分大小写;不包括子文件夹。在服务器端应用。 |
--folder-key <key> | GUID | — | 按安装部署的文件夹的键值进行筛选。--folder-path的替代方案。在服务器端应用。 |
-l, --limit <number> | 数字 | 50 | 要获取的最大部署数。 |
--offset <number> | 数字 | 0 | 要跳过的部署数量。 |
--sort-by <column> | text | startTime | 要排序的列。 |
--sort-order <direction> | Ascending | Descending | Descending | 排序方向 |
--operation-status <statuses> | 逗号分隔 | — | 服务器端按操作状态筛选。Draft 、 Successful 、 Failed 、 InProgress和FailedRollback中的一项或多项。 |
--activation-status <statuses> | 逗号分隔 | — | 按激活状态进行服务器端筛选。None 、 Active 、 Inactive 、 ActivationFailed 、 DeactivationFailed 、 ReadyToActivate和NeedsSetupToActivate中的一项或多项。 |
--personal-workspace | 标记 | 关闭 | 仅列出当前用户的个人工作区订阅源中的部署。与 --feed 互斥。 |
--feed <name-or-key> | text | — | 仅列出此订阅源中的部署(来自solution feeds list名称或文件夹键)。与--personal-workspace互斥。 |
--login-validity <minutes> | 分钟 | 10 | 在令牌过期前触发刷新的最短分钟数。 |
--operation-status和--activation-status都拒绝这些列表之外的值,错误消息会列出有效值。
示例
uip solution deploy list --limit 20 --folder-path "Shared/Production"
# Spot a pending in-place upgrade
uip solution deploy list --operation-status InProgress
uip solution deploy list --limit 20 --folder-path "Shared/Production"
# Spot a pending in-place upgrade
uip solution deploy list --operation-status InProgress
数据形状(--输出 json)
{
"Code": "SolutionDeployList",
"Data": [
{
"Key": "a1b2c3d4-0000-0000-0000-000000000002",
"InstallDeploymentKey": "b2c3d4e5-0000-0000-0000-000000000002",
"Name": "billing-solution",
"PackageName": "billing-solution",
"PackageVersion": "1.0.0",
"CurrentPackageVersion": "1.0.0",
"TargetPackageVersion": "2.0.0",
"NewPackageVersionAvailable": "2.0.0",
"Operation": "VersionChange",
"OperationStatus": "InProgress",
"ActivationStatus": "Active",
"FolderPath": "Shared/Billing",
"FolderKey": "c3d4e5f6-0000-0000-0000-000000000002",
"CreatedAt": "2026-04-15T10:30:00Z",
"Actions": ["Upgrade"]
}
],
"Pagination": { "Returned": 1, "Limit": 10, "Offset": 0, "Total": 1 }
}
{
"Code": "SolutionDeployList",
"Data": [
{
"Key": "a1b2c3d4-0000-0000-0000-000000000002",
"InstallDeploymentKey": "b2c3d4e5-0000-0000-0000-000000000002",
"Name": "billing-solution",
"PackageName": "billing-solution",
"PackageVersion": "1.0.0",
"CurrentPackageVersion": "1.0.0",
"TargetPackageVersion": "2.0.0",
"NewPackageVersionAvailable": "2.0.0",
"Operation": "VersionChange",
"OperationStatus": "InProgress",
"ActivationStatus": "Active",
"FolderPath": "Shared/Billing",
"FolderKey": "c3d4e5f6-0000-0000-0000-000000000002",
"CreatedAt": "2026-04-15T10:30:00Z",
"Actions": ["Upgrade"]
}
],
"Pagination": { "Returned": 1, "Limit": 10, "Offset": 0, "Total": 1 }
}
Key是deploy upgrade接受作为部署密钥的值,并且deploy status接受。当存在比当前部署的版本更新的已发布版本时, NewPackageVersionAvailable不为 null。Actions列出部署中当前可用的操作(例如["Upgrade"] )。
uip 解决方案部署激活
激活未自动激活功能安装的部署。激活会配置所有解决方案组件。activate首先打印 Orchestrator 报告的预激活步骤(通过--log-level info报告给 STDERR),然后调用激活并轮询,直到达到最终状态( SuccessfulActivate或FailedActivate )。
参数
<deployment>(required) — Name of the deployment to activate (preferred), or its key asdeploy listreports it (Key). A key is resolved across every feed, and a superseded key acts on the deployment's current record.
选项
--timeout <seconds>— 激活轮询超时。默认为360。--poll-interval <ms>— 状态轮询之间的毫秒数。默认为5000。--login-validity <minutes>— 默认为10。
示例
uip solution deploy activate my-deployment
# By deployment key
uip solution deploy activate a1b2c3d4-0000-0000-0000-000000000001
uip solution deploy activate my-deployment
# By deployment key
uip solution deploy activate a1b2c3d4-0000-0000-0000-000000000001
数据形状(--输出 json)
{
"Code": "SolutionDeployActivate",
"Data": {
"Status": "SuccessfulActivate",
"OrchestratorUrl": "https://cloud.uipath.com/my-org/my-tenant/orchestrator_/solutions-management/deployments(sidepanel:sidepanel/solutions-management/deployment-details/a1b2c3d4-0000-0000-0000-000000000001/overview)?allowBindings=true",
"FolderUrl": "https://cloud.uipath.com/my-org/my-tenant/orchestrator_/processes?fkey=d4e5f6a7-0000-0000-0000-000000000001",
"DeploymentName": "my-deployment",
"InstanceId": "b2c3d4e5-0000-0000-0000-000000000001"
}
}
{
"Code": "SolutionDeployActivate",
"Data": {
"Status": "SuccessfulActivate",
"OrchestratorUrl": "https://cloud.uipath.com/my-org/my-tenant/orchestrator_/solutions-management/deployments(sidepanel:sidepanel/solutions-management/deployment-details/a1b2c3d4-0000-0000-0000-000000000001/overview)?allowBindings=true",
"FolderUrl": "https://cloud.uipath.com/my-org/my-tenant/orchestrator_/processes?fkey=d4e5f6a7-0000-0000-0000-000000000001",
"DeploymentName": "my-deployment",
"InstanceId": "b2c3d4e5-0000-0000-0000-000000000001"
}
}
DeploymentName is the deployment's name, also when the command was given a key. OrchestratorUrl opens the deployment in Orchestrator, and FolderUrl opens the automations of its folder. Either link is absent when the CLI cannot build it.
如果 Orchestrator 报告“无 instanceId”(没有可轮询的内容),则系统会省略 InstanceId,并且该命令会成功返回。
While the command polls, it writes progress lines to stderr, as deploy run does.
UIP 解决方案部署卸载
卸载已部署的解决方案。删除所有已配置的资源和解决方案文件夹。这是一项永久性操作,无法撤销。
参数
<deployment>(required) — Name of the deployment to uninstall (preferred), or its key asdeploy listreports it (Key). A key is resolved across every feed, and a superseded key acts on the deployment's current record.
选项
-y, --yes—必需。确认此不可撤销的操作 — CLI 从不提示。--timeout <seconds>— 卸载轮询超时。默认为360。--poll-interval <ms>— 状态轮询之间的毫秒数。默认为5000。--login-validity <minutes>— 默认为10。
示例
uip solution deploy uninstall my-deployment --yes
uip solution deploy uninstall my-deployment --yes
数据形状(--输出 json)
{
"Code": "SolutionDeployUninstall",
"Data": {
"Status": "SuccessfulUninstall",
"DeploymentName": "my-deployment",
"InstanceId": "b2c3d4e5-0000-0000-0000-000000000001"
}
}
{
"Code": "SolutionDeployUninstall",
"Data": {
"Status": "SuccessfulUninstall",
"DeploymentName": "my-deployment",
"InstanceId": "b2c3d4e5-0000-0000-0000-000000000001"
}
}
可能有三种成功形状,根据显示的字段进行区分:
- 立即— Orchestrator 在首次调用时报告
complete: true;不会进行轮询。仅显示Status/DeploymentName。 - 已计划— Orchestrator 计划工作,不返回实例 ID;系统将添加
Scheduled字段。 - Polled — an
InstanceIdis returned and the command polls it to completion, as shown above. While it polls, the command writes progress lines to stderr, asdeploy rundoes.
DeploymentName is the deployment's name, also when the command was given a key.
故障模式
- 缺少
-y, --yes。该命令在不确认的情况下拒绝。 - 无法在其状态下卸载部署(卸载后非活动、被取代或安装失败留下)。当记录提供
Delete,Instructions指向deploy delete。
UIP 解决方案部署、删除
从租户中删除部署记录。将此用于deploy uninstall无法删除的部署:卸载后处于非活动状态、一个被较新版本取代的部署或一个安装失败留下的部署。Orchestrator 拒绝卸载包含错误4007应用程序。
The command finds the deployment by name or key across the feeds, then reads its available actions. When the record lists actions but not Delete, the command refuses and names the state and the actions that are available. When the record lists no actions, the request goes to the server, which decides.
参数
<deployment>(required) — Name of the deployment to delete (preferred), or its key asdeploy listreports it (Key). A key is resolved across every feed, and a superseded key acts on the deployment's current record.
选项
-y, --yes—必需。确认此不可撤销的操作; CLI 从不提示。--login-validity <minutes>— 默认为10。
示例
uip solution deploy delete my-deployment --yes
# By deployment key
uip solution deploy delete a1b2c3d4-0000-0000-0000-000000000001 --yes
uip solution deploy delete my-deployment --yes
# By deployment key
uip solution deploy delete a1b2c3d4-0000-0000-0000-000000000001 --yes
数据形状(--输出 json)
{
"Code": "SolutionDeployDelete",
"Data": {
"Status": "Deleted",
"DeploymentName": "my-deployment",
"DeploymentKey": "a1b2c3d4-0000-0000-0000-000000000001"
}
}
{
"Code": "SolutionDeployDelete",
"Data": {
"Status": "Deleted",
"DeploymentName": "my-deployment",
"DeploymentKey": "a1b2c3d4-0000-0000-0000-000000000001"
}
}
DeploymentName is the name of the deployment that a key resolved to.
故障模式
- 缺少
-y, --yes。该命令在不确认的情况下拒绝。 - No deployment with that name or key. Refused.
- The key is not listed by the deployment search yet. Refused with
Retry: RetryLater, and nothing is deleted. Wait a moment, then retry. - 部署提供
Uninstall,但不提供Delete。已拒绝。先运行deploy uninstall <deployment> --yes,然后重新尝试删除。 - 正在对部署执行操作。已拒绝。等待操作完成,然后重试。
uip 解决方案部署配置获取
Fetch the default deployment configuration for a published solution package. The package is read from the tenant feed, or from the feed that --personal-workspace or --feed selects. The config lists every resource the solution will create (queues, assets, processes, buckets, connections, ...) with their default settings. Save it to a file (-d), customize with config set / config link, then pass it to deploy run --config-file, or apply it to an existing deployment with deploy upgrade --config-file.
参数
<package-name>(必填) — 解决方案包名称。使用packages list。
选项
| 长 | 值 | 默认 | 描述 |
|---|---|---|---|
--package-version <version> | text | 最新 | 包版本。 |
-d, --destination <path> | 路径 | 标准输出 | 将配置写入此文件,而不是标准输出。 |
--format <format> | json | yaml | json | 配置格式。 |
--personal-workspace | 标记 | 关闭 | Read the package from the current user's Personal Workspace feed instead of the tenant feed. Mutually exclusive with --feed. |
--feed <name-or-key> | text | 租户订阅源 | Read the package from this feed (name or folder key, from solution feeds list) instead of the tenant feed. Mutually exclusive with --personal-workspace. |
--login-validity <minutes> | 分钟 | 10 | 在令牌过期前触发刷新的最短分钟数。 |
--personal-workspace and --feed require a user login. When the server does not apply the feed to an External Application's requests, that login is refused with ErrorCode: permission_denied, instead of returning the tenant feed's package of the same name.
示例
uip solution deploy config get my-package --package-version 1.0.0 -d ./deploy-config.json
# YAML format
uip solution deploy config get my-package -d ./deploy-config.yaml --format yaml
# A package published to your Personal Workspace feed
uip solution deploy config get my-package --package-version 1.0.0 --personal-workspace -d ./deploy-config.json
# A package published to a folder feed
uip solution deploy config get my-package --feed Finance -d ./deploy-config.json
uip solution deploy config get my-package --package-version 1.0.0 -d ./deploy-config.json
# YAML format
uip solution deploy config get my-package -d ./deploy-config.yaml --format yaml
# A package published to your Personal Workspace feed
uip solution deploy config get my-package --package-version 1.0.0 --personal-workspace -d ./deploy-config.json
# A package published to a folder feed
uip solution deploy config get my-package --feed Finance -d ./deploy-config.json
数据形状(--输出 json)
当提供-d时:
{
"Code": "SolutionDeployConfig",
"Data": {
"Status": "Configuration written",
"OutputPath": "/workspace/deploy-config.json",
"PackageName": "my-package",
"PackageVersion": "1.0.0",
"State": "Ready",
"Format": "json"
}
}
{
"Code": "SolutionDeployConfig",
"Data": {
"Status": "Configuration written",
"OutputPath": "/workspace/deploy-config.json",
"PackageName": "my-package",
"PackageVersion": "1.0.0",
"State": "Ready",
"Format": "json"
}
}
省略-d时,系统会将配置嵌入到响应中:
{
"Code": "SolutionDeployConfig",
"Data": {
"PackageName": "my-package",
"PackageVersion": "1.0.0",
"State": "Ready",
"Format": "json",
"Configuration": { "resources": [ "..." ] }
}
}
{
"Code": "SolutionDeployConfig",
"Data": {
"PackageName": "my-package",
"PackageVersion": "1.0.0",
"State": "Ready",
"Format": "json",
"Configuration": { "resources": [ "..." ] }
}
}
UIP 解决方案部署配置集
Edit a resource property in a deploy config file. The file stays local until you pass it to deploy run --config-file, or to deploy upgrade --config-file for an existing deployment.
参数
<file>(必填) — 部署配置 JSON 文件的路径(由config get生成)。<args...>(必需) — 取决于--all:- 没有
--all:<resource> <property> <value>— 例如MyQueue maxNumberOfRetries 5。 - 使用
--all:<property> <value>— 适用于文件中的每个资源。仅对顶层conflictFixingAction属性有效。
- 没有
选项
--all— 将属性应用于文件中的所有资源。仅允许与conflictFixingAction一起使用(例如UseExisting)。
示例
更改单个队列的重试次数
uip solution deploy config set ./deploy-config.json MyQueue maxNumberOfRetries 5
uip solution deploy config set ./deploy-config.json MyQueue maxNumberOfRetries 5
为每个资源设置冲突修复策略
uip solution deploy config set ./deploy-config.json --all conflictFixingAction UseExisting
uip solution deploy config set ./deploy-config.json --all conflictFixingAction UseExisting
数据形状(--输出 json)
单个资源更新:
{
"Code": "DeployConfigSet",
"Data": {
"Resource": "MyQueue",
"Property": "maxNumberOfRetries",
"OldValue": 1,
"NewValue": 5
}
}
{
"Code": "DeployConfigSet",
"Data": {
"Resource": "MyQueue",
"Property": "maxNumberOfRetries",
"OldValue": 1,
"NewValue": 5
}
}
批量更新 ( --all ):
{
"Code": "DeployConfigSet",
"Data": {
"Resource": "all",
"Property": "conflictFixingAction",
"NewValue": "UseExisting",
"ResourceCount": 12
}
}
{
"Code": "DeployConfigSet",
"Data": {
"Resource": "all",
"Property": "conflictFixingAction",
"NewValue": "UseExisting",
"ResourceCount": 12
}
}
UIP 解决方案部署配置链接
Link a solution resource to an existing Orchestrator resource, so the deployment reuses it instead of creating a new one. Changes are local — apply them by passing the file to deploy run --config-file, or to deploy upgrade --config-file to relink an existing deployment.
参数
<file>(必填) — 部署配置 JSON 文件的路径。<resource>(必填) — 资源名称或配置文件中的resourceKey。
选项
-n, --name <name>(必填) — 要链接到的现有 Orchestrator 资源的名称。--folder-path <path>— 现有资源所在的 Orchestrator 文件夹路径。
示例
uip solution deploy config link ./deploy-config.json MyQueue \
--name ProductionQueue \
--folder-path "Shared/Production"
uip solution deploy config link ./deploy-config.json MyQueue \
--name ProductionQueue \
--folder-path "Shared/Production"
数据形状(--输出 json)
{
"Code": "DeployConfigLink",
"Data": {
"Resource": "MyQueue",
"LinkedTo": {
"name": "ProductionQueue",
"folderPath": "Shared/Production"
}
}
}
{
"Code": "DeployConfigLink",
"Data": {
"Resource": "MyQueue",
"LinkedTo": {
"name": "ProductionQueue",
"folderPath": "Shared/Production"
}
}
}
UIP 解决方案部署配置取消链接
Remove a link set with config link. On the next deploy run --config-file or deploy upgrade --config-file, the resource is created instead of reused.
参数
<file>(必填) — 部署配置 JSON 文件的路径。<resource>(必填) — 资源名称或要取消链接的resourceKey。
示例
uip solution deploy config unlink ./deploy-config.json MyQueue
uip solution deploy config unlink ./deploy-config.json MyQueue
数据形状(--输出 json)
{
"Code": "DeployConfigUnlink",
"Data": {
"Resource": "MyQueue",
"UnlinkedFrom": "ProductionQueue"
}
}
{
"Code": "DeployConfigUnlink",
"Data": {
"Resource": "MyQueue",
"UnlinkedFrom": "ProductionQueue"
}
}
故障模式
- 资源当前未链接。该命令会拒绝取消链接,并指向
config link。
相关命令
uip solution publish—deploy run之前必须执行的步骤。uip solution packages list— 发现包名称和版本。uip or— 检查或创建deploy config link引用的 Orchestrator 资源。
另请参阅
- 您的第一个管道— 打包 → 发布 → 部署运行演练。
- 身份验证和配置— 会话设置和每个租户的默认值
uip solution概述。
- 典型工作流
- uip 解决方案部署运行
- 大纲
- 选项
- 示例
- 数据形状(--输出 json)
- Folder runtime warnings
- 永久删除已替换的资源
- 超时行为
- 故障模式
- uip 解决方案部署升级
- 大纲
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- 故障模式
- UIP 解决方案部署状态
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- 故障模式
- UIP 解决方案部署列表
- 选项
- 示例
- 数据形状(--输出 json)
- uip 解决方案部署激活
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- UIP 解决方案部署卸载
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- 故障模式
- UIP 解决方案部署、删除
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- 故障模式
- uip 解决方案部署配置获取
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- UIP 解决方案部署配置集
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- UIP 解决方案部署配置链接
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- UIP 解决方案部署配置取消链接
- 参数
- 示例
- 数据形状(--输出 json)
- 故障模式
- 相关命令
- 另请参阅