[Support request] How to activate addons with the wp-cli?

Home Forums Support How to activate addons with the wp-cli?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #305764
    Roberto Enrique

    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?

    #305962
    Tom
    Lead Developer
    Lead Developer

    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_colors 'activated'
    wp option update generate_package_copyright 'activated'
    wp option update generate_package_disable_elements 'activated'
    wp option update generate_package_hooks 'activated'
    wp option update generate_package_import_export 'activated'
    wp option update generate_package_page_header 'activated'
    wp option update generate_package_secondary_nav 'activated'
    wp option update generate_package_spacing 'activated'
    wp option update generate_package_typography 'activated'
    wp option update generate_package_sections 'activated'
    wp option update generate_package_menu_plus 'activated'
    #306463
    Roberto Enrique

    Perfect!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.