# WorkflowGen CLI

## Interactive mode

### Step 1: Register a new native application

1. In the Auth0 portal **Applications** section, click **Create Application**.<br>
2. Fill in the form:
   * **Name:** `WorkflowGen CLI`
   * **Type:** `Native` <br>
3. Click **Create** at the bottom of the page.

You've now registered a new native application in Auth0.

### Step 2: Add a callback URL

On the **Settings** tab, scroll down to the **Allowed Callback URLs** and add the URL `http://127.0.0.1:8888/callback`.

{% hint style="info" %}
Port `8888` is defined by default; you can change it if it's already in use on your computer.
{% endhint %}

### Step 3: Verify the grant types

In **Settings > Advanced Settings > Grant Types**, make sure that the `Implicit`, `Authorization Code`, and `Refresh Token` checkboxes are checked.

### Review the registration

Since all applications in a domain can automatically access each other, your native application inherits access to the GraphQL API. Here's a review of all the information you need:

* A client ID, which can be found on the native application's **Settings** tab.
* An Auth0 domain name, which can be found on the native application's **Settings** tab.

{% hint style="success" %}
All of this information must be given to the users who will be using the WorkflowGen CLI.
{% endhint %}

## Non-interactive mode

The configuration of non-interactive mode is the same as in the [Auth0 configuration for server-side scripts](/tech/9.3/auth0-integration/server-side-scripts.md) section.

Here's a review of the information you'll need:

* A client ID, which can be found on the registered application's parameters page.
* A client secret, which can be found on the registered application's parameters page.
* The domain, which can be found on the registered application's parameters page.

{% hint style="success" %}
You can now use the WorkflowGen CLI in `Client credentials` mode.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.workflowgen.com/tech/9.3/auth0-integration/workflowgen-cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
