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

uip solution init

Syntax and options for `uip solution init`, which scaffolds an empty UiPath solution directory with a `.uipx` manifest.

uip solution init scaffolds an empty UiPath solution on disk. It creates a directory named after the solution, writes a .uipx manifest with an empty Projects array, and writes AGENTS.md and CLAUDE.md briefing files that orient AI coding agents to the solution — ready to receive projects via uip solution projects add or uip solution projects import.

大纲

uip solution init <solutionName>
uip solution init <solutionName>

该命令遵循全局选项,并返回标准退出代码

参数

  • <solutionName> (required) — Name or path for the new solution. A directory is created at this location; the .uipx file inside it takes the same base name.

选项

全局选项外无此选项。

示例

最小

uip solution init my-solution
uip solution init my-solution

Creates ./my-solution/my-solution.uipx, plus ./my-solution/AGENTS.md and ./my-solution/CLAUDE.md.

Scripting — 捕获生成的路径

uip solution init my-solution --output-filter "Data.Path"
uip solution init my-solution --output-filter "Data.Path"

--output json结合使用,会发出单个 JSON 字符串,其中包含新.uipx绝对路径,适用于管道到后续命令。

数据形状(--输出 json)

{
  "Code": "SolutionInit",
  "Data": {
    "Status": "Created successfully",
    "Path": "/workspace/my-solution/my-solution.uipx",
    "NextSteps": "Read /workspace/my-solution/AGENTS.md or /workspace/my-solution/CLAUDE.md to understand the solution lifecycle, project types that can be used inside a solution, and related uip command references."
  }
}
{
  "Code": "SolutionInit",
  "Data": {
    "Status": "Created successfully",
    "Path": "/workspace/my-solution/my-solution.uipx",
    "NextSteps": "Read /workspace/my-solution/AGENTS.md or /workspace/my-solution/CLAUDE.md to understand the solution lifecycle, project types that can be used inside a solution, and related uip command references."
  }
}

NextSteps points at whichever briefing file the invoking agent (or a human) should read next — it's the same content in both files, written for different coding-agent conventions.

另请参阅

  • 大纲
  • 参数
  • 选项
  • 示例
  • 最小
  • Scripting — 捕获生成的路径
  • 数据形状(--输出 json)
  • 相关命令
  • 另请参阅

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新