uipath-cli
latest
false
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath CLI 用户指南
uip solution new在磁盘上构建一个空的 UiPath 解决方案。它创建一个以解决方案命名的目录,并写入具有空Projects数组的.uipx清单,准备通过uip solution project add或uip solution project import接收项目。
大纲
uip solution new <solutionName>
uip solution new <solutionName>
参数
<solutionName>(必填) — 新解决方案的名称或路径。将在此位置创建一个目录;其中的.uipx文件将使用相同的基本名称。如果参数以.uipx结尾,则按原样使用扩展程序;否则,.uipx将附加到基本名称。
选项
除全局选项外无此选项。
示例
最小
uip solution new my-solution
uip solution new my-solution
创建./my-solution/my-solution.uipx 。
指定子目录
uip solution new ./workspace/invoices-solution
uip solution new ./workspace/invoices-solution
创建./workspace/invoices-solution/invoices-solution.uipx 。
Scripting — 捕获生成的路径
uip solution new my-solution --output-filter "Data.Path"
uip solution new my-solution --output-filter "Data.Path"
与--output json结合使用,会发出单个 JSON 字符串,其中包含新.uipx绝对路径,适用于管道到后续命令。
数据形状(--输出 json)
{
"Code": "SolutionNew",
"Data": {
"Status": "Created successfully",
"Path": "/workspace/my-solution/my-solution.uipx"
}
}
{
"Code": "SolutionNew",
"Data": {
"Status": "Created successfully",
"Path": "/workspace/my-solution/my-solution.uipx"
}
}
生成的.uipx是具有以下形式的 JSON 文件:
{
"DocVersion": "1.0.0",
"StudioMinVersion": "2025.10.0",
"SolutionId": "<auto-generated UUID>",
"Projects": []
}
{
"DocVersion": "1.0.0",
"StudioMinVersion": "2025.10.0",
"SolutionId": "<auto-generated UUID>",
"Projects": []
}
SolutionId是新生成的 UUID。它将成为uip solution upload所使用的身份,用于后续上传时覆盖 Studio Web 中的解决方案。
相关命令
uip solution project add— 注册新解决方案中的现有项目子文件夹。uip solution project import— 将外部项目文件夹复制到新的解决方案。uip solution pack— 添加项目后,生成用于部署的.zip。
另请参阅
- 您的第一个管道— 遍历
new→project add→pack→publish→deploy run。 uip solution概述— 动词分类和端到端流。