more options for system:install --basic-setup
Description
I'd like to get some more options on default install-command with basic-setup.
For us it's important to specify defaultLanguage, cause it is German instead of English.
Hello @tinect,
thanks for the feedback. :+1: We want to gradually improve the system:install command, until it can replace the recovery install. PRs are welcome :-)
You can still use the cli installer from the recovery package. Just run php public/recovery/install/index.php. An example: https://github.com/shopware/platform/issues/223#issuecomment-537514926
@pweyck unfortunately the referenced command in shopware/platform#223 is not working as the production template does not ship public/recovery/install/data/version :(
@JoshuaBehrens You can generate that file yourself:
https://github.com/shopware/production/blob/4d56a22da4942c4db767e0dc2daac11aff93dae8/bin/package.sh#L32-L34
Nice script. I wrote it manually and got it working but unfortunately it is not a simple one-liner
Nice script. I wrote it manually and got it working but unfortunately it is not a simple one-liner
See https://github.com/shopware/production/issues/15
Hello,
thank you for creating this issue. I have opened a ticket on our Issue Tracker for you. See the ticket link: https://issues.shopware.com/issues/NEXT-7251
Please use this ticket to track the state of your issue.
Description I'd like to get some more options on default install-command with
basic-setup. For us it's important to specify defaultLanguage, cause it is German instead of English.
You can specify shop locale, by passing --shop-locale variable to the cli installer.
php public/recovery/install/index.php \
--no-interaction \
--db-user=root \
--db-password=password \
--db-name="shopware" \
--shop-locale=de-DE \
--shop-country=AUT \
--shop-host=shopware.test \
--shop-path="" \
--shop-name='CLI Installer test' \
--shop-currency=EUR \
--admin-username=demo \
--admin-password=demo \
[email protected] \
--admin-locale=de-DE \
--admin-firstname=Max \
--admin-lastname=Mustermann
Yes. But you are forced to have the shopware/recovery package for this :(
@ddedic
How do you use this? We found https://issues.shopware.com/issues/NEXT-7241 that states its just:
system:install --shop-locale de-DE --shop-currency USD
But it doesnt work.
The help shows nothing about --shop-local. We have Shopware 6.4.6.1 cloned from prodction and installed via composer.
For the production template the issue was fixed in this commit: https://github.com/shopware/production/commit/4a0cd7c022c3971d7e8dacaa4a1ec5fa6c954f2e
sadly that commit is not yet released, but it will be released in the upcoming version.
Changing languages works now since some releases