- 概述
- UiPath CLI
- Azure DevOps 扩展程序
- Jenkins 插件

CI/CD 集成用户指南
执行 UiPath CLI 任务
Running tasks inside the UiPath CLI designed for Windows devices (UiPath.CLI.Windows) requires several tasks.
The main differences between procedures for the UiPath.CLI.Windows and procedures for the UiPath.CLI (UiPath CLI designed for Linux devices), consist in additional arguments that you could pass with some tasks that are specific to the type of device that you are running on.
使用 UiPath CLI 时,必须确保已在 Studio 中关闭项目。否则会导致冲突,从而在 CLI 中显示以下错误消息:The action could not be performed because the project is already opened in another Studio instance. Please close it and try again.
要详细了解可以通过 UiPath 命令行接口 (CLI) 执行的特定任务,请考虑查看以下主题:
- 将项目打包到包中
- 分析项目
- 将包部署到 Orchestrator
- 在 Orchestrator 中运行作业
- 测试包或运行测试集
- 测试多个包
- 将资产部署到 Orchestrator
- 从 Orchestrator 中删除资产
- 使用 JSON 配置运行任务
- 恢复自动化依赖项
API 访问应用程序作用域
下表显示了运行任何 CLI 任务所需的 Orchestrator API 访问应用程序作用域。
| 应用程序作用域 | 描述 |
|---|---|
| OR. 资产 | 在 Orchestrator 中具有资产读取和写入权限。 |
| OR.BackgroundTasks | 在 Orchestrator 中的后台任务读取和写入权限。 |
| OR. 执行 | 在 Orchestrator 中具有执行读取和写入权限。 |
| OR. 文件夹 | 在 Orchestrator 中具有文件夹读取和写入权限。 |
| OR. 作业 | 在 Orchestrator 中具有作业读取和写入权限。 |
| OR. 计算机. 读取 | 在 Orchestrator 中具有计算机读取权限。 |
| 或. 监控 | 在 Orchestrator 中具有监控读取和写入权限。 |
| OR.Robots.Read | Orchestrator 中的机器人具有读取权限。 |
| OR.设置.读取 | 在 Orchestrator 中具有设置读取权限。 |
| OR.测试集 | 在 Orchestrator 中具有测试集读取和写入权限。 |
| OR.TestSet 执行次数 | 在 Orchestrator 中具有测试集执行读取和写入权限。 |
| OR.TestSet 计划 | 测试集计划在 Orchestrator 中具有读取和写入权限。 |
| OR.Users.Read | 在 Orchestrator 中具有用户读取权限。 |
除了表中列出的作用域外,需要突出显示的一个重要作用域是OR.Default 。OR.Default作用域充当通配符。它在组织和文件夹级别提供特定于角色的精细访问权限。这使您可以灵活地对应用程序权限进行精确控制,超出了预定义的组织范围权限。有关更多详细信息,请参阅声明作用域。
添加外部应用程序
要注册外部应用程序,使其可以使用 OAuth 访问您的 UiPath 资源,请参阅管理外部 OAuth 应用程序。