- Overview
- Get started
- Concepts
- Using UiPath CLI
- How-to guides
- CI/CD recipes
- Command reference
- Overview
- Exit codes
- Global options
- uip codedagent
- uip coder
- uip context-grounding
- uip docsai
- uip function
- uip guardrails
- uip llm-configuration
- uip llm-gateway
- uip maestro authoring
- uip maestro registry
- uip model-hub
- uip ont
- activities find
- activities get-default-xaml
- analyze
- analyzer-rules list
- build
- cleanup
- data-fabric-entities install
- data-fabric-entities list
- files diff
- get-library-object-repository
- get-object-repository
- init
- instances list
- pack
- packages inspect
- packages install
- packages versions
- publish
- remote
- restore
- run, debug & execution
- settings
- studio start
- templates search
- test-data add-entity
- test-data add-queue
- test-data add-variation
- tm
- uia
- validate
- workflow-examples get
- workflow-examples list
- uip resources
- uip tasks
- uip traces
- uip traces feedback
- Migration
- Reference & support
uip codedapp init
Syntax and options for `uip codedapp init`, which creates a local coded app starter.
uip codedapp init scaffolds a local coded-app starter into <path>. It's a local, unauthenticated operation — no login or auth-override flags apply. By default, when run inside an existing solution, the new project is auto-registered in the surrounding solution's .uipx; pass --skip-solution-registration to opt out.
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.
Synopsis
uip codedapp init <path> [options]
uip codedapp init <path> [options]
<path>— target directory for the starter coded app. Required.
Options
| Flag | Description |
|---|---|
--force | Overwrite starter files in a non-empty directory. |
--template <template> | Starter template: form, dashboard, or inline-automation. Default: form. |
--type <type> | Coded app subtype. Omit for a regular coded app, or pass Action to scaffold a coded Action app. |
--skip-solution-registration | Do not register this project in the surrounding solution, and do not create a solution when there is none. |
Examples
# 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
Data shape (--output 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 | Meaning |
|---|---|
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 or Skipped | The project is written, and the registration did not complete. Instructions says why. |
Related
- uip codedapp pack — package the built app once it's ready.
- uip codedapp push — push the initialized project's source to Studio Web.