Automation Ops
Neuestes
False
Bannerhintergrundbild
Automation Ops Benutzerhandbuch
Letzte Aktualisierung 26. Apr. 2024

UiPath-CLI

UiPath bietet eine Befehlszeilenschnittstelle (CLI), mit der Sie bestimmte vordefinierte Aufgaben für die Verwaltung und das Testen von RPA-Paketen ausführen können. Der Zweck der UiPath CLI besteht darin, diese Funktionen ohne Plugin einfach in Tools von Drittanbietern wie GitLab, Jenkins und viele andere zu integrieren.

Hinweis:

UiPath CLI kann mit dem Orchestrator verwendet werden, der über die Automation Cloud, die Automation Suite oder eigenständig bereitgestellt wird.

Häufige Anwendungsfälle für die UiPath-CLI sind:

  • Packen von Studio-Projekten in NuGet-Pakete.
  • Bereitstellen von NuGet-Paketen im Orchestrator.
  • Ausführen von Aufträgen im Orchestrator.
  • Ausführen von Testsätzen im Orchestrator.

UiPath CLI besteht aus zwei Typen:

  1. UiPath.CLI.Windows

    • Wird nur auf Windows-Geräten ausgeführt.
    • Erstellt Windows – Legacy-,Windows-und plattformübergreifende Projekte.
  2. UiPath.CLI

    • Läuft nur auf Linux-Geräten.
    • Erstellt nur plattformübergreifende Projekte.
Note: UiPath CLI does not support SSO connection.

Voraussetzungen

  • Installieren Sie für UiPath.CLI .NET 6.0.7, das mit SDK 6.0.302 oder höher mitgeliefert wird.
  • Installieren Sie für UiPath.CLI.Windows .NET 6.0.7 oder höher. Sie müssen auch .NET Desktop Runtime installieren, das auch mit .NET SDK mitgeliefert wird.

Herunterladen der CLI

Sie können eine beliebige Version der UiPath-CLI aus dem offiziellen öffentlichen UiPath-Feed herunterladen. Um die richtige Version für Ihr Projekt zu finden, überprüfen Sie die Kompatibilitätsmatrix unten.

  1. Wechseln Sie zum offiziellen öffentlichen UiPath-Feed.
  2. Geben Sie in der Suchleiste Nach Schlüsselwörtern filtern uipath.cli ein.
  3. Wählen Sie eine der folgenden Optionen aus:
    • UiPath.CLI
    • UiPath.CLI.Windows
  4. Wechseln Sie zur Registerkarte Versionen , und wählen Sie eine Version der CLI aus, die Sie herunterladen möchten.
  5. Wählen Sie Herunterladen aus.
  6. Öffnen Sie den Ordner, in den die NUPKG-Datei heruntergeladen wurde, klicken Sie mit der rechten Maustaste darauf und extrahieren Sie die Datei in einen Ordner.
Ergebnisse: Ein Ordner mit demselben Namen wie die NUPKG-Datei wird erstellt. Dieser Ordner enthält den Inhalt der UiPath CLI. Der Einstiegspunkt für alle Vorgänge ist uipcli.exe (für UiPath.CLI.Windows) oder uipcli.dll (für UiPath.CLI) im Ordner tools .

UiPath.CLI.Windows-Kompatibilitätsmatrix

Die Version von UiPath Studio, die Sie zum Erstellen Ihrer Projekte verwenden, muss mit der Version von UiPath.CLI.Windows übereinstimmen.

Legende: available - kompatibel; Nicht verfügbar - nicht kompatibel.

Orchestrator

Projekttyp

UiPath.CLI.Windows 23.10

UiPath.CLI.Windows 23.6

UiPath.CLI.Windows 22.10

2023.10.x hat PaaS

Windows – Legacy

available

available

available

2023.10.x hat PaaS

Windows

available

available

available

2023.10.x hat PaaS

Plattformübergreifend

available

available

available

2021.10.x Lokal (On-Premises)

Windows – Legacy

available

available

available

2021.10.x Lokal (On-Premises)

Windows

available

available

available

2021.10.x Lokal (On-Premises)

Plattformübergreifend

available

available

available

2021.10.x PaaS

Windows – Legacy

available

available

available

2021.10.x PaaS

Windows

available

available

available

2021.10.x PaaS

Plattformübergreifend

available

available

available

2022.4.x

Windows – Legacy

available

available

available

2022.4.x

Windows

available

available

available

2022.4.x

Plattformübergreifend

available

available

available

2022.10.x

Windows – Legacy

available

available

available

2022.10.x

Windows

available

available

available

2022.10.x

Plattformübergreifend

available

available

available

2023.4.xWindows – Legacy

available

available

available

2023.4.xWindows

available

available

available

2023.4.xPlattformübergreifend

available

available

available

Cloud

Windows – Legacy

available

available

available

Cloud

Windows

available

available

available

Cloud

Plattformübergreifend

available

available

available

UiPath.CLI-Kompatibilitätsmatrix

Die Version von UiPath Studio, die Sie zum Erstellen Ihrer Projekte verwenden, muss mit der Version von UiPath.CLI übereinstimmen. Wenn Sie beispielsweise Projekte mit UiPath Studio 2021.10 erstellen, Sie müssen die Version 21.10 von UiPath.CLI verwenden.

Legende: available - kompatibel; Nicht verfügbar - nicht kompatibel.

OrchestratorProjekttypUiPath.CLI 23.10UiPath.CLI 23.6UiPath.CLI 22.10UiPath.CLI 22.4UiPath.CLI 21.10

2023.10.x hat PaaS

Windows – Legacy

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

2023.10.x hat PaaS

Windows

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

2023.10.x hat PaaS

Plattformübergreifend

available

available

available

available

available

2021.10.x Lokal (On-Premises)

Windows – Legacy

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

available

available

2021.10.x Lokal (On-Premises)

Windows

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

2021.10.x Lokal (On-Premises)

Plattformübergreifend

available

available

available

available

available

2021.10.x PaaS

Windows – Legacy

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

available

available

2021.10.x PaaS

Windows

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

2021.10.x PaaS

Plattformübergreifend

available

available

available

available

available

2022.4.x

Windows – Legacy

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

available

available

2022.4.x

Windows

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

2022.4.x

Plattformübergreifend

available

available

available

available

available

2022.10.x

Windows – Legacy

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

available

available

2022.10.x

Windows

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

2022.10.x

Plattformübergreifend

available

available

available

available

available

2023.4.xWindows – Legacy

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

available

available

2023.4.xWindows

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

2023.4.xPlattformübergreifend

available

available

available

available

available

Cloud

Windows – Legacy

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

available

available

Cloud

Windows

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Nicht verfügbar

Cloud

Plattformübergreifend

available

available

available

available

available

Controlling the NuGet feeds used by the CLI

Disabling the built-in NuGet feeds

By default, uipcli searches for dependencies in the following built-in feeds: You can specify 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.
When you run uipcli with a configuration file, set "disableBuiltInNugetFeeds": true.
docs image
docs image

Using custom NuGet feeds

You can use custom feeds when packing an automation. To do this, you need to:

  1. 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>
  2. Place the custom nuget.config file in the folder where uipcli is cached:
    docs image

Using custom nuget.config in Azure DevOps

You need to update the configuration and copy 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

You need to update the configuration and copy 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()
                )
            }
        }
    }
}

War diese Seite hilfreich?

Hilfe erhalten
RPA lernen – Automatisierungskurse
UiPath Community-Forum
UiPath Logo weiß
Vertrauen und Sicherheit
© 2005-2024 UiPath. All rights reserved.