mixa_ru
mixa_ru

Reputation: 603

Install Sylius without DEMO data

What is the way to install Sylius without any demo products? During default installation following official documentation I did not notice any options not to install demo data.

Upvotes: 1

Views: 984

Answers (4)

Daf
Daf

Reputation: 11

Actually, you just have to answer "no" when prompted (during the installation with bin/console sylius:install)

"Loading sample data for environment dev from suite default. Warning! This action will erase your database. Continue? (y/N) n Cancelled loading sample data."

Upvotes: 1

Neekobus
Neekobus

Reputation: 2038

Unfortunatly, today (in 2024), the sample data are automatically loaded with the bin/console sylius:install:database.

My workaround is to force a fixture-suite that do not exists :

bin/console sylius:install:database --fixture-suite=nope

then I need to finish the installation

bin/console sylius:install:setup

Upvotes: 1

user3687941
user3687941

Reputation: 146

I was looking for the same thing. This is the link for the latest release :

https://docs.sylius.com/en/latest/cookbook/configuration/installation-commands.html

Exclude this step : Loading sample data

Upvotes: 0

czende
czende

Reputation: 1093

You can follow these steps

http://docs.sylius.org/en/latest/cookbook/installation-commands.html

and exclude step about loading sample data.

Upvotes: 0

Related Questions