Liste de commandes
login
login
La commande login
vous permet d'ajouter vos informations d'identification WorkflowGen pour autoriser l'interface de ligne de commande (CLI). La CLI supporte l'authentification de base et l'authentification OpenID Connect.
Authentification de base ou intégrée
L'authentification de base ou intégrée est disponible depuis la version 7.0.0 de WorkflowGen.
Authentification Auth0
L'authentification Auth0 est disponible depuis la version 7.11.0 de WorkflowGen.
Authentification MSIDV2 (Microsoft Identity Platform v2)
L'authentification MSIDV2 est disponible depuis la version 7.16.0 de WorkflowGen.
Pour le mode MSIDV2, vous devez préalablement avoir enregistré une nouvelle application dédiée (application côté serveur
) dans votre Azure Active Directory et sur votre serveur WorkflowGen en suivant les directives tel qu'indiquées dans le chapitre Configuration d'Azure Active Directory pour les scripts côté serveur.
Toutes les opérations invoquées à partir de la CLI WorkflowGen utiliseront donc le compte de l'utilisateur spécifié dans le champ Nom d’utilisateur d'impersonnification
de l'application Client Non Interactif
associée à la CLI WorkflowGen dans WorkflowGen.
Authentification Okta
L'authentification Okta est disponible depuis la version 7.13.0 de WorkflowGen.
Authentification AD FS
L'authentification AD FS est disponible depuis la version 7.11.0 de WorkflowGen.
Arguments
Options
📌 Exemples de login de base
📌 Exemples de login Auth0
📌 Exemples de login MSIDV2
📌 Exemples de login Okta
📌 Exemples de login AD FS
config
config
La commande config
vous permet de configurer la CLI.
Disponible depuis la version 7.0.0 de WorkflowGen.
current-context
current-context
Affiche le contexte actuel.
Utilisation
delete-context
delete-context
Supprime le contexte spécifié de la configuration.
Utilisation
[CONTEXT_NAME]
représente le nom donné au contexte CLI qui contient vos informations de serveur et d'utilisateur.
Argument
📌 Exemple
delete-server
delete-server
Supprime le serveur spécifié de la configuration.
Utilisation
Argument
Option
📌 Exemple
delete-user
delete-user
Supprime l'utilisateur spécifié de la configuration.
Utilisation
Argument
Option
📌 Exemple
get-contexts
get-contexts
Décrit un ou plusieurs contextes.
Utilisation
[CONTEXT_NAME]
représente le nom donné au contexte CLI qui contient vos informations de serveur et d'utilisateur.
Argument
📌 Exemple
get-servers
get-servers
Affiche les serveurs définis dans la configuration.
Utilisation
get-users
get-users
Affiche les utilisateurs définis dans la configuration.
Utilisation
rename-context
rename-context
Renomme un contexte dans la configuration.
Utilisation
[CONTEXT_NAME]
représente le nom donné au contexte CLI qui contient vos informations de serveur et d'utilisateur.
Arguments
📌 Exemple
rename-server
rename-server
Renomme un serveur dans la configuration.
Utilisation
Arguments
📌 Exemple
rename-user
rename-user
Renomme un utilisateur dans la configuration.
Utilisation
Arguments
📌 Exemple
set-context
set-context
Définit une entrée de contexte dans la configuration.
Utilisation
[CONTEXT_NAME]
représente le nom donné au contexte CLI qui contient vos informations de serveur et d'utilisateur.
Argument
Options
📌 Exemple
set-server
set-server
Définit une entrée de serveur dans la configuration.
Utilisation
Argument
Options
📌 Exemple
set-user
set-user
Définit une entrée utilisateur dans la configuration.
Utilisation
Argument
Options
📌 Exemple
use-context
use-context
Définit le contexte actuel dans la configuration.
Utilisation
[CONTEXT_NAME]
représente le nom donné au contexte CLI qui contient vos informations de serveur et d'utilisateur.
Argument
📌 Exemple
project
project
La commande project
vous permet d'exporter ou d'importer un projet WorkflowGen entier à partir d'un manifeste.
Disponible depuis la version 7.17.0 de WorkflowGen.
init
init
La commande init
vous permet de générer un fichier manifest.json
de manière interactive.
Utilisation
Options
📌 Exemples
export
export
Exporte un projet de votre serveur WorkflowGen vers un référentiel local.
Utilisation
Option
📌 Exemple
import
import
Importe un projet d'un référentiel local vers votre serveur WorkflowGen.
Utilisation
Options
📌 Exemple
show
show
Affiche le contenu d'un lien de manifeste vers un projet.
Utilisation
Option
📌 Exemple
process
process
La commande process
vous permet d'exporter (export
), d'importer (import
), d'afficher (get
), de mettre à jour (update
) ou de supprimer (delete
) un processus.
Disponible depuis la version 7.17.0 de WorkflowGen.
export
export
Exporte un processus spécifique de votre serveur WorkflowGen vers un référentiel local.
Utilisation
Arguments
Option
📌 Exemple
import
import
Importe un processus spécifique d'un référentiel local vers votre serveur WorkflowGen.
Utilisation
Argument
Options
UseVersionNumber
UseVersionNumber
<use-version-number = true>
tentera d'ajouter le processus avec le numéro de version dans le fichier XML, s'il n'existe pas déjà.<use-version-number = false>
ajoutera le processus avec le dernier numéro de version plus un (p.ex. si la dernière version actuelle est3
, définir ce paramètre surfalse
importera le processus en tant que version4
).
state
state
L'état (state
) peut être l'un des suivants :
TEST
(par défaut)ACTIVE
DEV
ARCHIVE
📌 Exemple
get
get
Affiche un ou plusieurs processus.
Utilisation
Arguments
📌 Exemple
update
update
Met à jour les informations pour un seul processus.
Utilisation
Arguments
Options
📌 Exemple
delete
delete
Supprime un seul processus par nom et version.
Utilisation
Arguments
📌 Exemple
test
test
Exécute des cas de test de vos processus
Utilisation
Arguments
Option
📌 Exemple
📌 Exemple d'un fichier de test
global-list
global-list
La commande global-list
vous permet d'exporter (export
), d'importer (import
), d'afficher (get
) ou de supprimer (delete
) une liste globale.
Disponible depuis la version 7.17.0 de WorkflowGen.
export
export
Exporte une liste globale spécifique de votre serveur WorkflowGen vers un référentiel local.
Utilisation
Argument
Option
📌 Exemple
import
import
Importe une liste globale spécifique de votre référentiel local vers votre serveur WorkflowGen.
Problème connu (#3373) : Voir les notes de version WorkflowGen 7.22.2.
Utilisation
Argument
Option
📌 Exemple
get
get
Affiche une ou plusieurs listes globales.
Utilisation
Arguments
📌 Exemple
delete
delete
Supprime une seule liste globale par nom.
Utilisation
Arguments
📌 Exemple
application
application
La commande application
vous permet d'exporter (export
), d'importer, d'afficher (get
), d'afficher les paramètres (get-parameters
) ou de supprimer (delete
) une application.
Disponible depuis la version 7.14.0 de WorkflowGen.
export
export
Exporte une application spécifique de votre serveur WorkflowGen vers un référentiel local.
Utilisation
Arguments
Option
📌 Exemple
import
import
Importe une application spécifique de votre référentiel local vers votre serveur WorkflowGen.
Utilisation
Arguments
Option
📌 Exemple
get
get
Affiche une ou plusieurs applications.
Utilisation
Arguments
📌 Exemple
get-parameters
get-parameters
Affiche les paramètres d'une application.
Utilisation
Arguments
📌 Exemple
delete
delete
Supprime une seule application par son nom.
Utilisation
Arguments
📌 Exemple
graphql
graphql
La commande graphql
vous permet d'exécuter une requête GraphQL personnalisée.
Disponible depuis la version 7.0.0 de WorkflowGen.
Utilisation
Arguments
Si la commande graphql
utilise des variables, vous devez spécifier soit --variable
et --variableCast
, soit --variableJson
. Vous ne pouvez pas utiliser --variableJson
avec les deux autres arguments et vice-versa.
📌 Exemples
En raison d'un bogue PowerShell connu au moment de l'écriture (https://github.com/PowerShell/PowerShell/issues/1995), les guillemets ("
) seront supprimés de la chaîne lors de son envoi à un exécutable natif. La solution consiste à ajouter une barre oblique inverse (\
) avant chaque guillemet ou à utiliser trois guillemets ("""
).
Dernière mise à jour