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

# occtoo demo

> Fill an organization with realistic demo data, and remove it again

Use `occtoo demo` to fill an organization with realistic data so you can try Occtoo out, and to remove it again afterwards.

## Profiles

A profile is a kind of customer. Each profile creates a set of sources:

| Profile | Source | Default entries | Properties |
| - | - | - | - |
| `ecommerce` | `demoProducts` | 200 | name, brand, category, material, tags, active, launchedAt |
| `ecommerce` | `demoVariants` | 800 | productId, color, size, ean, weightGrams |
| `ecommerce` | `demoPrices` | 1600 | variantId, currency, amount, onSale, validFrom |
| `ecommerce` | `demoStock` | 800 | variantId, warehouse, quantity, updatedAt |
| `marketing` | `demoCustomers` | 500 | email, firstName, lastName, city, country, language, interests, loyaltyTier, newsletter, signedUpAt |
| `marketing` | `demoCampaigns` | 20 | name, channel, audience, budget, startsAt, endsAt |
| `marketing` | `demoOrders` | 1500 | customerId, campaignId, status, channel, itemCount, total, currency, orderedAt |

Run `occtoo demo list` to see the same list from the CLI.

## Seed demo data

```bash theme={null}
occtoo demo seed
echo '{}' | occtoo demo seed ecommerce
echo '{"entries": {"demoProducts": 50, "demoVariants": 200}}' | occtoo demo seed ecommerce
```

Creates the sources of a profile and fills them with generated entries. In a terminal, leave out the profile to pick one from a list and choose the number of entries per source. Otherwise, pass the entry counts as JSON. A source you leave out gets its default number of entries.

Every source id starts with `demo`, and the entries are the same on every run. Seeding again overwrites the entries instead of adding new ones.

## Remove demo data

```bash theme={null}
occtoo demo cleanup
occtoo demo cleanup ecommerce --yes
```

Deletes the sources that `demo seed` created, with their entries. Leave out the profile to remove the sources of every profile.

* Only sources that `demo seed` created are touched. A source with a demo id that holds something else is left alone.
* `cleanup` removes the entries of a source, waits until they are gone, and then deletes the source.
* The API refuses to delete a source that a card definition uses. Delete the card definition first.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.