Archived topic
WP-CLI to activate GP Premium?
5 replies · Started by Mike on June 22, 2019
Is there any way to use WP-CLI (or bash) to activate GP Premium plugin?
Hi there,
Does this help?
https://generatepress.com/forums/topic/how-to-activate-addons-with-the-wp-cli/
Let me know :)
I've done some digging and found some related options, set them, and things appear to be working. Here's what seems to work:
wp option update gen_premium_license_key $GPP_LICENSE
wp option update gen_premium_license_key_status valid
Just wanted to see if this kind of hacking around will not just create more problems down the line.
I'm not sure if the license thing will actually work, as there's no communication between server when you do it through WP-CLI. When you click the "Save" button under the license key, we validate the license on our end before sending the "valid" status back to your site.
Appears to work, I could create a wp-cli package and share if I could get the right call to validate, if that’s cool with you.
That would be awesome :)