uipath-cli
latest
false
UiPath CLI 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UIP 对添加
“uip vss add”的语法和选项,可将流程或本地 Data Fabric 实体添加到当前的垂直解决方案。
uip vss add 将流程或本地 Data Fabric 实体添加到当前的垂直解决方案中。对于 process,它会重写 vss.json 以包含新条目。对于 entity,它将实体定义写入 data_fabric_schema.json — 但不修改 vss.json。[target] 位置每种类型的含义有所不同:对于 process,它是要添加的项目目录(默认为当前目录);对于 entity,其为实体名称(必填)。
大纲
uip vss add process [target]
uip vss add entity <target> [options]
uip vss add process [target]
uip vss add entity <target> [options]
<type>—process、entity或connection。[target]— 项目目录 (process) 或实体名称 (entity)。默认为process的当前目录;对于entity为必需。
选项
| 标记 | 描述 | 应用对象 |
|---|---|---|
--field <definition> | 将实体字段定义为 <name>:<type>。可重复。 | entity |
-s, --schema <path> | 指向 data_fabric_schema.json 的路径。默认为目标目录中的 data_fabric_schema.json。 | entity |
-t, --target-path <targetPath> | 垂直解决方案目录。默认为当前目录。 | 所有类型 |
示例
# Add a process from the current directory
uip vss add process
# Add a process from an explicit path
uip vss add process ./processes/onboarding
# Add a local Data Fabric entity with two fields
uip vss add entity Employee --field name:string --field salary:number
# Add a process from the current directory
uip vss add process
# Add a process from an explicit path
uip vss add process ./processes/onboarding
# Add a local Data Fabric entity with two fields
uip vss add entity Employee --field name:string --field salary:number
数据形状(--输出 json)
{
"Code": "ProcessesAdded",
"Data": {
"Status": "1 processes added successfully",
"Path": "/Users/alice/my-app"
}
}
{
"Code": "ProcessesAdded",
"Data": {
"Status": "1 processes added successfully",
"Path": "/Users/alice/my-app"
}
}
对于 entity,形状有所不同:
{
"Code": "EntityAdded",
"Data": {
"Entity": "Employee",
"Fields": ["name", "salary"],
"Schema": "/Users/alice/my-app/data_fabric_schema.json"
}
}
{
"Code": "EntityAdded",
"Data": {
"Entity": "Employee",
"Fields": ["name", "salary"],
"Schema": "/Users/alice/my-app/data_fabric_schema.json"
}
}
备注:
connection 已注册为有效的 <type> 值,但始终失败并显示 Failure: "Connections are not supported yet" — 未实现。使用 process 或 entity。
相关内容
- uip vss init — 生成
vss.json重写的add。 - uip vsssync — 使用 UiPath Cloud 协调注册的流程。
- uip vss generate — 添加流程后刷新 TypeScript 类型。