Site logo

Archived topic

How to activate addons with the wp-cli?

2 replies · Started by Roberto Enrique on April 14, 2017

Viewing posts 1–3 of 3

Hi! I've been playing around with the wp-cli and customized a script to automate the installation of my base setup when doing websites. You can see the script here:

https://gist.github.com/protorob/539c383ba4b5a5a0f386417f9234cbd2

Is it possible to activate the premium addons from the command line?

That looks awesome!

You might be able to do something like this:

wp option update generate_package_backgrounds 'activated'
wp option update generate_package_blog 'activated'
wp option update generate_package_copyright 'activated'
wp option update generate_package_disable_elements 'activated'
wp option update generate_package_elements 'activated'
wp option update generate_package_menu_plus 'activated'
wp option update generate_package_secondary_nav 'activated'
wp option update generate_package_site_library 'activated'
wp option update generate_package_spacing 'activated'

Perfect!

This archived topic is closed to new replies.