> ## 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.

# Instalacja

> Importuj kartridże, przypisz je do swojej witryny i importuj metadane

## Importowanie kartridży

1. Pobierz kod źródłowy kartridża.
2. Wyodrębnij katalog i przenieś folder **link\_kleep** na tym samym poziomie co SFRA.
3. Możesz usunąć projekt SFRA z konektora Kleep (folder `storefront-reference-architecture`) — jest używany tylko do testów.

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

Taka powinna być wyrenderowana struktura kartridży:

<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. Zainstaluj zależności:

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

5. Skompiluj frontend:

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

6. Utwórz plik `dw.json` w tym samym katalogu:

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

* **hostname** — Twoje środowisko sandbox, np. `zzaa-001.sandbox.us01.dx.commercecloud.salesforce.com`
* **username / password** — dane uwierzytelniające Twojego account managera
* **version** — aktywna wersja kodu w **Administration > Code Deployment**, np. `version1`

7. Prześlij kartridże:

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

8. Przejdź do **Administration > Development Setup > Folder Browser > Cartridges** i zweryfikuj przesłanie.

## Przypisywanie kartridży do witryny

1. Przejdź do **Administration > Sites > Manage Sites**. Wybierz swoją witrynę z listy **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. Wybierz zakładkę **Settings**. Na początku ścieżki kartridża dodaj: `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. Przejdź do **Administration > Sites > Manage Sites** i kliknij link w sekcji **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. Wpisz `bc_kleep:int_kleep` w polu tekstowym Cartridges (oddzielone `:` przy użyciu wielu kartridży):

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

## Importowanie metadanych

1. Przejdź do **Administration > Site Development > Site Import & Export**.
2. Prześlij `kleep-metadata.zip` zawierające folder metadanych.

<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. Wybierz `kleep-metadata.zip` i zakończ import.
