CLI Reference¶
auth¶
Authenticate with UiPath Cloud Platform.
Usage:
Options:
Name | Type | Description | Default |
---|---|---|---|
--cloud |
text | Use production environment | True |
--staging |
text | Use staging environment | False |
--alpha |
text | Use alpha environment | False |
-f , --force |
boolean | Force new token | False |
--help |
boolean | Show this message and exit. | False |
🔗 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 |
--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 | None |
--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 |
---|---|---|---|
--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 | False |
--my-workspace , -w |
text | Whether to publish to the personal workspace | False |
--help |
boolean | Show this message and exit. | False |
Warning
To properly use the CLI for packaging and publishing, your project should include:
- A
pyproject.toml
file with project metadata - A
uipath.json
file (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 | False |
--my-workspace , -w |
text | Whether to publish to the personal workspace | False |
--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 | None |
--help |
boolean | Show this message and exit. | False |
⠴ Starting job ...
✨ Job started successfully!
🔗 Monitor your job here: [LINK]