mainwp / mainwp-child

The MainWP Child plugin is installed on the WordPress sites that you want to control from the MainWP Dashboard.
https://mainwp.com
GNU General Public License v3.0
93 stars 54 forks source link

WP CLI commands to allow remote activation #285

Closed planetahuevo closed 2 years ago

planetahuevo commented 2 years ago

Is your feature request related to a problem? Please describe. Right now it is not possible to add a site into mainwp securely using ssh and command line. We can add the plugin on the child site, but we cannot get the security key.

Describe the solution you'd like Using a wp cli command, we could "activate the security key option" and get the key too.

For example: wp mainwpchild securitykey --activate That will return the key if already activated or activate it and then return the security key.

With that, we could ssh into our mainwp installation and use wp cli to add the new site including the security key.

Other wp cli commands could be added, for example to reset the database options of mainwp chlid plugin (which could fix a lot problems with connections) but that could be for another moment. :)

What do you think?

bogdan-mainwp commented 2 years ago

Hi @planetahuevo,

please feel free to join the MainWP Community and post your feature suggestion to the Features section.