- 概述
- 开始使用
- 概念
- 使用 UiPath CLI
- 操作指南
- CI/CD 方法
- 命令参考
- 迁移
- 参考与支持
Syntax and options for `uip or assets`, which manages Orchestrator assets (Text, Bool, Integer, Credential, Secret) in a folder.
管理 Orchestrator资产— 自动化在运行时使用的命名配置值(Text、Bool、Integer、Credential、Secret)。大多数操作都是文件夹作用域内的。
有关跨资源约定(身份验证、文件夹作用域、密钥类型、输出信封),请参阅uip or概述。
大纲
uip or assets list [--folder-path <path> | --folder-key <key> | --all-folders] [-n <name>] [--type <type>] [-l, --limit <n>] [--offset <n>] [--sort-by <field>] [--all-fields]
uip or assets get <asset-key> [--all-fields]
uip or assets create <name> <value> --folder-path <path> | --folder-key <key> [--type <type>] [-s <scope>] [-d <desc>] [--has-default] [--tags <list>] [--credential-store-key <guid>]
uip or assets update <asset-key> [<value>] [flags as for create]
uip or assets delete <asset-key> --yes
uip or assets get-folders <asset-key>
uip or assets share <asset-key> --folder-path <path> | --folder-key <key>
uip or assets unshare <asset-key> --folder-path <path> | --folder-key <key>
uip or assets get-asset-value <asset-key> --folder-path <path> | --folder-key <key> [--executor-key <guid>]
uip or assets list [--folder-path <path> | --folder-key <key> | --all-folders] [-n <name>] [--type <type>] [-l, --limit <n>] [--offset <n>] [--sort-by <field>] [--all-fields]
uip or assets get <asset-key> [--all-fields]
uip or assets create <name> <value> --folder-path <path> | --folder-key <key> [--type <type>] [-s <scope>] [-d <desc>] [--has-default] [--tags <list>] [--credential-store-key <guid>]
uip or assets update <asset-key> [<value>] [flags as for create]
uip or assets delete <asset-key> --yes
uip or assets get-folders <asset-key>
uip or assets share <asset-key> --folder-path <path> | --folder-key <key>
uip or assets unshare <asset-key> --folder-path <path> | --folder-key <key>
uip or assets get-asset-value <asset-key> --folder-path <path> | --folder-key <key> [--executor-key <guid>]
列表
List assets. Requires --folder-path, --folder-key, or --all-folders (to list across every accessible folder). Filters: -n, --name <name>, --type <Text|Bool|Integer|Credential|Secret> (case-insensitive). Credential and secret values are omitted from results. --sort-by <field> sorts results (for example, Name asc, Id desc); --all-fields returns the full API response instead of the curated summary.
uip or assets list --folder-path Shared --type Credential
uip or assets list --folder-path Shared --type Credential
get
Get asset details by key. Cross-folder — no folder needed. Credential/secret values are not returned. --all-fields returns the full API response.
uip or assets get a1b2c3d4-0000-0000-0000-000000000001
uip or assets get a1b2c3d4-0000-0000-0000-000000000001
创建
在文件夹中创建资产。需要<name>和<value> 。标志: --type <Text|Bool|Integer|Credential|Secret> (默认Text )、 -s, --scope <Global|PerRobot> (默认Global )、 -d, --description 、 --has-default 、 --tags <comma-list> 、 --credential-store-key <guid> ( Credential / Secret必需)。Bool 值必须为true / false ; Integer 必须是整数;凭据使用username:password格式(由只读外部凭据存储支持时除外,则<value>为外部查找名称)。
uip or assets create ApiEndpoint "https://api.example.com" \
--folder-path Shared --type Text
uip or assets create ApiEndpoint "https://api.example.com" \
--folder-path Shared --type Text
更新
按密钥更新资产。跨文件夹。<value>是可选项;仅更改提供的字段。与create相同的类型/作用域/标签标志。
uip or assets update a1b2c3d4-0000-0000-0000-000000000001 \
"https://api.new.example.com" --description "Production API"
uip or assets update a1b2c3d4-0000-0000-0000-000000000001 \
"https://api.new.example.com" --description "Production API"
删除
Delete an asset by key. Cross-folder. Requires -y, --yes — the CLI never prompts for destructive operations.
uip or assets delete a1b2c3d4-0000-0000-0000-000000000010 --yes
uip or assets delete a1b2c3d4-0000-0000-0000-000000000010 --yes
获取文件夹
列出与资产共享的每个文件夹,以及总数。
uip or assets get-folders a1b2c3d4-0000-0000-0000-000000000001
uip or assets get-folders a1b2c3d4-0000-0000-0000-000000000001
共享/取消共享
在文件夹中添加或删除资产。需要--folder-path或--folder-key 。
uip or assets share a1b2c3d4-0000-0000-0000-000000000001 \
--folder-path "Production"
uip or assets unshare a1b2c3d4-0000-0000-0000-000000000001 \
--folder-path "Production"
uip or assets share a1b2c3d4-0000-0000-0000-000000000001 \
--folder-path "Production"
uip or assets unshare a1b2c3d4-0000-0000-0000-000000000001 \
--folder-path "Production"
获取资产值
为当前用户(默认)或给定执行程序返回资产值 ( --executor-key <guid> )。需要--folder-path或--folder-key 。由外部存储提供的凭据类型资产只能通过--executor-key读取;该命令在收到 403 时显示修复。
uip or assets get-asset-value a1b2c3d4-0000-0000-0000-000000000001 \
--folder-path Shared
uip or assets get-asset-value a1b2c3d4-0000-0000-0000-000000000001 \
--folder-path Shared
退出代码
See Exit codes for the shared contract. delete exits 1 if -y, --yes is omitted.
相关命令
uip or buckets、uip or queues— 文件夹范围内的随播资源。uip or credential-stores list— 找到凭据/密码资产所需的--credential-store-key。
另请参阅
uip or概述— 每个uip or动词的共享约定。- 操作方法:管理 Orchestrator 资产和队列— 批量模式和 CSV 驱动的部署。