uipath-cli
latest
false
UiPath CLI 用户指南
- 概述
- 开始使用
- 概念
- 使用 UiPath CLI
- 操作指南
- CI/CD 方法
- 命令参考
- 迁移
- 参考与支持
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
Syntax and options for `uip solution restore`, which resolves NuGet dependencies for every project in a UiPath solution.
uip solution restore resolves NuGet dependencies for every project in a solution using the authenticated session. It resolves dependencies in place — it does not produce a package. Run it before uip solution pack.
大纲
uip solution restore <solutionPath> [--nuget-sources-config-path <path>] [--exclude-configured-sources] [--feed-folder <name>] [--login-validity <minutes>]
uip solution restore <solutionPath> [--nuget-sources-config-path <path>] [--exclude-configured-sources] [--feed-folder <name>] [--login-validity <minutes>]
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<solutionPath> | 是 | Path to a solution directory (containing .uipx) or a .uis file. |
选项
| 长 | 值 | 默认 | 描述 |
|---|---|---|---|
--nuget-sources-config-path | 路径 | — | NuGet 源配置文件的路径。 |
--exclude-configured-sources | 标记 | 关闭 | Resolve project dependencies only from tenant feeds and --nuget-sources-config-path. Drops the built-in UiPath and nuget.org feeds — a dependency not on those feeds fails to restore. |
--feed-folder | name or path | — | Resolve project dependencies from this Orchestrator folder's library feed instead of every tenant feed. |
--login-validity | 分钟 | 10 | Minimum minutes before token expiration to trigger a refresh. |
示例
uip solution restore ./my-solution
uip solution restore ./my-solution
数据形状(--输出 json)
{
"Code": "SolutionRestore",
"Data": {
"Solution": "my-solution",
"Status": "Restored"
}
}
{
"Code": "SolutionRestore",
"Data": {
"Solution": "my-solution",
"Status": "Restored"
}
}
退出代码
请参阅共享合同的退出代码。
相关命令
uip solution cleanup— remove unused items (shares the same NuGet-source flags).uip solution pack— package the solution after restoring.