Shopware 6: Docker exec system:config:set command fails with value containing spaces in Git Bash script

35 Views Asked by At

I'm running Shopware 6 in Docker and trying to set a config value using the system:config:set command:

docker exec  $SHOPWARE_CONTAINER_ID php bin/console system:config:set -j $PLUGIN_NAME.config.autoPublishStars 3 Stars

This works fine for other values, but fails when the value contains spaces between 3 and Stars.

Too many arguments to "system:config:set" command, expected arguments "key" "value".

It seems to interpret the spaced value as multiple arguments rather than a single string value. I have also tried "3 Stars" and 3Stars but none of these worked. Kindly, let me know how I can assign the string to the config property.

0

There are 0 best solutions below