Reputation: 603
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
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
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
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
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