UiPath Documentation
uipath-cli
latest
false
重要 :
请注意,此内容已使用机器翻译进行了本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

UiPath CLI 用户指南

UIP 流注册表

uip flow registry用于浏览流节点注册表.flow文件中可用的构建块目录。注册表包含 OOTB 活动( uipath.agentuipath.http等)和调用第三方 API(Slack、Salesforce、Jira 等)的连接器节点。登录后,注册表还包含租户中安装的连接器节点。

注册表在 UiPath 工作流界面之间共享;相同的实现也支持uip maestro (请参阅通过uip maestro bpmn registry公开的Maestro 注册表)。

所有子命令都遵循全局选项。退出代码遵循标准合同

大纲

uip flow registry pull   [-f, --force]
uip flow registry list   [-l, --limit <n>] [--local]
uip flow registry search [<keyword>] [-f, --filter <expr>] [--local]
uip flow registry get    <nodeType> [--connection-id <id>] [--local]
uip flow registry pull   [-f, --force]
uip flow registry list   [-l, --limit <n>] [--local]
uip flow registry search [<keyword>] [-f, --filter <expr>] [--local]
uip flow registry get    <nodeType> [--connection-id <id>] [--local]

典型工作流

# 0. (Optional) Login for the full, tenant-enriched registry
uip login

# 1. Sync the registry (once per session — cache expires after 30 minutes)
uip flow registry pull

# 2. Search for a candidate node
uip flow registry search slack --filter "displayname:contains=send"

# 3. Inspect the full schema
uip flow registry get uipath.connector.slack.send-message

# 4. Extract just the input field definitions (useful for building requests)
uip flow registry get uipath.connector.slack.send-message \
  --output-filter "Node.inputDefinition.fields"
# 0. (Optional) Login for the full, tenant-enriched registry
uip login

# 1. Sync the registry (once per session — cache expires after 30 minutes)
uip flow registry pull

# 2. Search for a candidate node
uip flow registry search slack --filter "displayname:contains=send"

# 3. Inspect the full schema
uip flow registry get uipath.connector.slack.send-message

# 4. Extract just the input field definitions (useful for building requests)
uip flow registry get uipath.connector.slack.send-message \
  --output-filter "Node.inputDefinition.fields"

无需登录,仅返回内置 (OOTB) 节点。


UIP 流注册表拉取

获取节点注册表并将其写入本地缓存。后续的listsearchget调用将从此缓存中读取。

选项

  • -f, --force — 强制刷新,忽略缓存。

Cache behavior

  • 缓存将在 30 分钟后过期。缓存过期或缺失会触发实时提取。
  • 未登录时,系统将返回 OOTB 节点,而不更新缓存。
  • 如果通过身份验证的获取失败,命令将回退到 OOTB 节点,而不更新缓存。

Data shape (--output json)

{
  "Code": "NodePullSuccess",
  "Data": {
    "NodesCount":   184,
    "FromCache":    false,
    "AgeMinutes":   null,
    "Source":       "authenticated",
    "CacheWritten": true,
    "Message":      "Synced fresh nodes",
    "Info":         null
  }
}
{
  "Code": "NodePullSuccess",
  "Data": {
    "NodesCount":   184,
    "FromCache":    false,
    "AgeMinutes":   null,
    "Source":       "authenticated",
    "CacheWritten": true,
    "Message":      "Synced fresh nodes",
    "Info":         null
  }
}

Source"ootb" (未验证)或"authenticated" (租户专属)。如果达到AgeMinutes ,则填充FromCache: true


UIP 流注册表列表

缓存节点示例。默认为前 20 个条目。

选项

选项默认描述
-l, --limit <n>20要返回的节点数。为全部传递-1 。必须是正整数或-1
--local关闭仅显示解决方案内的项目节点。需要 CWD、父父项或祖父项中的.uipx

如果在没有先前list的情况下调用pull ,则该服务将首先获取实时数据。

数据形状

{
  "Code": "NodeListSuccess",
  "Data": [
    {
      "NodeType":    "uipath.slack.connector.send-message",
      "Category":    "connector",
      "DisplayName": "Send Message",
      "Description": "Post a message to a Slack channel",
      "Version":     "1.0.0",
      "Tags":        "slack, messaging"
    }
  ]
}
{
  "Code": "NodeListSuccess",
  "Data": [
    {
      "NodeType":    "uipath.slack.connector.send-message",
      "Category":    "connector",
      "DisplayName": "Send Message",
      "Description": "Post a message to a Slack channel",
      "Version":     "1.0.0",
      "Tags":        "slack, messaging"
    }
  ]
}

如果结果被截断,stderr 上会发出一个日志行,显示总计与显示数量。


按关键字和/或结构化筛选器查找节点。

参数

  • [keyword] — 根据nodeTypecategorytagsdisplay.labeldescription匹配的子字符串。

选项

选项描述
-f, --filter <expr>结构化字段筛选器(请参阅以下语法)。
--local仅搜索解决方案内的节点(需要附近的.uipx )。

至少需要<keyword>--filter

筛选器语法

field=value                     # equality (default operator)
field:operator=value            # operator variant
field1=v1,field2=v2             # multiple conditions (AND)
field=value                     # equality (default operator)
field:operator=value            # operator variant
field1=v1,field2=v2             # multiple conditions (AND)

运算符: equals (默认)以及containsstartsWithendsWithin

可筛选字段(别名显示在括号中):

  • category [ cat ] — 例如connectoragenttrigger
  • type [ nodetype ] — 节点类型标识符
  • tags [ tag ] — 节点标签
  • displayname [ display_namenamelabel ] — 人类可读的名称
示例
uip flow registry search slack
uip flow registry search --filter "category=connector"
uip flow registry search --filter "displayname:contains=send message"
uip flow registry search slack --filter "category=connector"
uip flow registry search --filter "tags:in=ai,automation"
uip flow registry search --filter "category=connector,displayname:contains=slack"
uip flow registry search slack
uip flow registry search --filter "category=connector"
uip flow registry search --filter "displayname:contains=send message"
uip flow registry search slack --filter "category=connector"
uip flow registry search --filter "tags:in=ai,automation"
uip flow registry search --filter "category=connector,displayname:contains=slack"

数据形状:与list相同的形状 — Code: "NodeSearchSuccess"Data: [flattened nodes…]


uip 流注册表获取

返回单个节点的完整详细信息。

参数

  • <nodeType> (必填项) — 节点类型标识符(不区分大小写)。

选项

选项描述
--connection-id <id>Integration Service 丰富的连接 ID。对于连接器触发器节点为必要项;对于连接器活动节点为可选。
--local仅从解决方案项目中获取节点。

丰富 Integration Service

对于标记为"connector"节点, get会自动调用 Integration Service 并合并实时元数据:

连接器活动节点uipath.connector.* ,非触发器):

  • inputDefinition.fields[] — 要配置的字段。每个包含namedisplayNametyperequired ,也可以包含reference (查找: objectNamepathlookupValuelookupNameschildPath )或enum
  • outputResponseDefinition — 节点运行后生成的字段。
  • connectorMethodInfo — HTTP 方法、路径、操作 ID。
  • --connection-id是可选项;如果输入为 1,则会添加特定于该帐户的自定义字段。

连接器触发器节点( uipath.connector.trigger.* ):

  • eventParameters — 配置触发器的字段(例如,查看哪个文件夹)。
  • filterFields — 用于筛选触发触发器的事件的字段。
  • outputResponseDefinition — 由事件有效负载生成的字段。
  • eventMode"webhooks""polling"
  • “登录名”--connection-id为必填项 — 否则,不会返回任何丰富内容。

每个输入字段的元数据

inputDefinition.fields下的每个条目:

属性描述
name请求/响应的 JSON 密钥。
displayName人类可读标签。
type数据类型( stringbooleaninteger …)。
requiredtrue 如果为必填项(仅输入字段)。
description此字段的作用。
enum允许的值(如果受到限制)。
reference对象引用元数据 — 字段需要提供 ID,而不是纯名称。
responseOnlytrue 在输出字段上。
数据形状
{
  "Code": "NodeGetSuccess",
  "Data": {
    "Node": {
      "nodeType":        "uipath.slack.connector.send-message",
      "category":        "connector",
      "display":         { "label": "Send Message" },
      "inputDefinition": {
        "fields": [
          { "name": "channel", "required": true, "type": "string" }
        ]
      }
    }
  }
}
{
  "Code": "NodeGetSuccess",
  "Data": {
    "Node": {
      "nodeType":        "uipath.slack.connector.send-message",
      "category":        "connector",
      "display":         { "label": "Send Message" },
      "inputDefinition": {
        "fields": [
          { "name": "channel", "required": true, "type": "string" }
        ]
      }
    }
  }
}

示例

# Basic activity lookup (anonymous, OOTB)
uip flow registry get uipath.agent

# Connector activity with optional account-specific enrichment
uip flow registry get uipath.connector.uipath-salesforce-slack.send-message \
  --connection-id <connection-id>

# Connector trigger — requires login + connection-id
uip flow registry get uipath.connector.trigger.uipath-microsoft-outlook365.email-received \
  --connection-id <connection-id>

# Just the input fields, for building a request body
uip flow registry get uipath.connector.slack.send-message \
  --output-filter "Node.inputDefinition.fields" --output json
# Basic activity lookup (anonymous, OOTB)
uip flow registry get uipath.agent

# Connector activity with optional account-specific enrichment
uip flow registry get uipath.connector.uipath-salesforce-slack.send-message \
  --connection-id <connection-id>

# Connector trigger — requires login + connection-id
uip flow registry get uipath.connector.trigger.uipath-microsoft-outlook365.email-received \
  --connection-id <connection-id>

# Just the input fields, for building a request body
uip flow registry get uipath.connector.slack.send-message \
  --output-filter "Node.inputDefinition.fields" --output json

另请参阅

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新