- Vue d'ensemble (Overview)
- Démarrer
- Concepts
- Utilisation de la UiPath CLI
- Guides pratiques
- Revenus CI/CD
- Référence de commande
- Vue d'ensemble (Overview)
- Codes de sortie
- Options globales
- agent codé uip
- encodeur UIP
- uip ancrage dans le contexte
- UiPath Docsai
- Fonction UiP
- garde-fous UiP
- configuration llm uip
- uip llm-passerelle
- Création uip maestro
- Registre Maestro uip
- uip model-hub
- uip ont
- Tâches (Jobs)
- Dossiers
- Processus
- ROI du processus
- Paquets
- Machines
- Utilisateurs
- Rôles
- Licences
- Flux
- Pièces jointes (Attachments)
- Sessions
- Calendriers
- magasins d'informations d’identification
- journaux-audit
- paramètres
- Actifs
- Compartiments
- Compartiment-fichiers
- Bibliothèques
- Files d'attente (Queues)
- ROI de la file d'attente
- éléments de la file d'attente
- Déclencheurs (Triggers)
- Webhooks
- Activités - Rechercher
- activités get-Default-xaml
- Analyser
- liste règles-analyseurs
- Construire
- Nettoyage
- Installation de entités data-fabrics
- liste des entités data-fabrics
- Diff de fichiers
- Get-Library-Object-Repository
- Récupérer le référentiel d'objets
- Init
- liste des instances
- Créer un package
- Vérification des paquets
- Installation des paquets
- Versions de paquets
- Publier
- Distant
- restore
- exécuter, déboguer et amp; Exécution
- paramètres
- Début de Studio
- Recherche de modèles
- entité ajoutée aux données de test
- Ajouter une file d'attente de données de test
- variation d'ajout de données de test
- TM
- UIA
- Valider
- exemples de workflow - Obtenir
- liste d'exemples de workflow
- uip resources
- tâches UIP
- pièce jointe
- Champ personnalisé
- Défauts (Defects)
- Exécutions
- exporter-tâches
- Migration
- Libellé Objet
- Créer un package
- scénarios-perf
- groupes-de-charge-scénarios-perf
- données d’exécution de perf-scenario
- rapport de scénarios de performances
- Projet
- autorisations-projet
- Invites
- Rapport
- Prérequis
- Résultat
- Exécuter
- Planifications (Schedules)
- Étendues
- Journaux de cas de test
- Cas de test
- Ensembles de tests
- Journal des étapes de test
- Utilisateur (User)
- Attendre
- Traçages UIP
- Commentaires sur les traces UIP
- Migration
- Référence et assistance
Migration: pipeline examples
Before-and-after pipeline snippets for Azure DevOps, GitHub Actions, GitLab, and Jenkins showing the auth-pack-deploy core.
Before/after pipeline snippets for the four common CI platforms. Each example is the auth + pack + deploy core — the shortest portable shape. For full working pipelines (caching, stages, approvals, test stage), cross-link to the CI/CD recipes.
Read Command map and Flag renames first if you have not — this page shows the ported result, not the mapping rules.
Each "After" pipeline reads the CLI version from a frozen .uipath/config.json committed at the repository root, and uip update installs the tools that file pins. See Freezing a CI pipeline.
Azure DevOps (YAML)
Before: a pipeline using the UiPath.CLI NuGet package and uipcli.exe via a Command Line task.
# Before — azure-pipelines.yml using legacy .NET CLI
trigger: [ main ]
pool:
vmImage: 'windows-2022'
variables:
UIPCLI_VERSION: '25.10.9401.39120'
ORCH_URL: 'https://cloud.uipath.com/'
ORCH_TENANT: 'DefaultTenant'
steps:
- task: NuGetCommand@2
displayName: 'Install UiPath.CLI.Windows'
inputs:
command: 'custom'
arguments: 'install UiPath.CLI.Windows -Version $(UIPCLI_VERSION) -OutputDirectory $(Agent.ToolsDirectory)\uipcli'
- script: |
set UIPCLI_PATH=$(Agent.ToolsDirectory)\uipcli\UiPath.CLI.Windows.$(UIPCLI_VERSION)\tools\uipcli.exe
"%UIPCLI_PATH%" package pack "$(Build.SourcesDirectory)\MyProject\project.json" ^
-o "$(Build.ArtifactStagingDirectory)" ^
--autoVersion --traceLevel Information
displayName: 'Pack project'
- script: |
set UIPCLI_PATH=$(Agent.ToolsDirectory)\uipcli\UiPath.CLI.Windows.$(UIPCLI_VERSION)\tools\uipcli.exe
"%UIPCLI_PATH%" package deploy "$(Build.ArtifactStagingDirectory)" ^
"$(ORCH_URL)" "$(ORCH_TENANT)" ^
-A "$(UIPATH_ORG)" ^
-I "$(UIPATH_CLIENT_ID)" ^
-S "$(UIPATH_CLIENT_SECRET)" ^
--applicationScope "OR.Folders OR.Execution OR.Assets" ^
--identityUrl "$(ORCH_URL)identity" ^
-o "Shared" ^
--processName "MyProcess" ^
--entryPointsPath "Main.xaml" ^
--traceLevel Information
displayName: 'Deploy package'
env:
UIPATH_CLIENT_ID: $(UIPATH_CLIENT_ID)
UIPATH_CLIENT_SECRET: $(UIPATH_CLIENT_SECRET)
# Before — azure-pipelines.yml using legacy .NET CLI
trigger: [ main ]
pool:
vmImage: 'windows-2022'
variables:
UIPCLI_VERSION: '25.10.9401.39120'
ORCH_URL: 'https://cloud.uipath.com/'
ORCH_TENANT: 'DefaultTenant'
steps:
- task: NuGetCommand@2
displayName: 'Install UiPath.CLI.Windows'
inputs:
command: 'custom'
arguments: 'install UiPath.CLI.Windows -Version $(UIPCLI_VERSION) -OutputDirectory $(Agent.ToolsDirectory)\uipcli'
- script: |
set UIPCLI_PATH=$(Agent.ToolsDirectory)\uipcli\UiPath.CLI.Windows.$(UIPCLI_VERSION)\tools\uipcli.exe
"%UIPCLI_PATH%" package pack "$(Build.SourcesDirectory)\MyProject\project.json" ^
-o "$(Build.ArtifactStagingDirectory)" ^
--autoVersion --traceLevel Information
displayName: 'Pack project'
- script: |
set UIPCLI_PATH=$(Agent.ToolsDirectory)\uipcli\UiPath.CLI.Windows.$(UIPCLI_VERSION)\tools\uipcli.exe
"%UIPCLI_PATH%" package deploy "$(Build.ArtifactStagingDirectory)" ^
"$(ORCH_URL)" "$(ORCH_TENANT)" ^
-A "$(UIPATH_ORG)" ^
-I "$(UIPATH_CLIENT_ID)" ^
-S "$(UIPATH_CLIENT_SECRET)" ^
--applicationScope "OR.Folders OR.Execution OR.Assets" ^
--identityUrl "$(ORCH_URL)identity" ^
-o "Shared" ^
--processName "MyProcess" ^
--entryPointsPath "Main.xaml" ^
--traceLevel Information
displayName: 'Deploy package'
env:
UIPATH_CLIENT_ID: $(UIPATH_CLIENT_ID)
UIPATH_CLIENT_SECRET: $(UIPATH_CLIENT_SECRET)
After: the same flow with uip, running on ubuntu-latest. A full end-to-end Azure Pipelines recipe (caching, deployment stages with approvals, Test Manager stage) lives in CI/CD recipe: Azure Pipelines.
# After — azure-pipelines.yml using uip
trigger: [ main ]
pool:
vmImage: 'ubuntu-latest'
variables:
- group: uipath-prod # holds UIPATH_CLIENT_ID, UIPATH_CLIENT_SECRET
- name: UIPATH_TENANT
value: 'DefaultTenant'
steps:
- task: NodeTool@0
displayName: 'Use Node.js 22'
inputs:
versionSpec: '22.x'
- script: |
set -euo pipefail
CLI_PIN=$(node -p "require('./.uipath/config.json').versions.cli") || exit 1
npm install -g "@uipath/cli@$CLI_PIN"
uip update # installs the tools the freeze pins
uip --version
displayName: 'Install UiPath CLI'
- script: |
set -euo pipefail
uip rpa pack ./MyProject --output ./dist --version "$(Build.BuildNumber)"
# See `uip rpa pack --help` for the complete flag list.
displayName: 'Pack project'
- script: |
set -euo pipefail
uip login \
--client-id env.UIPATH_CLIENT_ID \
--client-secret env.UIPATH_CLIENT_SECRET \
--tenant "$UIPATH_TENANT"
# Discover the packed file — version flows through from the pack step
PACKAGE=$(ls ./MyProject.*.nupkg | head -1)
# Upload to the tenant feed and extract the package key (format: "PackageId:Version")
PKG_KEY=$(uip or packages upload "$PACKAGE" \
--output-filter '[0].body' --output plain)
PKG_ID=${PKG_KEY%:*}
PKG_VER=${PKG_KEY#*:}
# Create or update the process
uip or processes create \
--name "MyProcess" \
--package-key "$PKG_ID" \
--package-version "$PKG_VER" \
--folder-path "Shared" \
--entry-point "Main.xaml"
displayName: 'Deploy package'
env:
UIPATH_CLIENT_ID: $(UIPATH_CLIENT_ID)
UIPATH_CLIENT_SECRET: $(UIPATH_CLIENT_SECRET)
UIPATH_TENANT: $(UIPATH_TENANT)
# After — azure-pipelines.yml using uip
trigger: [ main ]
pool:
vmImage: 'ubuntu-latest'
variables:
- group: uipath-prod # holds UIPATH_CLIENT_ID, UIPATH_CLIENT_SECRET
- name: UIPATH_TENANT
value: 'DefaultTenant'
steps:
- task: NodeTool@0
displayName: 'Use Node.js 22'
inputs:
versionSpec: '22.x'
- script: |
set -euo pipefail
CLI_PIN=$(node -p "require('./.uipath/config.json').versions.cli") || exit 1
npm install -g "@uipath/cli@$CLI_PIN"
uip update # installs the tools the freeze pins
uip --version
displayName: 'Install UiPath CLI'
- script: |
set -euo pipefail
uip rpa pack ./MyProject --output ./dist --version "$(Build.BuildNumber)"
# See `uip rpa pack --help` for the complete flag list.
displayName: 'Pack project'
- script: |
set -euo pipefail
uip login \
--client-id env.UIPATH_CLIENT_ID \
--client-secret env.UIPATH_CLIENT_SECRET \
--tenant "$UIPATH_TENANT"
# Discover the packed file — version flows through from the pack step
PACKAGE=$(ls ./MyProject.*.nupkg | head -1)
# Upload to the tenant feed and extract the package key (format: "PackageId:Version")
PKG_KEY=$(uip or packages upload "$PACKAGE" \
--output-filter '[0].body' --output plain)
PKG_ID=${PKG_KEY%:*}
PKG_VER=${PKG_KEY#*:}
# Create or update the process
uip or processes create \
--name "MyProcess" \
--package-key "$PKG_ID" \
--package-version "$PKG_VER" \
--folder-path "Shared" \
--entry-point "Main.xaml"
displayName: 'Deploy package'
env:
UIPATH_CLIENT_ID: $(UIPATH_CLIENT_ID)
UIPATH_CLIENT_SECRET: $(UIPATH_CLIENT_SECRET)
UIPATH_TENANT: $(UIPATH_TENANT)
Key differences to review:
- Agent image.
ubuntu-latestworks now because the CLI is a Node tool. If you have other Windows-only pipeline steps, keepwindows-2022—uipruns on both. - Auth flag shape.
--client-id env.UIPATH_CLIENT_IDresolves from the environment without expanding onto the command line. Theenv:block at the step level wires the variable-group secret into the process environment. See Breaking changes — implicit env-var reading. - Pack + deploy split. Legacy
package deploy <folder>uploaded every.nupkgin the folder and created processes in one call.uipsplits upload (uip or packages upload) from create (uip or processes create). Capture the package key from the upload response to chain them cleanly. set -euo pipefail. Multi-line bash steps need strict mode so a pack failure aborts the step before deploy runs. See Scripting patterns — strict shell options.- No
--traceLevel. The new CLI uses--log-level(defaultwarn). Logs go to stderr and stay out of the JSON payload on stdout.
Cross-link: CI/CD recipe: Azure Pipelines — full stages, variable groups, deployment jobs with approvals, and a Test Manager stage.
Jenkins (declarative)
Before: a Windows-agent pipeline unpacking the UiPath.CLI.Windows NuGet and invoking uipcli.exe.
// Before — Jenkinsfile using legacy .NET CLI
pipeline {
agent { label 'windows' }
environment {
UIPCLI_VERSION = '25.10.9401.39120'
UIPCLI_PATH = "${env.WORKSPACE}\\uipcli\\UiPath.CLI.Windows.${UIPCLI_VERSION}\\tools\\uipcli.exe"
ORCH_URL = 'https://cloud.uipath.com/'
ORCH_TENANT = 'DefaultTenant'
}
stages {
stage('Install CLI') {
steps {
bat '''
curl -L -O https://www.nuget.org/api/v2/package/UiPath.CLI.Windows/%UIPCLI_VERSION%
tar -xf UiPath.CLI.Windows.%UIPCLI_VERSION%.nupkg -C uipcli
'''
}
}
stage('Pack') {
steps {
bat '"%UIPCLI_PATH%" package pack "%WORKSPACE%\\MyProject\\project.json" -o "%WORKSPACE%\\dist" --autoVersion'
}
}
stage('Deploy') {
steps {
withCredentials([
string(credentialsId: 'UIPATH_CLIENT_ID', variable: 'UIPATH_CLIENT_ID'),
string(credentialsId: 'UIPATH_CLIENT_SECRET', variable: 'UIPATH_CLIENT_SECRET')
]) {
bat '''
"%UIPCLI_PATH%" package deploy "%WORKSPACE%\\dist" "%ORCH_URL%" "%ORCH_TENANT%" ^
-A "%UIPATH_ORG%" -I "%UIPATH_CLIENT_ID%" -S "%UIPATH_CLIENT_SECRET%" ^
--applicationScope "OR.Folders OR.Execution OR.Assets" ^
--identityUrl "%ORCH_URL%identity" ^
-o "Shared" ^
--processName "MyProcess"
'''
}
}
}
}
}
// Before — Jenkinsfile using legacy .NET CLI
pipeline {
agent { label 'windows' }
environment {
UIPCLI_VERSION = '25.10.9401.39120'
UIPCLI_PATH = "${env.WORKSPACE}\\uipcli\\UiPath.CLI.Windows.${UIPCLI_VERSION}\\tools\\uipcli.exe"
ORCH_URL = 'https://cloud.uipath.com/'
ORCH_TENANT = 'DefaultTenant'
}
stages {
stage('Install CLI') {
steps {
bat '''
curl -L -O https://www.nuget.org/api/v2/package/UiPath.CLI.Windows/%UIPCLI_VERSION%
tar -xf UiPath.CLI.Windows.%UIPCLI_VERSION%.nupkg -C uipcli
'''
}
}
stage('Pack') {
steps {
bat '"%UIPCLI_PATH%" package pack "%WORKSPACE%\\MyProject\\project.json" -o "%WORKSPACE%\\dist" --autoVersion'
}
}
stage('Deploy') {
steps {
withCredentials([
string(credentialsId: 'UIPATH_CLIENT_ID', variable: 'UIPATH_CLIENT_ID'),
string(credentialsId: 'UIPATH_CLIENT_SECRET', variable: 'UIPATH_CLIENT_SECRET')
]) {
bat '''
"%UIPCLI_PATH%" package deploy "%WORKSPACE%\\dist" "%ORCH_URL%" "%ORCH_TENANT%" ^
-A "%UIPATH_ORG%" -I "%UIPATH_CLIENT_ID%" -S "%UIPATH_CLIENT_SECRET%" ^
--applicationScope "OR.Folders OR.Execution OR.Assets" ^
--identityUrl "%ORCH_URL%identity" ^
-o "Shared" ^
--processName "MyProcess"
'''
}
}
}
}
}
After: Linux agent, npm install, session auth. A full Jenkinsfile with a Test Manager stage lives in CI/CD recipe: Jenkins.
// After — Jenkinsfile using uip
pipeline {
agent { label 'linux' }
environment {
UIPATH_TENANT = 'DefaultTenant'
NPM_PREFIX = "${env.WORKSPACE}/.npm-global"
}
stages {
stage('Install CLI') {
steps {
sh '''#!/usr/bin/env bash
set -euo pipefail
mkdir -p "$NPM_PREFIX"
npm config set prefix "$NPM_PREFIX"
export PATH="$NPM_PREFIX/bin:$PATH"
CLI_PIN=$(node -p "require('./.uipath/config.json').versions.cli") || exit 1
if ! command -v uip >/dev/null; then
npm install -g "@uipath/cli@$CLI_PIN"
fi
uip update
uip --version
'''
}
}
stage('Pack') {
steps {
sh '''#!/usr/bin/env bash
set -euo pipefail
export PATH="$NPM_PREFIX/bin:$PATH"
uip rpa pack ./MyProject
'''
}
}
stage('Deploy') {
steps {
withCredentials([
string(credentialsId: 'UIPATH_CLIENT_ID', variable: 'UIPATH_CLIENT_ID'),
string(credentialsId: 'UIPATH_CLIENT_SECRET', variable: 'UIPATH_CLIENT_SECRET')
]) {
sh '''#!/usr/bin/env bash
set -euo pipefail
export PATH="$NPM_PREFIX/bin:$PATH"
uip login \
--client-id env.UIPATH_CLIENT_ID \
--client-secret env.UIPATH_CLIENT_SECRET \
--tenant "$UIPATH_TENANT"
PACKAGE=$(ls ./MyProject.*.nupkg | head -1)
PKG_KEY=$(uip or packages upload "$PACKAGE" \
--output-filter "[0].body" --output plain)
PKG_ID=${PKG_KEY%:*}
PKG_VER=${PKG_KEY#*:}
uip or processes create \
--name "MyProcess" \
--package-key "$PKG_ID" \
--package-version "$PKG_VER" \
--folder-path "Shared" \
--entry-point "Main.xaml"
'''
}
}
}
}
}
// After — Jenkinsfile using uip
pipeline {
agent { label 'linux' }
environment {
UIPATH_TENANT = 'DefaultTenant'
NPM_PREFIX = "${env.WORKSPACE}/.npm-global"
}
stages {
stage('Install CLI') {
steps {
sh '''#!/usr/bin/env bash
set -euo pipefail
mkdir -p "$NPM_PREFIX"
npm config set prefix "$NPM_PREFIX"
export PATH="$NPM_PREFIX/bin:$PATH"
CLI_PIN=$(node -p "require('./.uipath/config.json').versions.cli") || exit 1
if ! command -v uip >/dev/null; then
npm install -g "@uipath/cli@$CLI_PIN"
fi
uip update
uip --version
'''
}
}
stage('Pack') {
steps {
sh '''#!/usr/bin/env bash
set -euo pipefail
export PATH="$NPM_PREFIX/bin:$PATH"
uip rpa pack ./MyProject
'''
}
}
stage('Deploy') {
steps {
withCredentials([
string(credentialsId: 'UIPATH_CLIENT_ID', variable: 'UIPATH_CLIENT_ID'),
string(credentialsId: 'UIPATH_CLIENT_SECRET', variable: 'UIPATH_CLIENT_SECRET')
]) {
sh '''#!/usr/bin/env bash
set -euo pipefail
export PATH="$NPM_PREFIX/bin:$PATH"
uip login \
--client-id env.UIPATH_CLIENT_ID \
--client-secret env.UIPATH_CLIENT_SECRET \
--tenant "$UIPATH_TENANT"
PACKAGE=$(ls ./MyProject.*.nupkg | head -1)
PKG_KEY=$(uip or packages upload "$PACKAGE" \
--output-filter "[0].body" --output plain)
PKG_ID=${PKG_KEY%:*}
PKG_VER=${PKG_KEY#*:}
uip or processes create \
--name "MyProcess" \
--package-key "$PKG_ID" \
--package-version "$PKG_VER" \
--folder-path "Shared" \
--entry-point "Main.xaml"
'''
}
}
}
}
}
Key differences to review:
withCredentials→env.prefix. Jenkins'withCredentialsblock exports the secret into the process environment; on the CLI side, reference it asenv.UIPATH_CLIENT_SECRETso it never expands onto the command line. Do not use--client-secret "$UIPATH_CLIENT_SECRET".- Agent label.
linux+ Node 22+ is the common case. If you must run on Windows,agent { label 'windows' }andbat '''npm install -g @uipath/cli …'''work — Node is cross-platform. NPM_PREFIXworkaround. Thenpm install -gtarget defaults to a path that may need root. SettingNPM_PREFIXto a workspace-local directory avoids the need forsudo. Cached by Jenkins between builds if the workspace is preserved.
Cross-link: CI/CD recipe: Jenkins — full declarative pipeline with stash/unstash, archiveArtifacts, test stage, and agent variations.
Actions de GitHub
Before: a Windows runner installing UiPath.CLI.Windows from NuGet. Condensed to the deploy step for brevity.
# Before — .github/workflows/deploy.yml using legacy .NET CLI
jobs:
deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install uipcli
run: |
nuget install UiPath.CLI.Windows -Version 25.10.9401.39120 -OutputDirectory $env:RUNNER_TEMP\uipcli
echo "UIPCLI_PATH=$env:RUNNER_TEMP\uipcli\UiPath.CLI.Windows.25.10.9401.39120\tools\uipcli.exe" >> $env:GITHUB_ENV
- name: Deploy
run: |
& "$env:UIPCLI_PATH" package deploy "${{ github.workspace }}\dist" `
"${{ vars.ORCH_URL }}" "${{ vars.ORCH_TENANT }}" `
-I "${{ secrets.UIPATH_CLIENT_ID }}" `
-S "${{ secrets.UIPATH_CLIENT_SECRET }}" `
--applicationScope "OR.Folders OR.Execution" `
-o "Shared" --processName "MyProcess"
# Before — .github/workflows/deploy.yml using legacy .NET CLI
jobs:
deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install uipcli
run: |
nuget install UiPath.CLI.Windows -Version 25.10.9401.39120 -OutputDirectory $env:RUNNER_TEMP\uipcli
echo "UIPCLI_PATH=$env:RUNNER_TEMP\uipcli\UiPath.CLI.Windows.25.10.9401.39120\tools\uipcli.exe" >> $env:GITHUB_ENV
- name: Deploy
run: |
& "$env:UIPCLI_PATH" package deploy "${{ github.workspace }}\dist" `
"${{ vars.ORCH_URL }}" "${{ vars.ORCH_TENANT }}" `
-I "${{ secrets.UIPATH_CLIENT_ID }}" `
-S "${{ secrets.UIPATH_CLIENT_SECRET }}" `
--applicationScope "OR.Folders OR.Execution" `
-o "Shared" --processName "MyProcess"
After: Ubuntu runner, npm install, session auth.
# After — .github/workflows/deploy.yml using uip
jobs:
deploy:
runs-on: ubuntu-latest
env:
UIPATH_TENANT: 'DefaultTenant'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install UiPath CLI
run: |
set -euo pipefail
CLI_PIN=$(node -p "require('./.uipath/config.json').versions.cli") || exit 1
npm install -g "@uipath/cli@$CLI_PIN"
uip update
- name: Pack
run: |
set -euo pipefail
uip rpa pack ./MyProject
- name: Deploy
env:
UIPATH_CLIENT_ID: ${{ secrets.UIPATH_CLIENT_ID }}
UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }}
run: |
set -euo pipefail
uip login \
--client-id env.UIPATH_CLIENT_ID \
--client-secret env.UIPATH_CLIENT_SECRET \
--tenant "$UIPATH_TENANT"
PACKAGE=$(ls ./MyProject.*.nupkg | head -1)
PKG_KEY=$(uip or packages upload "$PACKAGE" \
--output-filter "[0].body" --output plain)
PKG_ID=${PKG_KEY%:*}
PKG_VER=${PKG_KEY#*:}
uip or processes create \
--name "MyProcess" \
--package-key "$PKG_ID" \
--package-version "$PKG_VER" \
--folder-path "Shared" \
--entry-point "Main.xaml"
# After — .github/workflows/deploy.yml using uip
jobs:
deploy:
runs-on: ubuntu-latest
env:
UIPATH_TENANT: 'DefaultTenant'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install UiPath CLI
run: |
set -euo pipefail
CLI_PIN=$(node -p "require('./.uipath/config.json').versions.cli") || exit 1
npm install -g "@uipath/cli@$CLI_PIN"
uip update
- name: Pack
run: |
set -euo pipefail
uip rpa pack ./MyProject
- name: Deploy
env:
UIPATH_CLIENT_ID: ${{ secrets.UIPATH_CLIENT_ID }}
UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }}
run: |
set -euo pipefail
uip login \
--client-id env.UIPATH_CLIENT_ID \
--client-secret env.UIPATH_CLIENT_SECRET \
--tenant "$UIPATH_TENANT"
PACKAGE=$(ls ./MyProject.*.nupkg | head -1)
PKG_KEY=$(uip or packages upload "$PACKAGE" \
--output-filter "[0].body" --output plain)
PKG_ID=${PKG_KEY%:*}
PKG_VER=${PKG_KEY#*:}
uip or processes create \
--name "MyProcess" \
--package-key "$PKG_ID" \
--package-version "$PKG_VER" \
--folder-path "Shared" \
--entry-point "Main.xaml"
Différences clés :
env:at step level,env.VAR_NAMEin flags. GitHub Actions secrets are injected through the step'senv:block; the CLI reads them through--client-id env.UIPATH_CLIENT_ID. Never use--client-secret "${{ secrets.X }}"— that expands the secret literal into the workflow log.actions/setup-node@v4replaces every .NET / NuGet setup step.
Cross-link: CI/CD recipe: GitHub Actions — full workflow with matrix builds, artifact upload, and a test job.
CI GitLab
Before: a dotnet-sdk image unpacking UiPath.CLI from NuGet.
# Before — .gitlab-ci.yml using legacy .NET CLI
image: mcr.microsoft.com/dotnet/sdk:6.0
variables:
UIPCLI_VERSION: '25.10.9401.39120'
deploy:
script:
- |
dotnet tool install -g UiPath.CLI --version $UIPCLI_VERSION
uipcli package deploy "./dist" \
"$ORCH_URL" "$ORCH_TENANT" \
-I "$UIPATH_CLIENT_ID" -S "$UIPATH_CLIENT_SECRET" \
--applicationScope "OR.Folders OR.Execution" \
-o "Shared" --processName "MyProcess"
# Before — .gitlab-ci.yml using legacy .NET CLI
image: mcr.microsoft.com/dotnet/sdk:6.0
variables:
UIPCLI_VERSION: '25.10.9401.39120'
deploy:
script:
- |
dotnet tool install -g UiPath.CLI --version $UIPCLI_VERSION
uipcli package deploy "./dist" \
"$ORCH_URL" "$ORCH_TENANT" \
-I "$UIPATH_CLIENT_ID" -S "$UIPATH_CLIENT_SECRET" \
--applicationScope "OR.Folders OR.Execution" \
-o "Shared" --processName "MyProcess"
After: Node image, session auth, explicit env. references.
# After — .gitlab-ci.yml using uip
image: node:22
variables:
UIPATH_TENANT: 'DefaultTenant'
deploy:
script:
- set -euo pipefail
- CLI_PIN=$(node -p "require('./.uipath/config.json').versions.cli") || exit 1
- npm install -g "@uipath/cli@$CLI_PIN"
- uip update
- uip rpa pack ./MyProject
- |
uip login \
--client-id env.UIPATH_CLIENT_ID \
--client-secret env.UIPATH_CLIENT_SECRET \
--tenant "$UIPATH_TENANT"
- |
PACKAGE=$(ls ./MyProject.*.nupkg | head -1)
PKG_KEY=$(uip or packages upload "$PACKAGE" \
--output-filter "[0].body" --output plain)
PKG_ID=${PKG_KEY%:*}
PKG_VER=${PKG_KEY#*:}
uip or processes create \
--name "MyProcess" \
--package-key "$PKG_ID" \
--package-version "$PKG_VER" \
--folder-path "Shared" \
--entry-point "Main.xaml"
# After — .gitlab-ci.yml using uip
image: node:22
variables:
UIPATH_TENANT: 'DefaultTenant'
deploy:
script:
- set -euo pipefail
- CLI_PIN=$(node -p "require('./.uipath/config.json').versions.cli") || exit 1
- npm install -g "@uipath/cli@$CLI_PIN"
- uip update
- uip rpa pack ./MyProject
- |
uip login \
--client-id env.UIPATH_CLIENT_ID \
--client-secret env.UIPATH_CLIENT_SECRET \
--tenant "$UIPATH_TENANT"
- |
PACKAGE=$(ls ./MyProject.*.nupkg | head -1)
PKG_KEY=$(uip or packages upload "$PACKAGE" \
--output-filter "[0].body" --output plain)
PKG_ID=${PKG_KEY%:*}
PKG_VER=${PKG_KEY#*:}
uip or processes create \
--name "MyProcess" \
--package-key "$PKG_ID" \
--package-version "$PKG_VER" \
--folder-path "Shared" \
--entry-point "Main.xaml"
GitLab CI variables defined under the project's CI/CD settings (UIPATH_CLIENT_ID, UIPATH_CLIENT_SECRET, marked Masked and Protected) appear in the job's environment automatically, so the env. prefix on the CLI flags resolves without extra wiring.
Cross-link: CI/CD recipe: GitLab CI — full .gitlab-ci.yml with stages, artifacts, manual deploy gates, and a test stage.
Checklist for a clean port
Run through this before you commit the first pass:
-
uipcli.exeis no longer referenced anywhere in the pipeline files. -
UiPath.CLI/UiPath.CLI.WindowsNuGet install steps are removed. - A frozen
.uipath/config.jsonis committed at the repository root, and every job that runsuipinstalls the pinned CLI and runsuip update. -
.NETordotnet-sdksetup is removed (unless other pipeline steps still need it). - Auth flags (
-u,-p,-t,-a,-I,-S,-A) are gone from every command. -
uip login --client-id env.X --client-secret env.Y --tenant Zis the single auth entry point. -
--identityUrlis renamed to--authority(only used for non-Automation-Cloud environments). -
--traceLevelis replaced by--log-level(or dropped). - Every shell parse of legacy
uipclitext stdout is replaced with--output-filter ... --output plainorjq. - Downstream expectations of
.nupkgfor Solutions are updated to.zip. - Exit-code branches (
case $?) use only0/1/2/3/4/130, withuip tm wait's1(a test failed or the run was cancelled) and4(timeout) handled explicitly. -
UIPATH_TELEMETRY_DISABLED=1is set if your org prohibits outbound telemetry.
Voir également
- Command map — verb-for-verb mapping.
- Flag renames — flag-for-flag mapping.
- Breaking changes — semantic differences behind the rename.
- CI/CD recipe: Azure Pipelines, Jenkins, GitHub Actions, GitLab CI — full recipes with caching, tests, promotion.
- Your first pipeline — hands-on walkthrough for new users.