> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Run Ingestion Pipeline Via CLI with Basic Auth

> Run Collate ingestion pipelines from the command line using Basic Authentication by obtaining a JWT token and configuring your workflow securityConfig.

# Run Ingestion Pipeline Via CLI with Basic Auth

Collate comes with a Username & Password Login Mechanism.

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

From `0.12.1` Collate 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`.

## Obtain 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 Collate 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/collatedocs/bKBGXz6FBahnppp1/public/images/ai-2.0/admin-guide/other/access-bots.png?fit=max&auto=format&n=bKBGXz6FBahnppp1&q=85&s=ba244f8e7fe4316cb3d9c44b749661c2" alt="Access bot" width="2996" height="1416" data-path="public/images/ai-2.0/admin-guide/other/access-bots.png" />

2. Search and select **ingestion-bot**.

   <img src="https://mintcdn.com/collatedocs/bKBGXz6FBahnppp1/public/images/ai-2.0/admin-guide/other/bot-list.png?fit=max&auto=format&n=bKBGXz6FBahnppp1&q=85&s=71e813622fdf095f0cddbda83e01caae" alt="Select ingestion bot" width="2801" height="1206" data-path="public/images/ai-2.0/admin-guide/other/bot-list.png" />

3. Copy the Collate JWT token and save it for later use.

   <img src="https://mintcdn.com/collatedocs/bKBGXz6FBahnppp1/public/images/ai-2.0/admin-guide/other/ingestion-jwt-token.png?fit=max&auto=format&n=bKBGXz6FBahnppp1&q=85&s=e5f9aa88e2a8a452e4f3e4f7c29a47f7" alt="bot-token" width="2800" height="1260" data-path="public/images/ai-2.0/admin-guide/other/ingestion-jwt-token.png" />

## Add JWT Token into the Workflow Config

Now Paste 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
```
