To make it easier for you to work with command line arguments, navigate to the directory in which the Robot is installed using the change directory command. For example, if you did not change the default location of the Robot, you can use the following command:
cd C:\Program Files\UiPath\Studio
.
All the examples displayed here are constructed from the assumption that you first executed the command above.
Attended Robots should only run under human supervision.
The Execute Command
UiRobot.exe execute [--process <Package_ID> | --file <File_Path>] [--folder <Orchestrator_Folder_ID>] [--input <Input_Parameters>]
This command is used to start the execution of a process or a file (.json
, .xaml
, or .nupkg
). Please note that the --process
(-p
) and --file
(-f
) arguments can not be simultaneously used with the execute
command. It supports the following arguments:
Argument | Description |
---|---|
| Mandatory. Starts the execution of a local or Orchestrator process. |
| Mandatory. Starts the execution of a local project file. The target file can be |
| Optional. Allows you to specify the Orchestrator folder from which to install and execute the target process. It can only be used together with the |
| Optional. Allows you to specify input arguments for execution. It can be used with the |
| Allows you to select the entry point of a process when starting it via the command line. Example:
|
not supported for Windows or Portable projects.
The Pack Command
Note:
For Studio v2018.4.4 and later releases we recommend publishing using the command
UiPath.Studio.CommandLine.exe publish
instead ofUiRobot.exe pack
. For more information, see Mass Update Command Line Parameters in the Studio guide.
UiRobot.exe pack <Project_Path> --output <Destination_Folder> [-v <Project_Version>]
This command is used to pack a Project.json
file into a .nupkg
file. It supports the following arguments:
Argument | Description |
---|---|
| Mandatory. Allows you to specify where the |
| Optional. Allows you to specify a version for the |
The Connect Command
UiRobot.exe connect [--url <Orchestrator_Server_URL> --key <Machine_Key>] | [--connectionString <Connection_String>]
Note:
If the Robot is already connected, running the
connect
command returns the following message:Orchestrator already connected!
.
This command is used to connect the Robot to an Orchestrator instance. It supports the following arguments:
Argument | Description |
---|---|
| Used to connect the robot to Orchestrator, must be used with the Example: Machine Key example: Client ID and Client Secret example: |
The Disconnect Command
UiRobot.exe disconnect
This command is used to disconnect the Robot from the current Orchestrator instance.
The Trace Command
UiRobot.exe trace --enableLowLevel | --disableLowLevel
This command is used to enable or disable low-level (verbose) tracing for the Robot. It supports the following arguments:
Argument | Description |
---|---|
| Enables low-level tracing. An |
| Disables low-level tracing. An |
The PiP Command
Allows you to enable or disable the Picture in Picture functionality on the machine. This setting is applied on the local machine and affects all users and is used for modifying existing installations.
Administrator rights are required to execute these commands.
Command | Description |
---|---|
| Enables the Picture in Picture functionality of the machine. |
| Disables the Picture in Picture functionality of the machine. |
The ENABLE_PIP Command
Allows you to enable the Picture in Picture functionality of the machine during the UiPath command-line installation.
Command | Description |
---|---|
| Enables the Picture in Picture functionality of the machine. |
| Does not enable the Picture in Picture functionality of the machine. |
Miscellaneous Commands
The following commands are purely informative and have no impact on your automation projects whatsoever:
Argument | Description |
---|---|
| Displays information about the Robot version. |
| Displays the list of supported commands, as well as corresponding information and examples. |
| Sends all pending logs to Orchestrator. |
Updated 25 days ago