uipath-cli
latest
false
UiPath CLI 用户指南
- 概述
- 开始使用
- 概念
- 使用 UiPath CLI
- 操作指南
- CI/CD 方法
- 命令参考
- 迁移
- 参考与支持
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
Syntax and options for `uip api-workflow init`, which scaffolds a new API Workflow project with boilerplate files.
uip api-workflow init scaffolds a new API Workflow project: project.uiproj, entry-points.json, bindings_v2.json, and a minimal Workflow.json with a single pass-through step that maps declared input defaults, then the caller's actual input, into $input. When run inside a solution directory, the new project is auto-registered in the surrounding solution's .uipx file.
大纲
uip api-workflow init <name> [options]
uip api-workflow init <name> [options]
<name>— API Workflow project name. Letters, numbers, spaces, underscores (_), and hyphens (-) only; also used as the target directory name.
选项
| 标记 | 描述 |
|---|---|
--force | Initialize even if the target directory is not empty. Writes files without clearing existing contents — it does not delete anything already there. |
--skip-solution-registration | Do not auto-register this project in the surrounding solution. |
示例
# Create a new API Workflow project
uip api-workflow init my-api-workflow
# Create a new API Workflow project
uip api-workflow init my-api-workflow
# Initialize into a non-empty directory
uip api-workflow init my-api-workflow --force
# Initialize into a non-empty directory
uip api-workflow init my-api-workflow --force
数据形状(--输出 json)
{
"Code": "ApiWorkflowInit",
"Data": {
"Status": "Created successfully",
"Path": "/workspace/my-api-workflow",
"SolutionRegistration": {
"Registered": true
}
}
}
{
"Code": "ApiWorkflowInit",
"Data": {
"Status": "Created successfully",
"Path": "/workspace/my-api-workflow",
"SolutionRegistration": {
"Registered": true
}
}
}
SolutionRegistration reflects whether the project was linked into a parent solution's .uipx. When the registration flow needs the user to take a manual step (for example, no parent solution was found), the response adds a NextSteps field with instructions.
相关内容
- uip api-workflow build — compile the project this command scaffolds.
- uip api-workflow validate — validate the workflow JSON before packaging.