Hi Team,
We are looking for a solution where we can connect the UiPath robot/Assistant to the orchestrator just by using any command or running any batch file instead of using the UI interface(Studio/Assistant) to connect.
Kindly let us know if there is any solution.
Hi @manish.s.shetty,
One way to do this is by using the UiPath Robot Command Line Interface (CLI). The Robot CLI provides a set of command-line commands that can be used to interact with the UiPath Robot, including connecting to Orchestrator.
Here are the steps you can follow to connect a robot to Orchestrator using the Robot CLI:
- Open a command prompt or PowerShell window on the machine where the robot/Assistant is installed.
- Navigate to the folder where the Robot CLI is installed. By default, this is located in the following path:
C:\Program Files (x86)\UiPath\Studio\UiPath\
.
- Use the following command to connect the robot to Orchestrator:
cssCopy code
UiRobot.exe connect --url <orchestrator_url> --user <username> --password <password> --robot <robot_name> --tenant <tenant_name>
Replace <orchestrator_url>
with the URL of your Orchestrator instance, <username>
and <password>
with the credentials of a user who has access to the robot, <robot_name>
with the name of the robot that you want to connect, and <tenant_name>
with the name of the tenant that the robot belongs to.
4. If the connection is successful, you should see a message indicating that the robot has connected to Orchestrator.