CLI Reference¶
The uip CLI manages the full deployment lifecycle of a coded app.
Installation¶
uip tools install codedapp
Minimum versions
Coded Apps requires CLI version >= 0.9.0 and codedapp tool version >= 0.9.0. This reference reflects CLI 1.202.1 and codedapp tool 1.202.2; some options are not available in older versions. The validate and delete commands require codedapp tool version >= 1.202.2.
Check your installed CLI version:
Check your installed codedapp tool version:
To update the codedapp tool to the latest version:
login¶
Authenticate with the UiPath platform.
| Name | Type | Description | Default |
|---|---|---|---|
--authority |
string | Custom authority URL | https://cloud.uipath.com |
-t, --tenant |
string | Tenant name (non-interactive mode) | — |
--organization |
string | Organization logical name to pre-select during browser login | — |
--interactive |
boolean | Prompt to select a tenant from a list | — |
--client-id |
string | Client ID of an External App. Use env.<NAME> to read it from an environment variable |
— |
--client-secret |
string | Client secret of the External App. Use env.<NAME> to read it from an environment variable |
— |
-s, --scope |
string | Scopes to request for an External App, comma- or space-separated | — |
--no-browser |
boolean | Print the sign-in URL instead of opening a browser | — |
Note
For automated / non-interactive deploys (CI/CD, AI app builders), authenticate with a confidential external app using --client-id and --client-secret (requires CLI 1.1.0+). See CI/CD: GitHub Actions and App Builder Integrations. Interactive browser login (uip login --interactive) is intended for local development.
Examples
init¶
Create a starter coded app in a new or empty directory.
| Name | Type | Description | Default |
|---|---|---|---|
--template |
string | Starter template: form, dashboard, or inline-automation |
form |
--type |
string | App subtype. Omit for a coded app, or pass Action to create a coded action app |
— |
--force |
boolean | Overwrite starter files in a non-empty directory | — |
--skip-solution-registration |
boolean | Do not register the project in the surrounding solution | — |
Examples
Build app¶
Before proceeding, make sure you build your coded app using your framework's build command from the root of the project:
This will create thedist (or build) folder.
pack¶
Package a built app into a .nupkg.
| Name | Type | Description | Default |
|---|---|---|---|
-n, --name |
string | Package name | — |
--display-name |
string | Display name of the app | Value of --name |
-v, --version |
string | Package version | 1.0.0 |
--output-dir |
string | Output directory | ./.uipath |
--author |
string | Package author | UiPath Developer |
--description |
string | Package description | Package name |
--main-file |
string | Main entry file | index.html |
--content-type |
string | Content type: webapp, library, or process |
webapp |
--release-notes |
string | Release notes for the package | — |
--repository-url |
string | Source repository URL (recorded in the package for traceability) | — |
--repository-commit |
string | Source repository commit hash (recorded in the package for traceability) | — |
--repository-branch |
string | Source repository branch | — |
--repository-type |
string | Source repository type | git when --repository-url is set |
--project-url |
string | Automation Hub idea URL | — |
--dry-run |
boolean | Show what would be packaged without creating it | — |
Angular dist path
Angular 17+ outputs to dist/<project-name>/browser/. Angular 16 and earlier outputs to dist/<project-name>/.
Output: .uipath/<name>.<version>.nupkg
Examples
publish¶
Upload the .nupkg to Orchestrator and register it as a coded app version.
| Name | Type | Description | Default |
|---|---|---|---|
-n, --name |
string | Package name (non-interactive) | — |
-v, --version |
string | Package version (requires --name) |
— |
-t, --type |
string | App type: Web or Action |
Action if action-schema.json exists in the current directory, otherwise Web |
--personal-workspace |
boolean | Publish to your Personal Workspace instead of the tenant | — |
--uipath-dir |
string | UiPath directory containing packages | ./.uipath |
--base-url |
string | UiPath base URL | — |
--org-id |
string | Organization ID | — |
--org-name |
string | Organization name, used when --org-id is not provided |
— |
--tenant-id |
string | Tenant ID | — |
--tenant-name |
string | Tenant name | — |
--access-token |
string | Access token | — |
Examples
validate¶
Check whether a path name is free before deploying. A coded app is served at https://<org>.uipath.host/<path-name>, and path names are unique across the organization. When the name is taken, the command returns the app that holds it.
| Name | Type | Description | Default |
|---|---|---|---|
--path-name |
string | Path name to check (required) | — |
--base-url |
string | UiPath base URL | — |
--org-id |
string | Organization ID | — |
--org-name |
string | Organization name | — |
--access-token |
string | Access token | — |
Note
A taken name is a result, not an error, so both outcomes exit with code 0. Read Available in the output; a non-zero exit means the lookup itself failed (for example, invalid credentials or missing permissions). The path name is sanitized to lowercase letters, digits, and hyphens before the check, the same way deploy sanitizes it.
Examples
deploy¶
Deploy a published app version to a folder.
| Name | Type | Description | Default |
|---|---|---|---|
-n, --name |
string | App name | — |
--display-name |
string | Display name of the deployed app | Value of --name |
--path-name |
string | App path name in the URL (https://<org>.uipath.host/<path-name>) |
— |
--client-id |
string | Client ID of a non-confidential External App | — |
-v, --version |
string | Target a specific published version | — |
--tags |
string | Comma-separated labels for the deployed app (e.g. governance,insights) |
— |
--base-url |
string | UiPath base URL | — |
--org-id |
string | Organization ID | — |
--org-name |
string | Organization name | — |
--tenant-id |
string | Tenant ID | — |
--folder-key |
string | Folder key | — |
--access-token |
string | Access token | — |
Examples
uip codedapp deploy deploys an app on its own. To deploy an app that lives in a solution, from Studio Web or with uip solution, including as a public app, see Deploy with a solution.
delete¶
Delete a deployed app from a folder. The published package and deployments in other folders are not affected.
| Name | Type | Description | Default |
|---|---|---|---|
--display-name |
string | Display name of the deployed app. Case-sensitive (required) | — |
--folder-key |
string | Key of the folder that contains the deployed app. Required unless UIPATH_FOLDER_KEY is set |
— |
-y, --yes |
boolean | Confirm the deletion (required) | — |
--base-url |
string | UiPath base URL | — |
--org-id |
string | Organization ID | — |
--org-name |
string | Organization name | — |
--tenant-id |
string | Tenant ID | — |
--access-token |
string | Access token | — |
Warning
Deletion cannot be undone.
Examples
push¶
Push local source code to a Studio Web project.
| Name | Type | Description | Default |
|---|---|---|---|
--project-id |
string | Studio Web project ID. If omitted and UIPATH_PROJECT_ID is not set, you are prompted to create or select a solution (use --solution-name/--project-name to skip the prompts) |
— |
--solution-name |
string | Name of the Studio Web solution to create when no project ID is set. Required with --project-name when the CLI cannot prompt |
Prompted |
--project-name |
string | Name of the Coded App project to create in that solution | Prompted |
--build-dir |
string | Build output directory | dist |
-v, --version |
string | Code version to set (e.g. 2.0.0) |
— |
--ignore-resources |
boolean | Skip importing referenced resources | — |
--verbose |
boolean | Show detailed progress logs | — |
--base-url |
string | UiPath base URL | — |
--org-id |
string | Organization ID | — |
--tenant-id |
string | Tenant ID | — |
--access-token |
string | Access token | — |
Examples
The first push also adds the resources listed in bindings_v2.json to the solution; --ignore-resources skips that. To deploy the pushed solution, including as a public app, see Deploy with a solution.
The first push saves the new project ID to .env as UIPATH_PROJECT_ID, and later pushes use it. --solution-name and --project-name only apply when no project ID is set. If one is set by --project-id, UIPATH_PROJECT_ID, or .env, push fails instead of pushing into that project, so running the same command with these flags a second time fails.
pull¶
Pull project files from a Studio Web project.
| Name | Type | Description | Default |
|---|---|---|---|
--project-id |
string | Studio Web project ID. Required unless UIPATH_PROJECT_ID is set |
— |
--target-dir |
string | Local directory to write the files to | Current directory |
--overwrite |
boolean | Allow overwriting existing local files | — |
--verbose |
boolean | Show detailed progress logs | — |
--base-url |
string | UiPath base URL | — |
--org-id |
string | Organization ID | — |
--tenant-id |
string | Tenant ID | — |
--access-token |
string | Access token | — |
Examples
Deploy with a solution¶
Deploy a coded app that lives in a solution with the uip solution commands. For the Studio Web steps and the deployment settings, see Deploy with Solutions.
1. Create a local solution with the app in it (skip this if you used uip codedapp push):
cd <Solution>
uip codedapp init <App># develop in <App>/source and build into <App>/source/distuip solution resources refresh # adds the resources in bindings_v2.json, if any
To deploy from Studio Web instead of the CLI, upload the solution to the Cloud Workspace with uip solution upload .. The first upload adds it; later uploads overwrite it.
2. Pack, publish and deploy:
uip solution publish ./output/<Solution>_1.0.0.zip --wait
uip solution deploy config get "<Solution>" --package-version 1.0.0 -d config.json
uip solution deploy config set config.json <App> routingName <path-name>
uip solution deploy config set config.json <App> externalClientId "<external app id>"
uip solution deploy run -n "<Solution>" --package-name "<Solution>" --package-version 1.0.0 \
--folder-name "<Solution>" --parent-folder-path "Shared" --config-file config.json
| Config key | Internal app | Public app (preview) |
|---|---|---|
routingName |
The path the app is served at | The path the app is served at |
externalClientId |
The non-confidential external application users log in with | A confidential external application |
runtimeAuthMode |
user (default) |
application |
clientSecret |
Not used | The external application's secret |
For a public app, before deploy run, turn on public mode and set the external application's client secret:
# Public mode
uip solution deploy config set config.json <App> runtimeAuthMode application
# Client secret of the confidential external application
uip solution deploy config set config.json <App> clientSecret "$APP_CLIENT_SECRET" --output-filter Property
--output-filter Property keeps the secret out of the command output. Keep config.json out of source control when it holds a secret.
deploy run installs the solution the first time. To upgrade, pack and publish a new version and run deploy run again: it upgrades the deployment in place.
Upgrading / Deploying new version of a coded app¶
When updating a deployed app, just repeat the build-pack-publish-deploy cycle with a bumped version:
Global Options¶
These options work with every command.
| Name | Type | Description | Default |
|---|---|---|---|
--output |
string | Output format: table, json, yaml, or plain |
json |
--output-filter |
string | JMESPath expression applied to the Data field of the output |
— |
--log-level |
string | Log level: debug, info, warn, or error |
info |
--log-file |
string | Write logs to a file instead of stderr | — |
--profile |
string | Use a named login profile | — |
Environment Variables¶
Connection settings can also be set as environment variables (e.g. in CI/CD). Flags override them, and an active uip login session overrides the token, URL, organization, and tenant variables.
| Variable | Description |
|---|---|
UIPATH_BASE_URL |
Platform base URL (UIPATH_URL is also accepted) |
UIPATH_ORG_ID |
Organization ID (UIPATH_ORGANIZATION_ID is also accepted) |
UIPATH_ORG_NAME |
Organization name |
UIPATH_TENANT_NAME |
Tenant name |
UIPATH_TENANT_ID |
Tenant ID |
UIPATH_FOLDER_KEY |
Folder key |
UIPATH_ACCESS_TOKEN |
Bearer token (skips interactive login) |
UIPATH_PROJECT_ID |
Studio Web project ID for push/pull. Also read from a .env file in the current directory |
Config Files¶
| File | Written by | Purpose |
|---|---|---|
.uipath/.auth |
uip login |
Access tokens and org/tenant selection. Uses the nearest .uipath/.auth in the current or a parent directory, otherwise ~/.uipath/.auth |
.uipath/app.config.json |
uip codedapp publish / uip codedapp deploy |
App systemName, deployVersion, deploymentId for subsequent runs |
uipath.json |
developer / uip codedapp pack |
SDK config — read by pack and the @uipath/coded-apps-dev dev plugin |