I want to install a plugin using wp-cli (or anything else) on a WordPress based website. I have URL, admin-user, admin-pass only. (no FTP/ssh). I want to do it programmatically, without going into the browser. I am able to do so on my local WordPress install.
1 Answer
At the risk of stepping into the unknown, I reckon that you are over-complicating things-full remote access to the WP database sounds like the most effective solution. What could you not do if you had access to the database?
Having said that, you have a duty to have done your own research, and to have explained what you have tried &/or how you have approached a solution. For instance, have you looked at any of the free and/or “open source” solutions (the five minutes I spent on research revealed “MainWP” or “Shift8 Remote Management” as possible candidates). I sense that you have come in search of the holy grail, and while people are only too happy to assist you, there is no such thing as a “free lunch”.
-
Hi @Tedinoz, The main thing is file management here. I want to install a plugin on a remote site (programmatically) from my server using any solution (no matter, wp/php or any other app like wp-cli). I have wp-admin access to that site, I can do that by going to browser, but I want to do it from server, not by going to browser. don't know if wp-cli is installed on that server or not. This is where wp-cli failed. (I have tried wp-cli) Oct 5, 2018 at 18:10
-
Both of above plugins require a plugin already installed on remote site, first-step. Which I want to do programmatically. Oct 5, 2018 at 18:12
-
similar question, but with no answer unfortunately. wordpress.stackexchange.com/questions/275567/… Oct 5, 2018 at 18:25
-
-
Selenium. Proof positive that if you have the admin name and password, then the world is your oyster. This YouTube video “Selenium Java Tests with WordPress” shows how installing a plugin would be like falling off a log. This version is Java, but Selenium is available in several incarnations, I believe.– TedinozOct 6, 2018 at 10:38
plugin->add
? What's the context behind this, or the problem this solves?