> ## Documentation Index
> Fetch the complete documentation index at: https://openmetadata-add-ontology-explorer-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# How To Run Ingestion Pipeline Via CLI with Basic Auth

# How To Run Ingestion Pipeline Via CLI with Basic Auth

Out of the box, OpenMetadata comes with a Username & Password Login Mechanism.

<CardGroup cols={1}>
  <Card title="Basic Authentication" href="/v1.12.x/deployment/security/basic-auth">
    Basic Authentication
  </Card>
</CardGroup>

From `0.12.1` OpenMetadata has changed the default `no-auth` to `Basic` auth, So to run any ingestion pipeline from CLI you will have to pass the `jwtToken` and `authProvider` in the `securityConfig`.

## How to get the JWT token

<Note>
  **Note**: The **Bots** tile under **Settings** is only visible to users with Admin privileges. If you don't see it, ask your organization's OpenMetadata Admin to generate a bot token for you or grant you Admin access.
</Note>

**1.** Go to the `settings` page from the `activity bar` Section. Click on the `Bots` and you will see the list of bots, then click on the `ingestion-bot`.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/g6-B4-RzkeYdYydn/public/images/cli-ingestion-with-basic-auth/settings-bot.png?fit=max&auto=format&n=g6-B4-RzkeYdYydn&q=85&s=c18dd3d38eb8aeeffcde7ad3b43bc895" alt="settings-bot" width="2943" height="1424" data-path="public/images/cli-ingestion-with-basic-auth/settings-bot.png" />

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/g6-B4-RzkeYdYydn/public/images/cli-ingestion-with-basic-auth/bot-list.png?fit=max&auto=format&n=g6-B4-RzkeYdYydn&q=85&s=ac9522c0fc90235130f2644a9a9717c4" alt="bot-list" width="2943" height="1424" data-path="public/images/cli-ingestion-with-basic-auth/bot-list.png" />

**2.** You will be redirected to the `ingestion-bot` details page. there you will get the JWT token, click on the copy button and copy the JWT token.

<img src="https://mintcdn.com/openmetadata-add-ontology-explorer-docs/g6-B4-RzkeYdYydn/public/images/cli-ingestion-with-basic-auth/bot-token.png?fit=max&auto=format&n=g6-B4-RzkeYdYydn&q=85&s=bbb414461f7e1147054fa945d002a996" alt="bot-token" width="2943" height="1424" data-path="public/images/cli-ingestion-with-basic-auth/bot-token.png" />

Alright, now you have the JWT token, let see how to add that into the workflow config.

## How to add JWT token into the workflow config

Now Past the copied JWT Token into your pipeline `securityConfig`, So your final workflow config will look like this.

> AuthProvider Should be **openmetadata** i.e authProvider: openmetadata

```yaml theme={null}
workflowConfig:
  openMetadataServerConfig:
    hostPort: http://localhost:8585/api
    authProvider: openmetadata
    securityConfig:
      jwtToken: 'eyJraWQiO...'
```

Now you can run the pipeline by running.

```commandline theme={null}
metadata ingest -c ./pipeline_name.yaml
```
