1

The Magento CLI application allows you to set store URLs directly, like so: bin/magento setup:store-config:set \ --base-url="http://example.dev/" --base-url-secure="https://example.dev/"

But how can you set the store URL for the second Magento store? I've tried setting the MAGE_RUN_CODE, like so, but this only changed the default base store.

bin/magento setup:store-config:set \ --magento-init-params="MAGE_RUN_CODE=otherstore&MAGE_RUN_TYPE=website" \ --base-url="http://example2.dev/" --base-url-secure="https://example2.dev/"

Is there something I'm missing? Is it possible to set store config options for stores other than the default store?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.