CLI Reference¶
auth¶
Authenticate with UiPath Cloud Platform.
The domain for authentication is determined by the UIPATH_URL environment variable if set. Otherwise, it can be specified with --cloud (default), --staging, or --alpha flags.
Interactive mode (default): Opens browser for OAuth authentication. Unattended mode: Use --client-id, --client-secret, --base-url and --scope for client credentials flow.
Network options: - Set HTTP_PROXY/HTTPS_PROXY/NO_PROXY environment variables for proxy configuration - Set REQUESTS_CA_BUNDLE to specify a custom CA bundle for SSL verification - Set UIPATH_DISABLE_SSL_VERIFY to disable SSL verification (not recommended)
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--cloud |
text | Use production environment | Sentinel.UNSET |
--staging |
text | Use staging environment | Sentinel.UNSET |
--alpha |
text | Use alpha environment | Sentinel.UNSET |
-f, --force |
boolean | Force new token | False |
--client-id |
text | Client ID for client credentials authentication (unattended mode) | Sentinel.UNSET |
--client-secret |
text | Client secret for client credentials authentication (unattended mode) | Sentinel.UNSET |
--base-url |
text | Base URL for the UiPath tenant instance (required for client credentials) | Sentinel.UNSET |
--tenant |
text | Tenant name within UiPath Automation Cloud | Sentinel.UNSET |
--scope |
text | Space-separated list of OAuth scopes to request (e.g., 'OR.Execution OR.Queues'). Defaults to 'OR.Execution' | OR.Execution |
--help |
boolean | Show this message and exit. | False |
UiPath Automation Suite
For UiPath Automation Suite deployments, you must set the UIPATH_URL environment variable to your dedicated instance URL before running this command.
Example:
You can set this environment variable either:
- In a .env file in your project directory
- As a system-wide environment variable
🔗 If a browser window did not open, please open the following URL in your browser: [LINK]
👇 Select tenant:
0: Tenant1
1: Tenant2
Select tenant number: 0
Selected tenant: Tenant1
✓ Authentication successful.
init¶
Create uipath.json with input/output schemas and bindings.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--infer-bindings / --no-infer-bindings |
boolean | Infer bindings from the script. | True |
--no-agents-md-override |
boolean | Won't override existing .agent files and AGENTS.md file. | False |
--help |
boolean | Show this message and exit. | False |
Package requirements (bindings) are dependencies that are required by the automation package for successful execution.
For more information about package requirements, see the official documentation
Warning
The uipath init command executes your main.py file to analyze its structure and collect information about inputs and outputs.
✓ Created 'uipath.json' file.
run¶
Execute the project.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--resume |
boolean | Resume execution from a previous state | False |
-f, --file |
path | File path for the .json input | Sentinel.UNSET |
--input-file |
path | Alias for '-f/--file' arguments | Sentinel.UNSET |
--output-file |
path | File path where the output will be written | Sentinel.UNSET |
--trace-file |
path | File path where the trace spans will be written (JSON Lines format) | Sentinel.UNSET |
--debug |
boolean | Enable debugging with debugpy. The process will wait for a debugger to attach. | False |
--debug-port |
integer | Port for the debug server (default: 5678) | 5678 |
--help |
boolean | Show this message and exit. | False |
Tip
For step-by-step debugging with breakpoints and variable inspection (supported from 2.0.66 onward):
# Install debugpy package
[uv] pip install debugpy
# Run agent with debugging enabled
uipath run [ENTRYPOINT] [INPUT] --debug
.vscode/launch.json file.
2. Place breakpoints in your code where needed.
3. Use the shortcut F5, or navigate to Run -> Start Debugging -> Python Debugger: Attach.
Upon starting the debugging process, one should see the following logs in terminal:
Warning
Depending on the shell you are using, it may be necessary to escape the input json:
pack¶
Pack the project.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--nolock |
boolean | Skip running uv lock and exclude uv.lock from the package | False |
--help |
boolean | Show this message and exit. | False |
Packages your project into a .nupkg file that can be deployed to UiPath.
Info
Default Files Included in .nupkg¶
By default, the following file types are included in the .nupkg file:
.py.mermaid.json.yaml.yml
Including Extra Files¶
To include additional files, update the uipath.json file by adding a settings section. Use the following configuration format:
Warning
Your pyproject.toml must include:
- A description field (avoid characters: &, <, >, ", ', ;)
- Author information
Example:
Name : test
Version : 0.1.0
Description: Add your description here
Authors : Your Name
✓ Project successfully packaged.
publish¶
Publish the package.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--tenant, -t |
text | Whether to publish to the tenant package feed | Sentinel.UNSET |
--my-workspace, -w |
text | Whether to publish to the personal workspace | Sentinel.UNSET |
--folder, -f |
text | Folder name to publish to (skips interactive selection) | Sentinel.UNSET |
--help |
boolean | Show this message and exit. | False |
Warning
To properly use the CLI for packaging and publishing, your project should include:
- A
pyproject.tomlfile with project metadata - A
uipath.jsonfile (generated byuipath init) - Any Python files needed for your automation
👇 Select package feed:
0: Orchestrator Tenant Processes Feed
1: Orchestrator Personal Workspace Feed
Select feed number: 0
Selected feed: Orchestrator Tenant Processes Feed
⠸ Publishing most recent package: test.0.1.0.nupkg ...
✓ Package published successfully!
deploy¶
Pack and publish the project.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--tenant, -t |
text | Whether to publish to the tenant package feed | Sentinel.UNSET |
--my-workspace, -w |
text | Whether to publish to the personal workspace | Sentinel.UNSET |
--folder, -f |
text | Folder name to publish to (skips interactive selection) | Sentinel.UNSET |
--help |
boolean | Show this message and exit. | False |
invoke¶
Invoke an agent published in my workspace.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
-f, --file |
path | File path for the .json input | Sentinel.UNSET |
--help |
boolean | Show this message and exit. | False |
⠴ Starting job ...
✨ Job started successfully!
🔗 Monitor your job here: [LINK]