uipath-cli
latest
false
UiPath CLI user guide
- 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 model-hub
- add-test-data-entity
- add-test-data-queue
- add-test-data-variation
- analyze
- build
- create-project
- diff
- find-activities
- get-analyzer-rules
- get-default-activity-xaml
- get-errors
- get-manual-test-cases
- get-manual-test-steps
- get-library-object-repository
- get-object-repository
- get-versions
- get-workflow-example
- indicate-application
- indicate-element
- inspect-package
- install-data-fabric-entities
- install-or-update-packages
- list-data-fabric-entities
- list-instances
- list-workflow-examples
- pack
- publish
- remote
- restore
- run, debug & execution
- run-file
- search-templates
- start-studio
- stop-execution
- tm
- uia
- uip tasks
- uip traces
- uip traces feedback
- Migration
- Reference & support
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.
Synopsis
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.
Options
| Flag | Description |
|---|---|
--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. |
Examples
# 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
Data shape (--output 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.
Related
- uip api-workflow build — compile the project this command scaffolds.
- uip api-workflow validate — validate the workflow JSON before packaging.