XF 2.2 Automatically upgrading all addons (CLI)

mm-tech

New member
Hi,
I want to automate my Xenforo deployment process.
My plan is to deploy my xenforo source files and then to upgrade all addons via CLI-script.

I know I can upgrade a single addon noninteractively by executing
Code:
php8.0  cmd.php xf:addon-upgrade -n  addon_id
but is there a way to apply all available addon upgrades/installations via cli?
 
Last edited:
Okay, I can do it via shell, this seems to work:
Code:
cd $PATH_TO_XENFORO
find src/ -name 'addon.json' | sed 's/.*addons\///' | sed 's/\/addon.json//' |  xargs -L 1 php8.0 cmd.php xf-addon:install -n
find src/ -name 'addon.json' | sed 's/.*addons\///' | sed 's/\/addon.json//' | xargs -L 1 php8.0 cmd.php xf-addon:upgrade -n
 
Back
Top Bottom