UiPath Documentation
uipath-cli
latest
false
UiPath CLI user guide

uip or machines

Syntax and options for `uip or machines`, which manages machine templates defining where robots execute and how many license slots are allocated.

uip or machines manages machine templates — robot host definitions that describe where robots execute and how many license slots of each type are allocated. Machines are tenant-scoped but can be assigned to specific folders.

Synopsis​

uip or machines <verb> [options]
uip or machines <verb> [options]

Verbs​

VerbPurpose
listList machines in the tenant, or machines assigned to a specific folder.
getFetch one machine by key.
createCreate a new machine template (optionally serverless).
update (alias edit)Update a machine's name, description, or slot allocation.
deleteDelete one or more machines.
assignAssign machines to a folder.
unassignRemove machines from a folder.

uip or machines list​

List machines. Without --folder-key or --folder-path, returns every machine in the tenant. With either flag, returns only machines assigned to that folder.

Options​

ShortLongValueDefaultDescription
—--folder-keyGUID—Scope to a folder by key.
—--folder-pathpath—Scope to a folder by path.
-n--nametext—Contains-match on machine name.
—--scopeenum—Default, Shared, PersonalWorkspace, Cloud, Serverless, AutomationCloudRobot, ElasticRobot.
-l--limitnumber50Page size.
—--offsetnumber0Skip count.
—--sort-byfieldId descOData sort.
—--all-fieldsflagoffReturn the full API payload.

Examples​

uip or machines list --limit 10
uip or machines list --folder-path "Shared"
uip or machines list --limit 50 --scope Serverless \
    --output-filter '[].{name:Name, slots:UnattendedSlots}'
uip or machines list --limit 10
uip or machines list --folder-path "Shared"
uip or machines list --limit 50 --scope Serverless \
    --output-filter '[].{name:Name, slots:UnattendedSlots}'

Data shape (--output json)​

{
  "Code": "MachineList",
  "Data": [
    {
      "Name": "prod-worker-01",
      "ID": 101,
      "Key": "a1b2c3d4-0000-0000-0000-000000000001",
      "Type": "Standard",
      "Scope": "Default",
      "Description": "",
      "UnattendedSlots": 3,
      "HeadlessSlots": 0,
      "NonProductionSlots": 0,
      "TestAutomationSlots": 0,
      "AgentSlots": 0,
      "FunctionSlots": 0,
      "VerticalsRpaSlots": 0,
      "VerticalsAgentSlots": 0,
      "VerticalsFunctionSlots": 0,
      "ExecutionOptions": "None",
      "LicenseKey": "b1c2d3e4-0000-0000-0000-000000000100"
    }
  ],
  "Pagination": { "Returned": 1, "Limit": 50, "Offset": 0, "HasMore": false }
}
{
  "Code": "MachineList",
  "Data": [
    {
      "Name": "prod-worker-01",
      "ID": 101,
      "Key": "a1b2c3d4-0000-0000-0000-000000000001",
      "Type": "Standard",
      "Scope": "Default",
      "Description": "",
      "UnattendedSlots": 3,
      "HeadlessSlots": 0,
      "NonProductionSlots": 0,
      "TestAutomationSlots": 0,
      "AgentSlots": 0,
      "FunctionSlots": 0,
      "VerticalsRpaSlots": 0,
      "VerticalsAgentSlots": 0,
      "VerticalsFunctionSlots": 0,
      "ExecutionOptions": "None",
      "LicenseKey": "b1c2d3e4-0000-0000-0000-000000000100"
    }
  ],
  "Pagination": { "Returned": 1, "Limit": 50, "Offset": 0, "HasMore": false }
}

uip or machines get​

Fetch a machine by GUID key. No folder context required — machines are tenant-scoped.

Arguments​

NameRequiredPurpose
<machine-key>yesMachine key (GUID). Find it with machines list.

Options​

ShortLongValueDefaultDescription
—--all-fieldsflagoffReturn the full API payload.

Examples​

uip or machines get a1b2c3d4-0000-0000-0000-000000000001
uip or machines get a1b2c3d4-0000-0000-0000-000000000001 --all-fields
uip or machines get a1b2c3d4-0000-0000-0000-000000000001 \
    --output-filter 'UnattendedSlots'
uip or machines get a1b2c3d4-0000-0000-0000-000000000001
uip or machines get a1b2c3d4-0000-0000-0000-000000000001 --all-fields
uip or machines get a1b2c3d4-0000-0000-0000-000000000001 \
    --output-filter 'UnattendedSlots'

Data shape (--output json)​

{
  "Code": "MachineGet",
  "Data": {
    "Name": "prod-worker-01",
    "ID": 101,
    "Key": "a1b2c3d4-0000-0000-0000-000000000001",
    "Type": "Standard",
    "Scope": "Default",
    "Description": "",
    "UnattendedSlots": 3,
    "HeadlessSlots": 0,
    "NonProductionSlots": 0,
    "TestAutomationSlots": 0,
    "AgentSlots": 0,
    "FunctionSlots": 0,
    "VerticalsRpaSlots": 0,
    "VerticalsAgentSlots": 0,
    "VerticalsFunctionSlots": 0,
    "ExecutionOptions": "None",
    "LicenseKey": "b1c2d3e4-0000-0000-0000-000000000100"
  }
}
{
  "Code": "MachineGet",
  "Data": {
    "Name": "prod-worker-01",
    "ID": 101,
    "Key": "a1b2c3d4-0000-0000-0000-000000000001",
    "Type": "Standard",
    "Scope": "Default",
    "Description": "",
    "UnattendedSlots": 3,
    "HeadlessSlots": 0,
    "NonProductionSlots": 0,
    "TestAutomationSlots": 0,
    "AgentSlots": 0,
    "FunctionSlots": 0,
    "VerticalsRpaSlots": 0,
    "VerticalsAgentSlots": 0,
    "VerticalsFunctionSlots": 0,
    "ExecutionOptions": "None",
    "LicenseKey": "b1c2d3e4-0000-0000-0000-000000000100"
  }
}

uip or machines create​

Create a new machine template. The machine name is required; with --serverless, the machine is created as a cloud-hosted (Portable) template.

Arguments​

NameRequiredPurpose
<name>yesMachine name (must be unique within the tenant).

Options​

ShortLongValueDefaultDescription
-d--descriptiontext—Machine description.
—--serverlessflagoffCreate a serverless (cloud-hosted) machine.
—--unattended-slotsnumber—Unattended robot slots.
—--headless-slotsnumber—Headless robot slots.
—--non-production-slotsnumber—Non-production robot slots.
—--testing-slotsnumber—Test-automation robot slots.
—--agent-slotsnumber—Agent jobs that can run in parallel on the machine's Local runtime.
—--function-slotsnumber—Function and API workflow jobs that can run in parallel on the machine's Local runtime.
—--verticals-rpa-slotsnumber—Local RPA slots reserved for Vertical Solution legs. Used only with --execution-options RunVerticals.
—--verticals-agent-slotsnumber—Local Agent slots reserved for Vertical Solution legs. Used only with --execution-options RunVerticals.
—--verticals-function-slotsnumber—Local Function slots reserved for Vertical Solution legs. Used only with --execution-options RunVerticals.
—--execution-optionslist—One or more of None, AgentsOnUnattended, and RunVerticals, space-separated. Replaces the machine's current value. Refer to Execution options.

Examples​

uip or machines create "staging-worker" --unattended-slots 2

uip or machines create "serverless-pool" --serverless \
    --unattended-slots 10

uip or machines create "qa-host" --unattended-slots 1 --testing-slots 2 \
    --output-filter 'Key'

uip or machines create "local-worker" --agent-slots 2 --function-slots 2 \
    --verticals-agent-slots 1 --execution-options RunVerticals
uip or machines create "staging-worker" --unattended-slots 2

uip or machines create "serverless-pool" --serverless \
    --unattended-slots 10

uip or machines create "qa-host" --unattended-slots 1 --testing-slots 2 \
    --output-filter 'Key'

uip or machines create "local-worker" --agent-slots 2 --function-slots 2 \
    --verticals-agent-slots 1 --execution-options RunVerticals

Slot counts and execution options​

Every slot option takes a whole number, 0 or greater. 0 sets a slot count to zero. A negative or non-whole number fails before the request is sent.

Execution options​

--execution-options sets how the machine runs non-RPA jobs:

ValueEffect
NoneNo extra execution options.
AgentsOnUnattendedFunction and API workflow jobs use the machine's Unattended slots.
RunVerticalsThe machine runs Vertical Solution legs on its vertical slots (--verticals-rpa-slots, --verticals-agent-slots, --verticals-function-slots).

Values are matched case-insensitively and can also be comma-separated. AgentsOnUnattended and RunVerticals can be passed together to set both. None alongside another value is dropped. The value you pass replaces the current one, so on update, any option not passed is removed. The same rules apply to uip or machines update.

Data shape (--output json)​

{
  "Code": "MachineCreated",
  "Data": {
    "Name": "staging-worker",
    "ID": 103,
    "Key": "a1b2c3d4-0000-0000-0000-000000000010",
    "Type": "Template",
    "Scope": "Default",
    "Description": "",
    "UnattendedSlots": 2,
    "HeadlessSlots": 0,
    "NonProductionSlots": 0,
    "TestAutomationSlots": 0,
    "AgentSlots": 0,
    "FunctionSlots": 0,
    "VerticalsRpaSlots": 0,
    "VerticalsAgentSlots": 0,
    "VerticalsFunctionSlots": 0,
    "ExecutionOptions": "None",
    "LicenseKey": ""
  }
}
{
  "Code": "MachineCreated",
  "Data": {
    "Name": "staging-worker",
    "ID": 103,
    "Key": "a1b2c3d4-0000-0000-0000-000000000010",
    "Type": "Template",
    "Scope": "Default",
    "Description": "",
    "UnattendedSlots": 2,
    "HeadlessSlots": 0,
    "NonProductionSlots": 0,
    "TestAutomationSlots": 0,
    "AgentSlots": 0,
    "FunctionSlots": 0,
    "VerticalsRpaSlots": 0,
    "VerticalsAgentSlots": 0,
    "VerticalsFunctionSlots": 0,
    "ExecutionOptions": "None",
    "LicenseKey": ""
  }
}

uip or machines update​

Update a machine's name, description, or slot allocation. Only provided options are updated; omitted fields remain unchanged.

edit is a registered alias for this verb — uip or machines edit works identically to uip or machines update.

Arguments​

NameRequiredPurpose
<machine-key>yesMachine key (GUID).

Options​

ShortLongValueDefaultDescription
-n--nametext—New machine name.
-d--descriptiontext—New machine description.
—--unattended-slotsnumber—Unattended robot slots.
—--headless-slotsnumber—Headless robot slots.
—--non-production-slotsnumber—Non-production robot slots.
—--testing-slotsnumber—Test-automation robot slots.
—--agent-slotsnumber—Agent jobs that can run in parallel on the machine's Local runtime.
—--function-slotsnumber—Function and API workflow jobs that can run in parallel on the machine's Local runtime.
—--verticals-rpa-slotsnumber—Local RPA slots reserved for Vertical Solution legs. Used only with --execution-options RunVerticals.
—--verticals-agent-slotsnumber—Local Agent slots reserved for Vertical Solution legs. Used only with --execution-options RunVerticals.
—--verticals-function-slotsnumber—Local Function slots reserved for Vertical Solution legs. Used only with --execution-options RunVerticals.
—--execution-optionslist—One or more of None, AgentsOnUnattended, and RunVerticals, space-separated. Replaces the machine's current value. Refer to Execution options.

Examples​

uip or machines update a1b2c3d4-0000-0000-0000-000000000010 --unattended-slots 5
uip or machines update a1b2c3d4-0000-0000-0000-000000000010 \
    --name "staging-worker-eu" --description "EU staging host"
uip or machines update a1b2c3d4-0000-0000-0000-000000000010 \
    --unattended-slots 5 --output-filter 'Status'
uip or machines update a1b2c3d4-0000-0000-0000-000000000010 \
    --execution-options AgentsOnUnattended RunVerticals
uip or machines update a1b2c3d4-0000-0000-0000-000000000010 --unattended-slots 5
uip or machines update a1b2c3d4-0000-0000-0000-000000000010 \
    --name "staging-worker-eu" --description "EU staging host"
uip or machines update a1b2c3d4-0000-0000-0000-000000000010 \
    --unattended-slots 5 --output-filter 'Status'
uip or machines update a1b2c3d4-0000-0000-0000-000000000010 \
    --execution-options AgentsOnUnattended RunVerticals

Data shape (--output json)​

{
  "Code": "MachineUpdate",
  "Data": {
    "Key": "a1b2c3d4-0000-0000-0000-000000000010",
    "Name": "staging-worker",
    "Status": "Updated successfully"
  }
}
{
  "Code": "MachineUpdate",
  "Data": {
    "Key": "a1b2c3d4-0000-0000-0000-000000000010",
    "Name": "staging-worker",
    "Status": "Updated successfully"
  }
}

uip or machines delete​

Delete one or more machines. A single key uses DeleteById; multiple keys use the bulk API. Machines must be unassigned from all folders before deletion.

Arguments​

NameRequiredPurpose
<machine-keys...>yesOne or more machine keys (GUIDs).

Options​

ShortLongValueDefaultDescription
-y--yesflag—Required. Confirms this irreversible operation — the CLI never prompts.

Examples​

uip or machines delete a1b2c3d4-0000-0000-0000-000000000010 --yes
uip or machines delete key-1 key-2 key-3 --yes
uip or machines delete key-1 key-2 --yes --output-filter 'Count'
uip or machines delete a1b2c3d4-0000-0000-0000-000000000010 --yes
uip or machines delete key-1 key-2 key-3 --yes
uip or machines delete key-1 key-2 --yes --output-filter 'Count'

Data shape (--output json)​

{
  "Code": "MachineDelete",
  "Data": {
    "Deleted": [
      { "Key": "a1b2c3d4-0000-0000-0000-000000000010", "Name": "staging-worker" }
    ],
    "Count": 1,
    "Status": "Deleted successfully"
  }
}
{
  "Code": "MachineDelete",
  "Data": {
    "Deleted": [
      { "Key": "a1b2c3d4-0000-0000-0000-000000000010", "Name": "staging-worker" }
    ],
    "Count": 1,
    "Status": "Deleted successfully"
  }
}

uip or machines assign​

Assign one or more machines to a folder. Requires --folder-path or --folder-key.

Arguments​

NameRequiredPurpose
<machine-keys...>yesOne or more machine keys (GUIDs).

Options​

ShortLongValueDefaultDescription
—--folder-pathpath—Target folder by path.
—--folder-keyGUID—Target folder by key.

Examples​

uip or machines assign a1b2c3d4-0000-0000-0000-000000000001 \
    --folder-path "Shared"

uip or machines assign key-1 key-2 --folder-key b1c2d3e4-0000-0000-0000-000000000001

uip or machines assign a1b2c3d4-0000-0000-0000-000000000001 \
    --folder-path "Shared" --output-filter 'Status'
uip or machines assign a1b2c3d4-0000-0000-0000-000000000001 \
    --folder-path "Shared"

uip or machines assign key-1 key-2 --folder-key b1c2d3e4-0000-0000-0000-000000000001

uip or machines assign a1b2c3d4-0000-0000-0000-000000000001 \
    --folder-path "Shared" --output-filter 'Status'

Data shape (--output json)​

{
  "Code": "MachineAssign",
  "Data": {
    "MachineKeys": ["a1b2c3d4-0000-0000-0000-000000000001"],
    "FolderPath": "Shared",
    "Count": 1,
    "Status": "Assigned successfully"
  }
}
{
  "Code": "MachineAssign",
  "Data": {
    "MachineKeys": ["a1b2c3d4-0000-0000-0000-000000000001"],
    "FolderPath": "Shared",
    "Count": 1,
    "Status": "Assigned successfully"
  }
}

uip or machines unassign​

Remove machines from a folder. The machines are not deleted — only their folder assignment is removed. Requires --folder-path or --folder-key.

Arguments​

NameRequiredPurpose
<machine-keys...>yesOne or more machine keys (GUIDs).

Options​

ShortLongValueDefaultDescription
—--folder-pathpath—Folder to unassign from.
—--folder-keyGUID—Folder to unassign from.

Examples​

uip or machines unassign a1b2c3d4-0000-0000-0000-000000000001 \
    --folder-path "Shared"

uip or machines unassign key-1 key-2 --folder-path "Production"

uip or machines unassign a1b2c3d4-0000-0000-0000-000000000001 \
    --folder-path "Shared" --output-filter 'Count'
uip or machines unassign a1b2c3d4-0000-0000-0000-000000000001 \
    --folder-path "Shared"

uip or machines unassign key-1 key-2 --folder-path "Production"

uip or machines unassign a1b2c3d4-0000-0000-0000-000000000001 \
    --folder-path "Shared" --output-filter 'Count'

Data shape (--output json)​

{
  "Code": "MachineUnassign",
  "Data": {
    "MachineKeys": ["a1b2c3d4-0000-0000-0000-000000000001"],
    "FolderPath": "Shared",
    "Count": 1,
    "Status": "Unassigned successfully"
  }
}
{
  "Code": "MachineUnassign",
  "Data": {
    "MachineKeys": ["a1b2c3d4-0000-0000-0000-000000000001"],
    "FolderPath": "Shared",
    "Count": 1,
    "Status": "Unassigned successfully"
  }
}

Exit codes​

See Exit codes. No verb-specific overrides.

  • uip or folders — especially folders runtimes to inspect machine allocation from the folder side.
  • uip or licenses — licenses toggle enables/disables licensing on a specific machine.
  • uip or jobs — jobs start --machine-keys targets specific machines.

See also​

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated