> For the complete documentation index, see [llms.txt](https://docs.workflowgen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.workflowgen.com/tech-fr/integration-okta/cli-workflowgen.md).

# CLI WorkflowGen

## Mode interactif

### Créez une nouvelle application native

1. Dans votre portail de développeur Okta, accédez à l'élément **Applications** sous le menu **Applications**, puis cliquez sur **Create App Integration**.<br>
2. Sélectionnez la méthode de connexion **OIDC - OpenID Connect**, sélectionnez **Native Application** comme type d'application, puis cliquez sur **Next**.\
   \
   ![](https://content.gitbook.com/content/XW3ui4VE44AdDSA42VSk/blobs/1PgihbtmlUilwyeTmFZr/image.png)<br>
3. Entrez les informations suivantes :

   * **Name :** `WorkflowGen CLI`&#x20;
   * **Grant type :** Cochez `Authorization Code` et `Refresh token`
   * **Sign-in redirect URIs:** Définissez l'URL comme  `http://127.0.0.1:8888/callback` <br>

     ✏️ **Note :** Le port `8888` est défini par défaut; vous pouvez le modifier s'il est déjà utilisé sur votre ordinateur.
   * **Sign-out redirect URIs :** Ne définissez pas d'URL. Effacez le champ s'il y a une valeur par défaut.
   * **Controlled access** : Cochez `Allow everyone in your organization to access`

   \
   ![](https://content.gitbook.com/content/XW3ui4VE44AdDSA42VSk/blobs/VfVBVo9fdufpf6l4bp65/image.png)\
   \
   ![](https://content.gitbook.com/content/XW3ui4VE44AdDSA42VSk/blobs/eQvz5HYDEfBjGzys6N8v/image.png)<br>
4. Cliquez sur le bouton **Save**.

### Vérifiez l'inscription

Si vous avez configuré l'authentification déléguée à Okta sur votre serveur WorkflowGen, vous devez avoir une politique d'accès sur votre serveur d'autorisation Okta à partir de l'API WorkflowGen GraphQL qui permettra à tous les utilisateurs configurés d'y accéder; il n'y a plus rien à faire du côté d'Okta. Voici un résumé des informations dont il vous faut :&#x20;

* Un ID client, qui se trouve dans l'onglet **General** de la page de l'application native CLI WorkflowGen.
* Un point de terminaison des métadonnées, qui consiste en la valeur de la propriété **Metadata URI** de l'onglet **Settings** de votre serveur d'autorisation WorkflowGen GraphQL API avec `/.well-known/oauth-authorization-server` remplacé par `/.well-known/openid-configuration`.

{% hint style="success" %}
Toutes ces informations doivent être données aux utilisateurs qui utiliseront la CLI WorkflowGen.
{% endhint %}

## Mode non interactif

La configuration du mode non interactif est la même que dans la section sur la [configuration d'Okta pour les scripts côté serveur.](/tech-fr/integration-okta/scripts-cote-serveur.md)

Voici un résumé des informations dont il vous faut :

* Un ID client, qui se trouve dans l'onglet des paramètres de l'application inscrite.
* Une clé secrète client, qui se trouve dans l'onglet des paramètres de l'application inscrite.
* Le domaine, qui se trouve dans l'onglet des paramètres de l'application inscrite.

{% hint style="success" %}
Vous pouvez désormais utiliser la CLI WorkflowGen en mode `Client credentials`.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.workflowgen.com/tech-fr/integration-okta/cli-workflowgen.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
