- Vue d'ensemble (Overview)
- Interface de ligne de commande UiPath
- Extension Azure DevOps
- Plugin Jenkins
Prerequisites:
- Créez un package.
- Exécutez le fichier CLI
exe(pour Windows) oudll(pour Linux). - Add the required Orchestrator API access application scopes.
Pour déployer un package sur Orchestrator, procédez comme suit :
-
Exécutez la tâche
packageà l'aide deuipcli package. Vous pouvez voir une liste des sous-tâches disponibles. -
Spécifiez les paramètres requis et exécutez la sous-tâche
deploy.Voir la liste des paramètres ci-dessous.
Paramètre Description -cou--createProcessThe default value for is
true.Lorsqu'il est défini sur
true, il crée un processus dans le dossier Orchestrator qui est transmis dans la commande.When set to
false, it doesn't create a process in the Orchestrator folder. For example,--createProcess false.-eou--environments(pour les dossiers classiques)Une liste d'environnements dans lesquels vous souhaitez déployer le package, séparés par des virgules.
If the environment doesn't belong to the default folder (organization unit), you must prefix the environment name with the folder name. For example, if the environment is TestEnvironment, and the folder name is AccountingTeam, then write the environment as AccountingTeam\TestEnvironment.
-hou--entryPointsPathDéfinissez les points d'entrée spécifiques pour créer ou mettre à jour un processus. Il s'agit du CheminFichier du point d'entrée à partir de la racine du projet.
Pour les dossiers classiques, un seul point d'entrée peut être spécifié pour chaque environnement.
-u, or--username(Required if you use Basic Authentication, through a username and a password)Le nom d'utilisateur utilisé pour l'authentification auprès d'Orchestrator. Vous devez l'associer au mot de passe correspondant.
-p, or--password(Required if you use Basic Authentication, through a username and a password)Le mot de passe utilisé pour l'authentification auprès d'Orchestrator. Vous devez l'associer au nom d'utilisateur correspondant.
-t, or--token(Required if you use token-based authentication)The OAuth2 refresh token used for authenticating to Orchestrator. You must pair it with the Account Name and Client ID.
-a, or--accountName(Required if you use token-based authentication)The Orchestrator CloudRPA account name. You must pair it with the OAuth2 refresh token and Client ID.
-Aou--accountForAppThe Orchestrator CloudRPA account name (organization name). You must pair it with the Application ID,Application Secret, and Application scope for external application
-I, or--applicationId(Required if you use external application authentication)The external Application ID. You must pair it with the Application Account,Application Secret, and Application scope.
-S, or--applicationSecret(Required if you use external application authentication)The external Application Secret. You must pair it with the Application Account,Application ID, and Application scope.
--applicationScope(Required if you use external application authentication)The list of application scopes, separated by single spaces. You must pair it with the Application Account,Application ID, and Application Secret for external application.
-oou--organizationUnitLe nom du dossier Orchestrator (unité d'organisation).
Pour saisir des sous-dossiers, assurez-vous de saisir à la fois le nom du dossier parent et le nom du sous-dossier. Par exemple, utilisez
AccountingTeam/TeamJohn.-lou--languageLa langue utilisée dans l'interface utilisateur d'Orchestrator.
-you--disableTelemetryDésactiver les données de télémétrie
--traceLevelAfficher la trace des événements.
--identityUrl(Required only for PaaS deployments)L'URL de votre serveur d'identité.
--helpAffiche les paramètres et des exemples de cette commande.
--versionAffiche les informations de version.
Package(s) Path (pos. 0)(Required)Le chemin d'accès à un fichier de package ou le chemin d'accès à un dossier contenant plusieurs packages. Orchestrator URL (pos. 1)(Required)Il s'agit de l'URL de votre Orchestrator. Locataire Orchestrator (pos. 2)
- (Required) for SaaP deployments.
- (Optional) for PaaS deployments.`
Locataire de l'instance d'Orchestrator dans laquelle vous souhaitez supprimer une machine.
La uipcli créera un processus avec un point d’entrée default si vous n’en spécifiez pas. Si le point d’entrée est spécifié, un processus avec ce point d’entrée sera créé et _{entryPoint} sera ajouté au nom du processus. De plus, tous les processus associés au package.Id seront mis à jour vers la dernière version, que le processus ait été créé manuellement ou à partir d’un pipeline.
Utilisation :
package deploy <packages_path> <orchestrator_url> <orchestrator_tenant> [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <account_for_app> -I <application_id> -S <application_secret> --applicationScope] [-o <folder_organization_unit>] [-c <create_process>] [-e <environment_list>] [-l <language>]
package deploy <packages_path> <orchestrator_url> <orchestrator_tenant> [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <account_for_app> -I <application_id> -S <application_secret> --applicationScope] [-o <folder_organization_unit>] [-c <create_process>] [-e <environment_list>] [-l <language>]
Exemples :
package deploy "C:\UiPath\Project 1" "https://uipath-orchestrator.myorg.com" default -u admin -p 123456package deploy "C:\UiPath\Project\Package.1.0.6820.22047.nupkg" "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -o OurOrganizationpackage deploy "C:\UiPath\Project\TestsPackage.1.0.6820.22047.nupkg" "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -e SAPEnvironment,ExcelAutomationEnvironment -l en-USpackage deploy "C:\UiPath\Project\Package.1.0.6820.22047.nupkg" "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccountpackage deploy "C:\UiPath\Project\TestsPackage.1.0.6820.22047.nupkg" "https://uipath-orchestrator.myorg.com" default -A myAccountForExternalApp -I myExternalAppId -S myExternalAppSecret --applicationScope "OR.Folders.Read OR.Settings.Read"package deploy "C:\UiPath\Project\TestsPackage.1.0.6820.22047.nupkg" "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -e SAPEnvironment,ExcelAutomationEnvironment -l en-US -h EntryPoint1,EntryPoint2