> ## 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ér cartridges, tildel dem til dit site og importér metadata

## Importér Cartridges

1. Download cartridge-kildekoden.
2. Udpak mappen og flyt **link\_kleep**-mappen på samme niveau som SFRA.
3. Du kan fjerne SFRA-projektet fra Kleep-connectoren (`storefront-reference-architecture`-mappen) — det bruges kun til testning.

<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" />

Dette bør være den renderede cartridge-struktur:

<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ér afhængigheder:

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

5. Kompilér frontend:

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

6. Opret en `dw.json`-fil i samme mappe:

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

* **hostname** — dit sandbox, f.eks. `zzaa-001.sandbox.us01.dx.commercecloud.salesforce.com`
* **username / password** — dine account manager-legitimationsoplysninger
* **version** — den aktive kodeversion i **Administration > Code Deployment**, f.eks. `version1`

7. Upload cartridges:

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

8. Gå til **Administration > Development Setup > Folder Browser > Cartridges** og verificér uploaden.

## Tildel Cartridges til sitet

1. Gå til **Administration > Sites > Manage Sites**. Vælg dit site fra listen **Storefront Sites**:

<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. Vælg fanen **Settings**. I begyndelsen af cartridge-stien tilføjes: `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. Gå til **Administration > Sites > Manage Sites** og klik på linket i sektionen **Manage the Business Manager site**.

<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. Indtast `bc_kleep:int_kleep` i tekstboksen Cartridges (adskilt med `:` hvis du bruger flere 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ér Metadata

1. Gå til **Administration > Site Development > Site Import & Export**.
2. Upload `kleep-metadata.zip` indeholdende metadatamappen.

<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. Vælg `kleep-metadata.zip` og afslut importen.
