Process publish and debugging studio project with Uipath CLI

Hi All,

Can anyone please help me with detailed command for publishing UiPath studio process with UiPath CLI and for debugging as well.

@Mir.Jasimuddin - Could you please assist for this.

Regards,
Ankit

Hey @Codeverse,

To publish a UiPath process using CLI:

ucli project publish --project-path "C:\YourProjectPath" --output "C:\OutputPath" --version "1.0.0" --api-key "<Your_API_Key>" --url "<Orchestrator_URL>"

To run/debug locally via CLI:

ucli robot run --entry-points Main.xaml --project-path "C:\YourProjectPath"

Make sure you’re authenticated:

ucli auth login --url "<Orchestrator_URL>" --api-key "<Your_API_Key>"

Let me know if you need the commands for CI/CD as well.

@Codeverse

Please check this

Cheers

Hi @Mir.Jasimuddin.

Just I was giving it try. But can you please let me know about -api-key is it orchestrator api key. If something else how can get this.

Thanks

Hi @Codeverse,

Yes, the --api-key refers to your Orchestrator Personal Access Token (PAT) — not a general API key.

To generate it:

  1. Go to Orchestrator → User Menu (top-right) → Personal Access Tokens
  2. Click “Add Token”
  3. Copy the generated token and use it as --api-key in CLI

Example:

ucli auth login --url "https://cloud.uipath.com/<account>/<tenant>" --api-key "<your_token>"

Let me know if you facing any problems

Hi @Mir.Jasimuddin I got this sorted PAT.

But thinking will this work on Github cli version as I tried this command giving error

Regards,
Ankit

Hi @Mir.Jasimuddin

I used the alternate command for packaging and publishing the process.

Here are those commands and my finding

I used the terminal where the process is code there. I hit the command uipath studio package pack . It’s start packaging and build the nuget package with 1.0.0 version

Next I used this command UiPath studio package publish it publish the package as well in orchestrator. But the it’s also creating process in shared folder. I want to create process in other folder how can do that ?

When I tried to run the process with assistant it was giving this error
![The image displays detailed runtime error information including a missing file exception and system debugging data.

I re-published the process with new version 1.0.1 directly from UiPath studio. I tried to run it ran well.

Can you please help me out with this if approach is right if so then what will be reason while publishing process from CLI giving error.

Hey @Codeverse,

Yes, your approach is fine. The reason the CLI-published process ended up in the shared folder is likely due to missing or incorrect folder targeting in your CLI command.

To fix it:

  • Use the --folder parameter in your CLI publish command to point to the correct Orchestrator folder.
  • Double-check that the folder name matches exactly with what’s in Orchestrator.
  • If still using GitHub CLI version, prefer ucli (official) for smoother orchestration.

Studio publish worked because it auto-selected the right folder. Just replicate that in CLI with --folder.

@Mir.Jasimuddin Thanks for response somehow I got the working. But now facing issue updating assets

I’m able to create new assets.

Could you please help me this out. I’m facing same issue with storage bucket as well.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.