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

# Installation

> Import cartridges, assign them to your site, and import metadata

## Import Cartridges

1. Download the cartridge source code.
2. Extract the directory and move the **link\_kleep** folder at the same level as SFRA.
3. You can remove the SFRA project from the Kleep connector (`storefront-reference-architecture` folder) — it is only used for testing.

<img src="https://mintcdn.com/kleepai/A9OHiEXCm7A82FUt/images/sfcc/image.png?fit=max&auto=format&n=A9OHiEXCm7A82FUt&q=85&s=e63c269d7d76eb2faaf8a1442422e414" alt="image.png" width="1106" height="290" data-path="images/sfcc/image.png" />

This should be the rendered cartridges structure:

<img src="https://mintcdn.com/kleepai/taAv0usV4Q0HyYiD/images/sfcc/image1.png?fit=max&auto=format&n=taAv0usV4Q0HyYiD&q=85&s=f48167d08d0bc546ea7a13f7a88eb2dc" alt="image.png" width="726" height="858" data-path="images/sfcc/image1.png" />

4. Install dependencies:

```bash theme={null}
cd /path/to/link_kleep
npm install
```

5. Compile the frontend:

```bash theme={null}
npm run compile
```

6. Create a `dw.json` file in the same directory:

```json theme={null}
{
    "hostname": "...",
    "username": "...",
    "password": "...",
    "version": "..."
}
```

* **hostname** — your sandbox, e.g. `zzaa-001.sandbox.us01.dx.commercecloud.salesforce.com`
* **username / password** — your account manager credentials
* **version** — the active code version in **Administration > Code Deployment**, e.g. `version1`

7. Upload the cartridges:

```bash theme={null}
npm run uploadCartridges
```

8. Go to **Administration > Development Setup > Folder Browser > Cartridges** and verify the upload.

## Assign Cartridges to the Site

1. Go to **Administration > Sites > Manage Sites**. Select your site from the **Storefront Sites** list:

<img src="https://mintcdn.com/kleepai/taAv0usV4Q0HyYiD/images/sfcc/image2.png?fit=max&auto=format&n=taAv0usV4Q0HyYiD&q=85&s=6997b2a6015a415c0d532aa531c074b9" alt="image.png" width="1055" height="489" data-path="images/sfcc/image2.png" />

2. Select the **Settings** tab. At the beginning of the cartridge path, add: `int_kleep_sfra:int_kleep`

<img src="https://mintcdn.com/kleepai/taAv0usV4Q0HyYiD/images/sfcc/image3.png?fit=max&auto=format&n=taAv0usV4Q0HyYiD&q=85&s=caaf757ebdabeb66f42c3b8b9936af5b" alt="image.png" width="826" height="487" data-path="images/sfcc/image3.png" />

3. Go to **Administration > Sites > Manage Sites** and click the link in the **Manage the Business Manager site** section.

<img src="https://mintcdn.com/kleepai/taAv0usV4Q0HyYiD/images/sfcc/image4.png?fit=max&auto=format&n=taAv0usV4Q0HyYiD&q=85&s=c12dce5c34d7a600ff94b2a2df1b4f10" alt="image.png" width="885" height="508" data-path="images/sfcc/image4.png" />

4. Enter `bc_kleep:int_kleep` in the Cartridges textbox (separated by `:` if using multiple cartridges):

<img src="https://mintcdn.com/kleepai/taAv0usV4Q0HyYiD/images/sfcc/image5.png?fit=max&auto=format&n=taAv0usV4Q0HyYiD&q=85&s=b81dd667cfef1178d65e38fd2aad2ea1" alt="image.png" width="857" height="545" data-path="images/sfcc/image5.png" />

## Import Metadata

1. Go to **Administration > Site Development > Site Import & Export**.
2. Upload `kleep-metadata.zip` containing the metadata folder.

<img src="https://mintcdn.com/kleepai/taAv0usV4Q0HyYiD/images/sfcc/image6.png?fit=max&auto=format&n=taAv0usV4Q0HyYiD&q=85&s=753a06c31d5682a8e6e550809d01ba46" alt="image.png" width="1321" height="685" data-path="images/sfcc/image6.png" />

3. Select `kleep-metadata.zip` and finish the import.
