Simple Shellscript for CLI commands in Shopware. You can set up multiple Shops and execute multiple commands like sw:cache:clear with just an selection via number (1 for Theme compiling etc.)
- You need to set the right path of your Shopware Installation you want to use ($DOCROOT - line 4)
- Set the right permissions (for example
chmod u+x sw.sh
) - Optional:
sudo ln -s /path/to/repo/run.sh /usr/local/bin/sw-cli
to create global executable - Run script by ./run.sh or sw-cli
Optional: Uncomment line 6 to 31 for multiple shop selection