CLI Reference

rap-agent commands for RAPBot Agent service and Orchestrator connection

rap-agent is the command-line interface for the RAPBot Agent service on Windows/Linux deployments. Use it for service control, connecting to Orchestrator, and inspecting tasks and schedules without the desktop UI.

The agent API listens at http://localhost:56473/agent/api when the service is running.

Service Commands

CommandDescription
rap-agent service-startStart the agent service
rap-agent service-stopStop the service (stops running tasks first if needed)
rap-agent service-restartRestart the agent service
rap-agent statusCheck service health and connection details

Connection Commands

CommandDescription
rap-agent connectInteractive connect to Orchestrator (URL, Organization ID, Agent ID, machine description)
rap-agent disconnectDisconnect from Orchestrator (-f / --force to force)
rap-agent refreshImmediately sync tasks, schedules, and configuration from Orchestrator (same as the Refresh button in the Agent UI)

Connection values come from Connection Details in the Orchestrator agent info dialog.

Example: connect

rap-agent connect
# Enter the orchestrator URL : https://orchestrator-v2.rapidautomation.ai
# Enter the organization Id : <org-id>
# Enter the agent Id : <agent-id>
# Enter the machine description : Finance-PC-01

Example: status

When connected, rap-agent status shows domain, organization, agent name, type, time zone, version, and connected time.

Task Commands

CommandDescription
rap-agent tasksList tasks synced from Orchestrator
rap-agent scheduleList schedules (optional task ID filter)
rap-agent running-taskShow tasks currently executing
rap-agent start-taskStart a task by ID
rap-agent stop-taskStop a task by ID

Tasks must be assigned in Orchestrator before they appear in rap-agent tasks. Under normal operation, tasks sync to the agent automatically within 30 seconds without running refresh.

Typical Unattended Setup

  1. Create and deploy agent in Orchestrator
  2. rap-agent service-start
  3. rap-agent connect with copied connection details
  4. Assign and schedule tasks in Orchestrator
  5. Monitor runs in Task Execution Logs