Shopware shell commands

Running specific commands from the Linux shell makes routine maintenance so much easier!
In the following article I share shell commands that I use often.

Update Shopware from shell

Example of updating Shopware 6.4.3.0 to version 6.4.3.1:

wget "https://www.shopware.com/en/Download/redirect/version/sw6/file/update_v6.4.3.1_699fd2c5cd007a5663c1f74759888421509339c4.zip"
unzip update_v6.4.3.1_699fd2c5cd007a5663c1f74759888421509339c4.zip
/usr/bin/php7.4 public/recovery/update/index.php
rm update_v6.4.3.1_699fd2c5cd007a5663c1f74759888421509339c4.zip

Create administrator account from shell

/usr/bin/php7.4 bin/console user:create "username"

Change password for specific account from shell

/usr/bin/php7.4 bin/console user:change-password "username"