- 概述
- 开始使用
- 概念
- 使用 UiPath CLI
- 操作指南
- CI/CD 方法
- 命令参考
- 迁移
- 参考与支持
uip 编码应用程序初始化
“uip codedapp init”的语法和选项,用于创建本地编码应用程序入门版。
uip codedapp init 在 <path> 中构建本地编码应用程序入门版。这是未经身份验证的本地操作,不适用任何“登录”或“身份验证覆盖”标志。默认情况下,在现有解决方案中运行时,新项目会在周围解决方案的 .uipx 中自动注册;传递 --skip-solution-registration 以选择退出。
When run outside a solution, init creates a solution for the app: ./expense-app becomes ./expense-appSolution/expense-app/, registered in expense-appSolution.uipx. The output reports the new solution under Data.AutoCreatedSolution, and Data.path is the folder the project ended up in. With --skip-solution-registration, the app stays a standalone project at the path you passed, for uip codedapp push and uip codedapp pack.
A non-empty target, such as an existing app with --force, is never moved. It stays where it is.
A new starter includes a commented .env.example file for the UIPATH_APPS_* variables the app reads. Refer to Environment variables.
大纲
uip codedapp init <path> [options]
uip codedapp init <path> [options]
<path>— 入门者编码应用程序的目标目录。必需。
选项
| 标记 | 描述 |
|---|---|
--force | 覆盖非空目录中的入门指南文件。 |
--template <template> | 入门模板:form、dashboard 或 inline-automation。默认值:form。 |
--type <type> | 编码应用程序子类型。若为常规编码应用程序则可省略,若要构建编码操作应用程序,请传递 Action。 |
--skip-solution-registration | Do not register this project in the surrounding solution, and do not create a solution when there is none. |
示例
# Create a form starter coded app; outside a solution, it lands in ./expense-appSolution/expense-app
uip codedapp init ./expense-app --template form
# Overwrite starter files in a non-empty directory
uip codedapp init ./expense-app --force
# Create a standalone coded app, with no solution around it
uip codedapp init ./expense-app --skip-solution-registration
# Scaffold a coded Action app
uip codedapp init ./approve-invoice --type Action
# Create a form starter coded app; outside a solution, it lands in ./expense-appSolution/expense-app
uip codedapp init ./expense-app --template form
# Overwrite starter files in a non-empty directory
uip codedapp init ./expense-app --force
# Create a standalone coded app, with no solution around it
uip codedapp init ./expense-app --skip-solution-registration
# Scaffold a coded Action app
uip codedapp init ./approve-invoice --type Action
数据形状(--输出 json)
Run outside a solution:
{
"Code": "InitCompleted",
"Data": {
"path": "/work/expense-appSolution/expense-app",
"template": "form",
"SolutionRegistration": {
"Status": "Registered",
"Message": "Project registered in parent solution."
},
"AutoCreatedSolution": {
"Name": "expense-appSolution",
"Path": "/work/expense-appSolution",
"SolutionFile": "/work/expense-appSolution/expense-appSolution.uipx"
}
}
}
{
"Code": "InitCompleted",
"Data": {
"path": "/work/expense-appSolution/expense-app",
"template": "form",
"SolutionRegistration": {
"Status": "Registered",
"Message": "Project registered in parent solution."
},
"AutoCreatedSolution": {
"Name": "expense-appSolution",
"Path": "/work/expense-appSolution",
"SolutionFile": "/work/expense-appSolution/expense-appSolution.uipx"
}
}
}
AutoCreatedSolution is present only when init created the solution. SolutionRegistration.Status is one of:
Status | 意义 |
|---|---|
Registered | The project is registered in the surrounding solution, or in the one init created. |
AlreadyRegistered | The solution already lists the project. |
OptedOut | --skip-solution-registration was passed. |
NotInSolution | No solution surrounds the project and none was created, which is the case for a non-empty target outside a solution. |
Failed 或者 Skipped | The project is written, and the registration did not complete. Instructions says why. |
相关内容
- uip codedapp pack — 在构建的应用程序准备就绪后对其进行打包。
- uip codedapp push — 将已初始化项目的源代码推送到 Studio Web。