- Notes de publication
- Introduction
- Gouvernance
- Contrôle de code source
- Pipelines CI/CD
- Gestion des flux
- Journalisation
Interface de ligne de commande UiPath
UiPath propose une interface de ligne de commande (CLI) qui vous permet d'exécuter certaines tâches prédéfinies pour la gestion et le test des packages RPA. L’objectif de l’interface de ligne de commande UiPath est d’intégrer facilement ces fonctionnalités à des outils tiers tels que GitLab, Jenkins et bien d’autres, sans plug-in.
UiPath CLI peut être utilisé avec Orchestrator déployé via Automation Cloud, Automation Suite ou version autonome.
Les cas d'utilisation courants de l'interface de ligne de commande UiPath impliquent :
- Emballage de projets Studio dans des packages NuGet.
- Déployer des packages NuGet sur Orchestrator.
- Exécution de tâches dans Orchestrator.
- Exécution d'ensembles de tests dans Orchestrator.
La CLI UiPath se compose de deux types :
-
UiPath.CLI.Windows
- Fonctionne uniquement sur les appareils Windows.
- Génère des projets Windows - Legacy,Windowset multiplateformes .
-
CheminUi.CLI
- Fonctionne uniquement sur les appareils Linux.
- Génère uniquement des projets multiplateformes .
- Pour UiPath.CLI, installez .NET 6.0.7, fourni avec le SDK 6.0.302 ou toute version ultérieure.
- Pour UiPath.CLI.Windows, installez .NET 6.0.7 ou supérieur. Vous devez également installer .NET Desktop Runtime, qui est également fourni avec le SDK .NET.
Vous pouvez télécharger n’importe quelle version de la CLI UiPath à partir du flux public officiel UiPath. Pour trouver la bonne version pour votre projet, consultez la matrice de compatibilité ci-dessous.
uipcli.exe
(pour UiPath.CLI.Windows) ou uipcli.dll
(pour UiPath.CLI), situé dans le dossier tools
.
La version d'UiPath Studio que vous utilisez pour créer vos projets doit correspondre à la version de UiPath.CLI.Windows.
Légende: compatibles ; - non compatible.
Orchestrator |
Type de projet |
UiPath.CLI.Windows 23.10 |
UiPath.CLI.Windows 23.6 |
UiPath.CLI.Windows 22.10 |
---|---|---|---|---|
2023.10.x PaaS | Windows - Héritage |
|
|
|
2023.10.x PaaS | Windows |
|
|
|
2023.10.x PaaS | Multiplateforme |
|
|
|
2021.10.x On-Premises |
Windows - Héritage |
|
|
|
2021.10.x On-Premises |
Windows |
|
|
|
2021.10.x On-Premises |
Multiplateforme |
|
|
|
2021.10.x PaaS |
Windows - Héritage |
|
|
|
2021.10.x PaaS |
Windows |
|
|
|
2021.10.x PaaS |
Multiplateforme |
|
|
|
2022.4.x |
Windows - Héritage |
|
|
|
2022.4.x |
Windows |
|
|
|
2022.4.x |
Multiplateforme |
|
|
|
2022.10.x |
Windows - Héritage |
|
|
|
2022.10.x |
Windows |
|
|
|
2022.10.x |
Multiplateforme |
|
|
|
2023.4.x | Windows-héritage |
|
|
|
2023.4.x | Windows |
|
|
|
2023.4.x | Multiplateforme |
|
|
|
Cloud |
Windows - Héritage |
|
|
|
Cloud |
Windows |
|
|
|
Cloud |
Multiplateforme |
|
|
|
La version de UiPath Studio que vous utilisez pour créer vos projets doit correspondre à la version de UiPath.CLI. Par exemple, si vous créez des projets à l'aide d'UiPath Studio 2021.10, vous devez utiliser la version 21.10 de UiPath.CLI.
Légende: compatibles ; - non compatible.
Orchestrator | Type de projet | UiPath.CLI 23.10 | UiPath.CLI 23.6 | UiPath.CLI 22.10 | UiPath.CLI 22.4 | UiPath.CLI 21.10 |
---|---|---|---|---|---|---|
2023.10.x PaaS | Windows - Héritage |
|
|
|
|
|
2023.10.x PaaS | Windows |
|
|
|
|
|
2023.10.x PaaS | Multiplateforme |
|
|
|
|
|
2021.10.x On-Premises |
Windows - Héritage |
|
|
|
|
|
2021.10.x On-Premises |
Windows |
|
|
|
|
|
2021.10.x On-Premises |
Multiplateforme |
|
|
|
|
|
2021.10.x PaaS |
Windows - Héritage |
|
|
|
|
|
2021.10.x PaaS |
Windows |
|
|
|
|
|
2021.10.x PaaS |
Multiplateforme |
|
|
|
|
|
2022.4.x |
Windows - Héritage |
|
|
|
|
|
2022.4.x |
Windows |
|
|
|
|
|
2022.4.x |
Multiplateforme |
|
|
|
|
|
2022.10.x |
Windows - Héritage |
|
|
|
|
|
2022.10.x |
Windows |
|
|
|
|
|
2022.10.x |
Multiplateforme |
|
|
|
|
|
2023.4.x | Windows-héritage |
|
|
|
|
|
2023.4.x | Windows |
|
|
|
|
|
2023.4.x | Multiplateforme |
|
|
|
|
|
Cloud |
Windows - Héritage |
|
|
|
|
|
Cloud |
Windows |
|
|
|
|
|
Cloud |
Multiplateforme |
|
|
|
|
|
uipcli
searches for dependencies in the following built-in feeds:
-
C:\Program Files\Microsoft SDKs\NuGetPackages
(if this path is on the current agent) -
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages
(if this path is on the current agent)
uipcli
to not use the built-in feeds by setting the --disableBuiltInNugetFeeds
parameter. This parameter can be passed to the following tasks: analyze
, pack
, and test run
.
uipcli
with a configuration file, set "disableBuiltInNugetFeeds": true
.
You can use custom feeds when packing an automation. To do this, you need to:
-
Create a custom
nuget.config
file with the following format:<?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="test custom feed" value="custom_feed_url" /> </packageSources> </configuration>
<?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="test custom feed" value="custom_feed_url" /> </packageSources> </configuration> -
Place the custom
nuget.config
file in the folder whereuipcli
is cached:
Using custom nuget.config in Azure DevOps
nuget.config
to $(Agent.ToolsDirectory)/uipcli
, after the InstallPlatform
step, as shown in the following example:
trigger:
- main
pool:
vmImage: ubuntu-latest
stages:
- stage: Demo
jobs:
- job: Demo
steps:
- task: UiPathInstallPlatform@4
inputs:
cliVersion: 'X_23.6.8581.19168'
- task: CopyFiles@2
inputs:
SourceFolder: '$(Build.SourcesDirectory)'
Contents: 'nuget.config'
TargetFolder: '$(Agent.ToolsDirectory)/uipcli'
- task: UiPathPack@4
inputs:
versionType: 'AutoVersion'
projectJsonPath: '$(Build.SourcesDirectory)/AutomationProjects/CrossPlatform/VB/ProjectWithCustomLibraryFromOrchestrator_CrossPlatform_VB/project.json'
outputPath: '$(Build.ArtifactStagingDirectory)/Output'
traceLevel: 'Information'
trigger:
- main
pool:
vmImage: ubuntu-latest
stages:
- stage: Demo
jobs:
- job: Demo
steps:
- task: UiPathInstallPlatform@4
inputs:
cliVersion: 'X_23.6.8581.19168'
- task: CopyFiles@2
inputs:
SourceFolder: '$(Build.SourcesDirectory)'
Contents: 'nuget.config'
TargetFolder: '$(Agent.ToolsDirectory)/uipcli'
- task: UiPathPack@4
inputs:
versionType: 'AutoVersion'
projectJsonPath: '$(Build.SourcesDirectory)/AutomationProjects/CrossPlatform/VB/ProjectWithCustomLibraryFromOrchestrator_CrossPlatform_VB/project.json'
outputPath: '$(Build.ArtifactStagingDirectory)/Output'
traceLevel: 'Information'
Using custom nuget.config in Jenkins
nuget.config
to ${WORKSPACE}/CLI
, after the InstallPlatform
step, as shown in the following example:
pipeline {
agent {
label 'plugins-jenkins-lts-agent-01'
}
stages {
stage('Clone') {
steps {
git (
branch: 'main',
url: 'https://github.com/al3xandru-uipath-qa/CI-Plugins-Customer-Support.git'
)
}
}
stage('Install Platform') {
steps {
UiPathInstallPlatform (
traceLevel: 'Information'
)
}
}
stage('Copy nuget.config') {
steps {
bat 'copy nuget.config CLI\\nuget.config'
}
}
stage('Pack') {
steps {
UiPathPack (
outputPath: '${WORKSPACE}/Output',
projectJsonPath: '${WORKSPACE}/AutomationProjects/CrossPlatform/VB/ProjectWithCustomLibraryFromOrchestrator_CrossPlatform_VB/project.json',
traceLevel: 'Information',
version: AutoVersion()
)
}
}
}
}
pipeline {
agent {
label 'plugins-jenkins-lts-agent-01'
}
stages {
stage('Clone') {
steps {
git (
branch: 'main',
url: 'https://github.com/al3xandru-uipath-qa/CI-Plugins-Customer-Support.git'
)
}
}
stage('Install Platform') {
steps {
UiPathInstallPlatform (
traceLevel: 'Information'
)
}
}
stage('Copy nuget.config') {
steps {
bat 'copy nuget.config CLI\\nuget.config'
}
}
stage('Pack') {
steps {
UiPathPack (
outputPath: '${WORKSPACE}/Output',
projectJsonPath: '${WORKSPACE}/AutomationProjects/CrossPlatform/VB/ProjectWithCustomLibraryFromOrchestrator_CrossPlatform_VB/project.json',
traceLevel: 'Information',
version: AutoVersion()
)
}
}
}
}