# Test data

You can populate your Shopware environment with realistic B2B scenarios using the B2B Demo Data Plugin. This allows you to test complex hierarchies, sales agent assignments, and customer roles immediately.

### Installation via CLI

The demo data plugin can now be installed more flexibly. While you can still specify a branch, the command will now allow you to select the appropriate version interactively if the argument is omitted.

We have streamlined our branches to match the major Shopware versions: `shopware-6.5`, `shopware-6.6`, and `shopware-6.7`.

```shellscript
# 1. Install the plugin
# You can run this without arguments to select the version in the CLI:
bin/console b2b:test-data:install-plugin

# OR specify the major version branch directly:
bin/console b2b:test-data:install-plugin --branchName shopware-6.7

# 2. Activate the plugin
bin/console plugin:activate b2bdemodata

# 3. Create the demo data
bin/console b2b:test-data:create
```

## Install via Composer

Alternatively, you can manage the plugin via Composer:

```shellscript
composer require b2b-sellers/demodata
```

## Available Commands

Once installed, use these commands to manage your test environment:

* Create Data: `bin/console b2b:test-data:create`
* Reset/Delete Data: `bin/console b2b:test-data:reset -f`

## Demo Data Overview

The plugin creates a comprehensive B2B ecosystem.&#x20;

Below are the primary test accounts (Password for all: `b2bsellers`).

### Sales Agents (Luxon Blech-Handel)

| **Role**     | **Name**       | **User**            | **Permissions**                |
| ------------ | -------------- | ------------------- | ------------------------------ |
| Field Staff  | Markus Bauer   | `m.bauer@luxon.de`  | Access to 2 assigned employees |
| Office Staff | Michael Sommer | `m.sommer@luxon.de` | Supervisor (Full Rights)       |

### B2B Customer: EKTEK GmbH

A complex multi-company structure with shared addresses and specific roles.

| **Name**        | **User**                | **Role**    | **Access Scope**                   |
| --------------- | ----------------------- | ----------- | ---------------------------------- |
| Henk Becker     | `henk.becker@ektek.com` | CEO / Admin | All EKTEK subsidiaries             |
| Mareike Schmidt | `m.schmidt@ektek.com`   | Purchasing  | Spare-Parts & Hausgeräte           |
| Klaus Herpich   | `k.herpich@ektek.com`   | Accounting  | Spare-Parts, Training & Hausgeräte |
| Martin Müller   | `m.mueller@ektek.com`   | Installer   | Ektek Spare-Parts GmbH only        |

### Additional Test Profiles

* Private Customer: Celina Wagner (`c.wagner@web.de`) — No B2B platform access.
* Single Employee B2B: Max Wagner (`ma.wagner@allinone-stahl.de`) — AllInOne Stahlhandel AG.
* Small Business: Anna Meister (`a.meister@mustermann.de`) — Max Mustermann GmbH.

{% hint style="info" %}
For a visual walkthrough on setting up test customers, please refer to our "Install and Configuration Guide Video".
{% endhint %}
