- Getting Started with Test Suite
- Studio
- Orchestrator
- Testing robots
- Test Manager
- CI/CD integrations
Executing Tasks
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.
The action could not be performed because the project is already opened in another Studio instance. Please close it and try
again.
The following table shows the required Orchestrator API Access Application Scopes for running any CLI task.
Application Scope |
Description |
---|---|
OR.Assets |
Assets read and write access in Orchestrator. |
OR.BackgroundTasks |
BackgroundTasks read and write access in Orchestrator. |
OR.Execution |
Execution read and write access in Orchestrator. |
OR.Folders |
Folders read and write access in Orchestrator. |
OR.Jobs |
Jobs read and write access in Orchestrator. |
OR.Machines.Read |
Machines read access in Orchestrator. |
OR.Monitoring |
Monitoring read and write access in Orchestrator. |
OR.Robots.Read |
Robots read access in Orchestrator. |
OR.Settings.Read |
Settings read access in Orchestrator. |
OR.TestSets |
TestSets read and write access in Orchestrator. |
OR.TestSetExecutions |
TestSetExecutions read and write access in Orchestrator. |
OR.TestSetSchedules |
TestSetSchedules read and write access in Orchestrator. |
OR.Users.Read |
Users read access in Orchestrator. |
Prerequisites: To use the UiPath CLI for Windows and execute tasks, install .NET 6.0.7, that must include .NET 6.0.7 Desktop Runtime, that come with the 6.0.302 SDK.
uipcli.exe
including the corresponding parameters. To execute sub-tasks, the command needs to have the following format: uipcli.exe <task name> <sub-task name>
. To run the CLI:
- Open a command prompt and navigate to the folder extracted from the NUPKG file.
- Type
uipcli.exe
and select the Enter key.
Prerequisites: To use the UiPath CLI for Cross-platform, and execute job tasks, install .NET 6.0.7, that comes with the 6.0.302 SDK.
uipcli.exe
including the corresponding parameters. To execute sub-tasks, the command needs to have the following format: dotnet uipcli.dll <task name> <sub-task name>
. To run the CLI:
- Open a command prompt and navigate to the folder extracted from the NUPKG file.
- Type
dotnet uipcli.dll
, and select the Enter key.
Prerequisites:
- Create assets in Orchestrator.
- Create a CSV file, that contains the assets that you want to delete. The CSV file must have the following three columns:
name
,type
, andvalue
. The data cells under thetype
, andvalue
columns can remain empty. - Run the CLI
exe
(for Windows) ordll
(for Linux) file. - Add the Orchestrator API Access Application Scopes below:
Application Scope
Description
OR.Assets
Assets read and write access in Orchestrator.
OR.BackgroundTasks
BackgroundTasks read and write access in Orchestrator.
OR.Execution
Execution read and write access in Orchestrator.
OR.Folders
Folders read and write access in Orchestrator.
OR.Jobs
Jobs read and write access in Orchestrator.
OR.Machines.Read
Machines read access in Orchestrator.
OR.Monitoring
Monitoring read and write access in Orchestrator.
OR.Robots.Read
Robots read access in Orchestrator.
OR.Settings.Read
Settings read access in Orchestrator.
OR.TestSets
TestSets read and write access in Orchestrator.
OR.TestSetExecutions
TestSetExecutions read and write access in Orchestrator.
OR.TestSetSchedules
TestSetSchedules read and write access in Orchestrator.
OR.Users.Read
Users read access in Orchestrator.
For more information about the CSV file, check the examples in the table below:
name |
type |
value |
---|---|---|
asset1_name | N/A | N/A |
asset2_name |
bool |
|
asset3_name |
integer | N/A |
asset4_name |
credential |
username:password |
To delete assets from Orchestrator:
Examples:
asset delete assets_file.csv "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -l en-US
asset delete assets_file.csv "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -o OurOrganization
asset delete assets_file.csv "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount
asset delete assets_file.csv "https://uipath-orchestrator.myorg.com" default -A accountForExternalApp -I myExternalAppId -S myExternalAppSecret --applicationScope "OR.Folders.Read OR.Settings.Read"
Prerequisites:
- Create a CSV file that contains the assets that you want to deploy to Orchestrator.
The CSV file must have the following three columns:
name
,type
,value
, anddescription
. - Run the CLI
exe
(for Windows) ordll
(for Linux) file. - Add the Orchestrator API Access Application Scopes below:
Application Scope
Description
OR.Assets
Assets read and write access in Orchestrator.
OR.BackgroundTasks
BackgroundTasks read and write access in Orchestrator.
OR.Execution
Execution read and write access in Orchestrator.
OR.Folders
Folders read and write access in Orchestrator.
OR.Jobs
Jobs read and write access in Orchestrator.
OR.Machines.Read
Machines read access in Orchestrator.
OR.Monitoring
Monitoring read and write access in Orchestrator.
OR.Robots.Read
Robots read access in Orchestrator.
OR.Settings.Read
Settings read access in Orchestrator.
OR.TestSets
TestSets read and write access in Orchestrator.
OR.TestSetExecutions
TestSetExecutions read and write access in Orchestrator.
OR.TestSetSchedules
TestSetSchedules read and write access in Orchestrator.
OR.Users.Read
Users read access in Orchestrator.
For more information about the CSV file, check the example below.
name |
type |
value |
description |
---|---|---|---|
asset_1_name |
text |
"i have a comment" |
asset_1_description |
asset_2_name |
integer |
|
asset_2_description |
asset_3_name |
bool |
|
asset_3_description |
asset_4_name |
credential |
username:password |
asset_4_description |
To deploy assets to Orchestrator:
Examples:
asset deploy assets_file.csv "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -l en-US
.asset deploy assets_file.csv "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -o OurOrganization
.asset deploy assets_file.csv "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount
.asset delete assets_file.csv "https://uipath-orchestrator.myorg.com" default -A accountForExternalApp -I myExternalAppId -S myExternalAppSecret --applicationScope "OR.Folders.Read OR.Settings.Read"
.
- Create a process in Orchestrator.
- Run the CLI
exe
(for Windows) ordll
(for Linux) file. - Add the Orchestrator API Access Application Scopes below:
Application Scope
Description
OR.Assets
Assets read and write access in Orchestrator.
OR.BackgroundTasks
BackgroundTasks read and write access in Orchestrator.
OR.Execution
Execution read and write access in Orchestrator.
OR.Folders
Folders read and write access in Orchestrator.
OR.Jobs
Jobs read and write access in Orchestrator.
OR.Machines.Read
Machines read access in Orchestrator.
OR.Monitoring
Monitoring read and write access in Orchestrator.
OR.Robots.Read
Robots read access in Orchestrator.
OR.Settings.Read
Settings read access in Orchestrator.
OR.TestSets
TestSets read and write access in Orchestrator.
OR.TestSetExecutions
TestSetExecutions read and write access in Orchestrator.
OR.TestSetSchedules
TestSetSchedules read and write access in Orchestrator.
OR.Users.Read
Users read access in Orchestrator.
job run ProcessName "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -P High -o MyFolder
job run ProcessName "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount -P High -j 3 -w false
job run ProcessName "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount -r robotName -R C:\Temp\status.json
Prerequisites:
- Create a project.
- Run the CLI
exe
(for Windows) ordll
(for Linux) file. - Add the Orchestrator API Access Application Scopes below:
Application Scope
Description
OR.Assets
Assets read and write access in Orchestrator.
OR.BackgroundTasks
BackgroundTasks read and write access in Orchestrator.
OR.Execution
Execution read and write access in Orchestrator.
OR.Folders
Folders read and write access in Orchestrator.
OR.Jobs
Jobs read and write access in Orchestrator.
OR.Machines.Read
Machines read access in Orchestrator.
OR.Monitoring
Monitoring read and write access in Orchestrator.
OR.Robots.Read
Robots read access in Orchestrator.
OR.Settings.Read
Settings read access in Orchestrator.
OR.TestSets
TestSets read and write access in Orchestrator.
OR.TestSetExecutions
TestSetExecutions read and write access in Orchestrator.
OR.TestSetSchedules
TestSetSchedules read and write access in Orchestrator.
OR.Users.Read
Users read access in Orchestrator.
Project validation is not performed by the Pack or Analyze tasks of UiPath CLI.
Parameter |
Description |
---|---|
Project(s) Path (pos.0) (Required)
|
The path to the
project.json file, or the path to the folder that contains multiple project.json files.
|
|
Choose what types of messages to output after analyzing:
|
|
The job fails when any rule is violated. |
|
Treat warnings as errors. |
|
The full path to a JSON file where you want to store the results. If you don't add this as an argument, then the results will print only in the standard console. |
|
A list of rules that you want to ignore during the analysis, separated by commas. |
--orchestratorUsername (*)
(Required if you use Basic Authentication, through a username and a password) |
The username used for authenticating to Orchestrator. You must pair it with the corresponding password. |
--orchestratorPassword (*)
(Required if you use Basic Authentication, through a username and a password) |
The password used for authenticating to Orchestrator. You must pair it with the corresponding username. |
-orchestratorAuthToken (*)
(Required if you use token-based authentication) |
The OAuth2 refresh token used for authenticating to Orchestrator. You must pair it with the Account Name and Client ID. |
--orchestratorAccountName (*)
(Required if you use token-based authentication) |
The Orchestrator CloudRPA account name. You must pair it with the OAuth2 refresh token and Client ID. |
--orchestratorAccountForApp (*)
|
The Orchestrator CloudRPA account name(organization name). You must pair it with the Application ID, Application Secret, and Application scope for external application. |
--orchestratorApplicationId (*)
(Required if you use external application authentication) |
The external Application ID. You must pair it with the **Application Account, Application Secret, and Application scope. |
--orchestratorApplicationSecret (*)
(Required if you use external application authentication) |
The external Application Secret. You must pair it with the Application Account, Application ID, and Application scope. |
--orchestratorApplicationScope (*)
(Required if you use external application authentication) |
The list of application scopes, separated by single spaces. You must pair it with the Application Account, Application ID, and Application Secret for external application. |
--orchestratorFolder (*)
|
The name of the target Orchestrator folder. To input subfolders make sure to input both the parent folder name and the name of the subfolder. For instance, use
AccountingTeam\TeamJohn .
|
--orchestratorUrl (*)
|
The URL of the Orchestrator instance. |
--orchestratorTenant (*)
|
The tenant of the Orchestrator instance where you want to delete a machine. |
|
Displays the parameters and examples for this command. |
Examples:
package analyze "C:\UiPath\Project\project.json" --analyzerTraceLevel "Error" --stopOnRuleViolation --treatWarningsAsErrors --resultPath "C:\UiPath\Project\output.json"
package analyze "C:\UiPath\Project\project.json" --analyzerTraceLevel "Error" --stopOnRuleViolation --treatWarningsAsErrors --resultPath "C:\UiPath\Project\output.json" --ignoredRules "ST-NMG-009,ST-DBP-020,UI-USG-011,ST-DBP-020"
package analyze "C:\UiPath\Project\project.json" --analyzerTraceLevel "Error" --stopOnRuleViolation --treatWarningsAsErrors --resultPath "C:\UiPath\Project\output.json" --ignoredRules "ST-NMG-009,ST-DBP-020,UI-USG-011,ST-DBP-020" --orchestratorUrl "https://orchestratorurl.com" --orchestratorTenant "default" --orchestratorUsername "username" --orchestratorPassword "\_ye5zG9(x" --orchestratorAuthToken "AuthToken" --orchestratorAccountName "AccountName" --orchestratorFolder "OrchestratorFolder"
Prerequisites:
- Publish a package to Orchestrator.
- Run the CLI
exe
(for Windows) ordll
(for Linux) file. - Add the Orchestrator API Access Application Scopes below:
Application Scope
Description
OR.Assets
Assets read and write access in Orchestrator.
OR.BackgroundTasks
BackgroundTasks read and write access in Orchestrator.
OR.Execution
Execution read and write access in Orchestrator.
OR.Folders
Folders read and write access in Orchestrator.
OR.Jobs
Jobs read and write access in Orchestrator.
OR.Machines.Read
Machines read access in Orchestrator.
OR.Monitoring
Monitoring read and write access in Orchestrator.
OR.Robots.Read
Robots read access in Orchestrator.
OR.Settings.Read
Settings read access in Orchestrator.
OR.TestSets
TestSets read and write access in Orchestrator.
OR.TestSetExecutions
TestSetExecutions read and write access in Orchestrator.
OR.TestSetSchedules
TestSetSchedules read and write access in Orchestrator.
OR.Users.Read
Users read access in Orchestrator.
Examples:
package delete PackageName "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -l en-US
.package delete PackageName "https://uipath-orchestrator.myorg.com" default -t refreshToken -a accountName
.package delete PackageName "https://uipath-orchestrator.myorg.com" default -A accountForExternalApp -I myExternalAppId -S myExternalAppSecret --applicationScope "OR.Folders.Read OR.Settings.Read"
.
Prerequisites:
- Create a package.
- Run the CLI
exe
(for Windows) ordll
(for Linux) file. - Add the Orchestrator API Access Application Scopes below:
Application Scope
Description
OR.Assets
Assets read and write access in Orchestrator.
OR.BackgroundTasks
BackgroundTasks read and write access in Orchestrator.
OR.Execution
Execution read and write access in Orchestrator.
OR.Folders
Folders read and write access in Orchestrator.
OR.Jobs
Jobs read and write access in Orchestrator.
OR.Machines.Read
Machines read access in Orchestrator.
OR.Monitoring
Monitoring read and write access in Orchestrator.
OR.Robots.Read
Robots read access in Orchestrator.
OR.Settings.Read
Settings read access in Orchestrator.
OR.TestSets
TestSets read and write access in Orchestrator.
OR.TestSetExecutions
TestSetExecutions read and write access in Orchestrator.
OR.TestSetSchedules
TestSetSchedules read and write access in Orchestrator.
OR.Users.Read
Users read access in Orchestrator.
uipcli
creates a process with a default
entry point if you do not specify one. If the entry point is specified, a process with that entry point is created and _{entryPoint}
is appended to the process name. Additionally, all processes associated with the package.Id
are updated to the latest version, regardless of whether the process was created manually or from a pipeline.
Examples:
package deploy "C:\UiPath\Project\TestsPackage.1.0.6820.22047.nupkg" "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -e SAPEnvironment,ExcelAutomationEnvironment -l en-US
.package deploy "C:\UiPath\Project\TestsPackage.1.0.6820.22047.nupkg" "https://uipath-orchestrator.myorg.com" default -A myAccountForExternalApp -I myExternalAppId -S myExternalAppSecret --applicationScope "OR.Folders.Read OR.Settings.Read"
.package deploy "C:\UiPath\Project\TestsPackage.1.0.6820.22047.nupkg" "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -e SAPEnvironment,ExcelAutomationEnvironment -l en-US -h EntryPoint1,EntryPoint2
.
Prerequisites:
- Create projects.
- Run the CLI
exe
(for Windows) ordll
(for Linux) file. - Add the Orchestrator API Access Application Scopes below:
Application Scope
Description
OR.Assets
Assets read and write access in Orchestrator.
OR.BackgroundTasks
BackgroundTasks read and write access in Orchestrator.
OR.Execution
Execution read and write access in Orchestrator.
OR.Folders
Folders read and write access in Orchestrator.
OR.Jobs
Jobs read and write access in Orchestrator.
OR.Machines.Read
Machines read access in Orchestrator.
OR.Monitoring
Monitoring read and write access in Orchestrator.
OR.Robots.Read
Robots read access in Orchestrator.
OR.Settings.Read
Settings read access in Orchestrator.
OR.TestSets
TestSets read and write access in Orchestrator.
OR.TestSetExecutions
TestSetExecutions read and write access in Orchestrator.
OR.TestSetSchedules
TestSetSchedules read and write access in Orchestrator.
OR.Users.Read
Users read access in Orchestrator.
Project validation is not performed by the Pack or Analyze tasks of UiPath CLI.
Legend: (*) - Optional, useful only when you have dependencies from a library in Orchestrator.
Parameter |
Description |
---|---|
Project(s) Path (pos. 0) (Required)
|
The path to a
project.json file, or to a folder that contains project.json files.
|
-o , or --output (Required)
|
The destination Orchestrator folder, where you want to package the projects. |
-v , or --version |
Set the package version. |
|
Auto-generates a package version. |
|
Forces the output to be a specific type. |
--libraryOrchestratorUsername (*)
(Required if you use Basic Authentication, through a username and a password) |
The username used for authenticating to Orchestrator. You must pair it with the corresponding password. This is required if your package references libraries from Orchestrator feed |
--libraryOrchestratorPassword (*)
(Required if you use Basic Authentication, through a username and a password) |
The password used for authenticating to Orchestrator. You must pair it with the corresponding username. This is required if your package references libraries from Orchestrator feed |
--libraryOrchestratorAuthToken (*)
(Required if you use token-based authentication) |
The OAuth2 refresh token used for authenticating to Orchestrator. You must pair it with the Account Name and Client ID. This is required if your package references libraries from Orchestrator feed |
--libraryOrchestratorAccountName (*)
(Required if you use token-based authentication) |
The Orchestrator CloudRPA account name. You must pair it with the OAuth2 refresh token and Client ID. This is required if your package references libraries from Orchestrator feed |
--libraryOrchestratorAccountForApp (*)
|
The Orchestrator CloudRPA account name(organization name). You must pair it with the Application ID,Application Secret, and Application scope for external application This is required if your package references libraries from Orchestrator feed. |
--libraryOrchestratorApplicationId (*)
(Required if you use external application authentication) | The external Application ID. You must pair it with the Application Account, Application Secret, and Application scope.
This is required if your package references libraries from Orchestrator feed. |
--libraryOrchestratorApplicationSecret (*)
(Required if you use external application authentication) |
The external Application Secret. You must pair it with the Application Account, Application ID, and Application scope. This is required if your package references libraries from Orchestrator feed. |
--libraryOrchestratorApplicationScope (*)
(Required if you use external application authentication) |
The list of application scopes, separated by single spaces. You must pair it with the Application Account, Application ID, and Application Secret for external application. This is required if your package references libraries from Orchestrator feed. |
--libraryOrchestratorFolder (*)
|
The name of the target Orchestrator folder. To input subfolders make sure to input both the parent folder name and the name of the subfolder. For instance, use
AccountingTeam\TeamJohn .
|
--libraryOrchestratorUrl (*)
|
The URL of the Orchestrator instance. |
--libraryOrchestratorTenant (*)
|
The tenant of the Orchestrator instance where you want to delete a machine. |
-y , or --disableTelemetry |
Disable telemetry data. |
|
Display the trace of the events. |
-l , or --language |
The language used in the Orchestrator user interface. |
|
Displays the parameters and examples for this command. |
Examples:
package pack "C:\UiPath\Project\project.json" -o "C:\UiPath\Package" -v 1.0.6820.22047
.package pack "C:\UiPath\Project\project.json" -o "C:\UiPath\Package" --autoVersion
.package pack "C:\UiPath\Project\project.json" -o "C:\UiPath\Package" --outputType Tests -l en-US
.
Prerequisites:
- Create a package, or Test Set.
- Run the CLI
exe
(for Windows) ordll
(for Linux) file. - Add the Orchestrator API Access Application Scopes below:
Application Scope
Description
OR.Assets
Assets read and write access in Orchestrator.
OR.BackgroundTasks
BackgroundTasks read and write access in Orchestrator.
OR.Execution
Execution read and write access in Orchestrator.
OR.Folders
Folders read and write access in Orchestrator.
OR.Jobs
Jobs read and write access in Orchestrator.
OR.Machines.Read
Machines read access in Orchestrator.
OR.Monitoring
Monitoring read and write access in Orchestrator.
OR.Robots.Read
Robots read access in Orchestrator.
OR.Settings.Read
Settings read access in Orchestrator.
OR.TestSets
TestSets read and write access in Orchestrator.
OR.TestSetExecutions
TestSetExecutions read and write access in Orchestrator.
OR.TestSetSchedules
TestSetSchedules read and write access in Orchestrator.
OR.Users.Read
Users read access in Orchestrator.
Examples:
-
uipcli test run "https://orch-23-10-paas.cloudapp.azure.com/" "TenantName" -u "orchestratorUsername" -p "********" -o "FolderName" --traceLevel Information -P "C:\userprofile\AutomationProjectWithTestCases\project.json"
-
uipcli test run "https://orch-23-10-paas.cloudapp.azure.com/" "TenantName" -I "76000552-3e4f-4590-9317-cdb420001f1d" -S "********" --applicationScope "OR.Folders OR.BackgroundTasks OR.TestSets OR.TestSetExecutions OR.TestSetSchedules OR.Settings.Read OR.Robots.Read OR.Machines.Read OR.Execution OR.Assets OR.Users.Read OR.Jobs OR.Monitoring" --identityUrl "https://orch-23-10-paas.cloudapp.azure.com/identity" -o "FolderName" --traceLevel Information -P "C:\userprofile\AutomationProjectWithTestCases\project.json"
-
uipcli test run "https://automation-suite.base.url.com/" "TenantName" -A "organizationName" -I "3f6239b9-e0e8-465e-a429-d9ffd1d9e57a" -S "********" --applicationScope "OR.Folders OR.BackgroundTasks OR.TestSets OR.TestSetExecutions OR.TestSetSchedules OR.Settings.Read OR.Robots.Read OR.Machines.Read OR.Execution OR.Assets OR.Users.Read OR.Jobs OR.Monitoring" -o "FolderName" --traceLevel Information -P "C:\userprofile\AutomationProjectWithTestCases\project.json"
-
uipcli test run "https://cloud.uipath.com/" "TenantName" -A "organizationName" -I "becc663c-8f1e-409a-a75f-c00330d80bc8" -S "********" --applicationScope "OR.Folders OR.BackgroundTasks OR.TestSets OR.TestSetExecutions OR.TestSetSchedules OR.Settings.Read OR.Robots.Read OR.Machines.Read OR.Execution OR.Assets OR.Users.Read OR.Jobs OR.Monitoring" -o "FolderName" --traceLevel Information -P "C:\userprofile\AutomationProjectWithTestCases\project.json
-
uipcli test run "https://orch-23-10-paas.cloudapp.azure.com/" "TenantName" -u "orchestratorUsername" -p "********" -o "FolderName" --traceLevel Information -P "C:\userprofile\AutomationProjectWithTestCases\project.json" --out junit
-
uipcli test run "https://orch-23-10-paas.cloudapp.azure.com/" "TenantName" -u "orchestratorUsername" -p "********" -o "FolderName" --traceLevel Information -P "C:\userprofile\AutomationProjectWithTestCases\project.json" --out uipath
- API Access application scopes
- Running UiPath.CLI.Windows
- Running UiPath.CLI
- Displaying the CLI Version
- Deleting Assets From Orchestrator
- Deploying Assets to Orchestrator
- Running a job inside Orchestrator
- Analyzing a Project
- Deleting a Package
- Deploying a Package to Orchestrator
- Packing Projects Into a Package
- Testing a Package/Running a Test Set