UiPath Documentation
uipath-cli
latest
false
UiPath CLI user guide

uip or folders

Syntax and options for `uip or folders`, which manages the hierarchical folder containers that scope Orchestrator resources and permissions.

uip or folders manages Orchestrator folders — the hierarchical containers that scope processes, jobs, assets, queues, and user permissions. Verbs cover listing, creating, moving, editing, and deleting folders, a runtimes command that reports machine-runtime allocation inside a folder, and explore and stop-exploring for another user's Personal Workspace.

Synopsis​

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

Verbs​

VerbPurpose
listList folders. Default: folders the current user can access; with --all, every folder in the tenant.
createCreate a folder, optionally nested under a parent.
getFetch one folder by key or path.
deleteDelete a folder by key or path.
moveRe-parent a folder, or move it to the root.
update (alias edit)Update display name and/or description.
runtimesShow runtime allocation (total / connected / available) per runtime type for a folder.
exploreExplore another user's Personal Workspace.
stop-exploringStop exploring a Personal Workspace.

uip or folders list​

List folders. The default view uses GetAllForCurrentUser — folders the caller has access to. With --all, the verb switches to the full Folders endpoint (Standard and Solution folders in the tenant); with --type personal, it switches to the PersonalWorkspaces endpoint. Filtering and sorting flags (--name, --path, --type, --top-level, --sort-by) require --all.

Options​

ShortLongValueDefaultDescription
-a--allflagoffList all folders in the tenant; required to enable the filter and sort flags below.
-n--nametext—Contains-match on display name. Requires --all.
—--pathpath prefix—Filter by folder path prefix (for example, Shared matches Shared and everything below). Requires --all.
—--typeenum—standard, solution, or personal. Requires --all. personal switches to the personal-workspaces endpoint.
—--top-levelflagoffOnly root folders (no parent). Requires --all. Not supported with --type personal.
-l--limitnumber50Page size.
—--offsetnumber0Skip count.
—--sort-byfield—OData sort (for example, Name asc). Requires --all.
—--login-validityminutes10Minimum minutes before token expiry that triggers a pre-request refresh.

Examples​

# Folders the authenticated user can access
uip or folders list

# All tenant folders, filtered and sorted
uip or folders list --all --type standard --name "Prod" --sort-by "Name asc"

# Personal workspaces only
uip or folders list --all --type personal
# Folders the authenticated user can access
uip or folders list

# All tenant folders, filtered and sorted
uip or folders list --all --type standard --name "Prod" --sort-by "Name asc"

# Personal workspaces only
uip or folders list --all --type personal

Data shape (--output json)​

{
  "Code": "FolderList",
  "Data": [
    {
      "Key": "a1b2c3d4-0000-0000-0000-000000000001",
      "Name": "Shared",
      "Path": "Shared",
      "Description": "",
      "Type": "Standard",
      "ParentKey": ""
    }
  ]
}
{
  "Code": "FolderList",
  "Data": [
    {
      "Key": "a1b2c3d4-0000-0000-0000-000000000001",
      "Name": "Shared",
      "Path": "Shared",
      "Description": "",
      "Type": "Standard",
      "ParentKey": ""
    }
  ]
}

With --all, items also include FeedType and PermissionModel. With --type personal, the payload is { Key, Name, OwnerName, OwnerKey, LastLogin }.

uip or folders create​

Create a folder, optionally nested under a parent. --parent accepts either a folder GUID or a path (Shared, Production/EU).

Arguments​

NameRequiredPurpose
<name>yesFolder display name.

Options​

ShortLongValueDefaultDescription
-d--descriptiontext—Folder description.
-p--parentkey or path—Parent folder by GUID or path. Omit for a root folder.
—--feed-typeenumProcessesProcesses, Libraries, FolderHierarchy.
—--permission-modelenumFineGrainedFineGrained or InheritFromTenant.
—--provision-typeenumAutomaticAutomatic or Manual.

Examples​

uip or folders create "Staging"

uip or folders create "EU" --parent "Production" \
    --description "European workloads"

uip or folders create "Libraries" --feed-type Libraries \
    --permission-model InheritFromTenant
uip or folders create "Staging"

uip or folders create "EU" --parent "Production" \
    --description "European workloads"

uip or folders create "Libraries" --feed-type Libraries \
    --permission-model InheritFromTenant

Data shape (--output json)​

{
  "Code": "FolderCreated",
  "Data": {
    "Name": "Staging",
    "ID": 103,
    "Key": "a1b2c3d4-0000-0000-0000-000000000010",
    "Path": "Shared/Staging",
    "Status": "Created successfully"
  }
}
{
  "Code": "FolderCreated",
  "Data": {
    "Name": "Staging",
    "ID": 103,
    "Key": "a1b2c3d4-0000-0000-0000-000000000010",
    "Path": "Shared/Staging",
    "Status": "Created successfully"
  }
}

uip or folders get​

Fetch one folder by key or path. The positional argument auto-detects: UUID input is treated as a key, anything else as a path.

Arguments​

NameRequiredPurpose
<folder-key-or-path>yesFolder GUID or path.

Options​

ShortLongValueDefaultDescription

Examples​

uip or folders get "Shared"
uip or folders get a1b2c3d4-0000-0000-0000-000000000001
uip or folders get "Shared/Staging" --output-filter 'Key'
uip or folders get "Shared"
uip or folders get a1b2c3d4-0000-0000-0000-000000000001
uip or folders get "Shared/Staging" --output-filter 'Key'

Data shape (--output json)​

{
  "Code": "FolderGet",
  "Data": {
    "Name": "Shared",
    "ID": 101,
    "Key": "a1b2c3d4-0000-0000-0000-000000000001",
    "Description": "No description",
    "Path": "Shared",
    "ParentID": "Root",
    "FolderType": "Standard",
    "IsPersonal": "No",
    "ProvisionType": "Automatic",
    "PermissionModel": "FineGrained",
    "FeedType": "Processes"
  }
}
{
  "Code": "FolderGet",
  "Data": {
    "Name": "Shared",
    "ID": 101,
    "Key": "a1b2c3d4-0000-0000-0000-000000000001",
    "Description": "No description",
    "Path": "Shared",
    "ParentID": "Root",
    "FolderType": "Standard",
    "IsPersonal": "No",
    "ProvisionType": "Automatic",
    "PermissionModel": "FineGrained",
    "FeedType": "Processes"
  }
}

uip or folders delete​

Delete a folder by key or path. Fails if the folder contains entities or user associations — remove or move contents first.

Arguments​

NameRequiredPurpose
<folder-key-or-path>yesFolder GUID or path.

Options​

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

Examples​

uip or folders delete "Shared/Staging" --yes
uip or folders delete a1b2c3d4-0000-0000-0000-000000000010 --yes
uip or folders delete "Shared/Staging" --yes --output-filter 'Status'
uip or folders delete "Shared/Staging" --yes
uip or folders delete a1b2c3d4-0000-0000-0000-000000000010 --yes
uip or folders delete "Shared/Staging" --yes --output-filter 'Status'

Data shape (--output json)​

{
  "Code": "FolderDelete",
  "Data": {
    "Key": "a1b2c3d4-0000-0000-0000-000000000010",
    "Path": "Shared/Staging",
    "Status": "Deleted successfully"
  }
}
{
  "Code": "FolderDelete",
  "Data": {
    "Key": "a1b2c3d4-0000-0000-0000-000000000010",
    "Path": "Shared/Staging",
    "Status": "Deleted successfully"
  }
}

uip or folders move​

Move a folder to a new parent, or up to the root. You must provide exactly one of --parent or --root.

Arguments​

NameRequiredPurpose
<folder-key-or-path>yesFolder GUID or path to move.

Options​

ShortLongValueDefaultDescription
-p--parentkey or path—New parent folder. Required unless --root is set.
—--rootflagoffMove to the top level (no parent).

Examples​

uip or folders move "Shared/Staging" --parent "Production"
uip or folders move a1b2c3d4-0000-0000-0000-000000000010 --root
uip or folders move "Shared/Staging" --parent "Production" \
    --output-filter 'TargetParentPath'
uip or folders move "Shared/Staging" --parent "Production"
uip or folders move a1b2c3d4-0000-0000-0000-000000000010 --root
uip or folders move "Shared/Staging" --parent "Production" \
    --output-filter 'TargetParentPath'

Data shape (--output json)​

{
  "Code": "FolderMove",
  "Data": {
    "FolderKey": "a1b2c3d4-0000-0000-0000-000000000010",
    "FolderPath": "Shared/Staging",
    "TargetParentPath": "Production",
    "Status": "Moved successfully"
  }
}
{
  "Code": "FolderMove",
  "Data": {
    "FolderKey": "a1b2c3d4-0000-0000-0000-000000000010",
    "FolderPath": "Shared/Staging",
    "TargetParentPath": "Production",
    "Status": "Moved successfully"
  }
}

--root sets TargetParentPath to (root).

uip or folders update​

Update display name and/or description. At least one of --name or --description must be provided.

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

Arguments​

NameRequiredPurpose
<folder-key-or-path>yesFolder GUID or path.

Options​

ShortLongValueDefaultDescription
-n--nametext—New display name.
-d--descriptiontext—New description.

Examples​

uip or folders update a1b2c3d4-0000-0000-0000-000000000010 --name "Staging (EU)"
uip or folders update "Shared/Staging" --description "Pre-prod runs"
uip or folders update "Shared/Staging" --name "Staging (EU)" --output-filter 'Status'
uip or folders update a1b2c3d4-0000-0000-0000-000000000010 --name "Staging (EU)"
uip or folders update "Shared/Staging" --description "Pre-prod runs"
uip or folders update "Shared/Staging" --name "Staging (EU)" --output-filter 'Status'

Data shape (--output json)​

{
  "Code": "FolderUpdate",
  "Data": { "Status": "Updated successfully" }
}
{
  "Code": "FolderUpdate",
  "Data": { "Status": "Updated successfully" }
}

uip or folders runtimes​

List runtime allocation for a folder — for each runtime type, how many slots are total, connected, and available. Useful for checking capacity before starting jobs.

Provide exactly one of --folder-path, --folder-key, or the positional folder.

Arguments​

NameRequiredPurpose
[folder-key-or-path]noDeprecated. Folder GUID or path. Use --folder-path or --folder-key. Passing it prints a deprecation warning.

Options​

ShortLongValueDefaultDescription
—--folder-pathpath—Folder path (for example, Shared).
—--folder-keyGUID—Folder key. Use uip or folders list to find it.
—--process-typeenum—Process, Agent, Function, or Api, matched case-insensitively.

With --process-type, the command reports the runtimes a job of that process type can use: the Local row then counts only that job's slot pool, as the Start Job dialog in Orchestrator does.

Examples​

uip or folders runtimes --folder-path "Shared"
uip or folders runtimes --folder-path "Shared" --process-type Agent
uip or folders runtimes --folder-key a1b2c3d4-0000-0000-0000-000000000001
uip or folders runtimes --folder-path "Shared" \
    --output-filter "[?Type=='Unattended'].Available | [0]"
uip or folders runtimes --folder-path "Shared"
uip or folders runtimes --folder-path "Shared" --process-type Agent
uip or folders runtimes --folder-key a1b2c3d4-0000-0000-0000-000000000001
uip or folders runtimes --folder-path "Shared" \
    --output-filter "[?Type=='Unattended'].Available | [0]"

Data shape (--output json)​

{
  "Code": "FolderRuntimes",
  "Data": [
    { "Type": "Unattended", "Total": 4, "Connected": 3, "Available": 1 },
    { "Type": "NonProduction", "Total": 2, "Connected": 1, "Available": 1 }
  ]
}
{
  "Code": "FolderRuntimes",
  "Data": [
    { "Type": "Unattended", "Total": 4, "Connected": 3, "Available": 1 },
    { "Type": "NonProduction", "Total": 2, "Connected": 1, "Available": 1 }
  ]
}

uip or folders explore​

Explore another user's Personal Workspace, as the Explore action in Orchestrator does. You get the Personal Workspace Administrator role on the workspace and can view everything in it. Orchestrator audits the action and notifies the owner.

The command then asks Integration Service to re-read your folder access, so that the connections in the workspace are available to you immediately. If that refresh fails, the command still succeeds and prints a warning.

The command needs a user login with the Folders.Edit, Users.View, and Roles.View permissions on the tenant. Orchestrator refuses an external application or a personal access token. Provide exactly one of the positional workspace or --owner.

Arguments​

NameRequiredPurpose
[workspace-key-or-name]noPersonal Workspace GUID or name. Use uip or folders list --all --type personal to find it. Required unless --owner is set.

Options​

ShortLongValueDefaultDescription
—--owneruser—The owner of the workspace, by user name (usually their email) or user key (GUID). Replaces the positional workspace.

Examples​

uip or folders explore "jane.doe@example.com's workspace"
uip or folders explore a1b2c3d4-0000-0000-0000-000000000020
uip or folders explore --owner jane.doe@example.com
uip or folders explore "jane.doe@example.com's workspace"
uip or folders explore a1b2c3d4-0000-0000-0000-000000000020
uip or folders explore --owner jane.doe@example.com

Data shape (--output json)​

{
  "Code": "FolderExplore",
  "Data": {
    "Key": "a1b2c3d4-0000-0000-0000-000000000020",
    "Name": "jane.doe@example.com's workspace",
    "OwnerName": "jane.doe@example.com",
    "Status": "Exploring"
  }
}
{
  "Code": "FolderExplore",
  "Data": {
    "Key": "a1b2c3d4-0000-0000-0000-000000000020",
    "Name": "jane.doe@example.com's workspace",
    "OwnerName": "jane.doe@example.com",
    "Status": "Exploring"
  }
}

Status is Already exploring when you already explore the workspace. The command fails with invalid_argument for your own Personal Workspace or a name that matches several workspaces, and with not_found when no workspace matches.

uip or folders stop-exploring​

Stop exploring a Personal Workspace. This removes the role that uip or folders explore gave you, and Orchestrator notifies the owner. The login, permissions, argument, and option are the same as for uip or folders explore.

Arguments​

NameRequiredPurpose
[workspace-key-or-name]noPersonal Workspace GUID or name. Required unless --owner is set.

Options​

ShortLongValueDefaultDescription
—--owneruser—The owner of the workspace, by user name (usually their email) or user key (GUID). Replaces the positional workspace.

Examples​

uip or folders stop-exploring a1b2c3d4-0000-0000-0000-000000000020
uip or folders stop-exploring --owner jane.doe@example.com
uip or folders stop-exploring a1b2c3d4-0000-0000-0000-000000000020
uip or folders stop-exploring --owner jane.doe@example.com

Data shape (--output json)​

{
  "Code": "FolderStopExploring",
  "Data": {
    "Key": "a1b2c3d4-0000-0000-0000-000000000020",
    "Name": "jane.doe@example.com's workspace",
    "OwnerName": "jane.doe@example.com",
    "Status": "Stopped exploring"
  }
}
{
  "Code": "FolderStopExploring",
  "Data": {
    "Key": "a1b2c3d4-0000-0000-0000-000000000020",
    "Name": "jane.doe@example.com's workspace",
    "OwnerName": "jane.doe@example.com",
    "Status": "Stopped exploring"
  }
}

Status is Was not exploring when you do not explore the workspace.

Exit codes​

See Exit codes. No verb-specific overrides.

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