Create a Script for Download and Install Plugins in Wordpress - wordpress

In my work they install like 20 Wordpress Sites a month, so i have to download and upload a lots of plugins (always install the same plugins). So i was thinking for create a script or ssh command for download the latest versions of the plugins and installed on my Wordpress.
I was searching a demo script or something (im very new with wordpress) but i cant find something like this, maybe someone can help me or give me a idea how to do that.
Thanks

WP-CLI is a great comand-line tool that will help you to automate processes like install plugins in wordpress and much more.
WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installs and much more, without using a web browser
After install wp-cli you can open terminal change directory to your wordpress installation
cd /var/www/path-to-your-wordpress-installation
Install and activate batch of plugins
wp plugin install --activate bbpress woocommerce

Related

How to install a WordPress Website on Github

Hy,
I have one question, how i can install a Wordpress Website on github and share with other contributors, and all persons works on the same project?
Regards
All the changes you made is in wordpress store in database so, But for themes and code edit
you can init it in one folder then install wordpress , push to git,
If you already have wordpress file create repo and init on this wordpress folder,

Alternate way to install plugins in wordpress

I am running wordpress on my local using Web Matrix. I am trying to install "Types - Custom Fields and Custom Post Types Management." plugin. But this is taking forever I am seeing message "Installing Plugin Types - Custom Fields and Custom Post Types Management (1/1)" from last one hour. The problem is I am not even getting error or installation fail notification. Anybody faced this kind of issue? and Is there any other way to install this plugin instead of doing it from UI available?
Hi TolerantCoder,
if you are not able to install plugins from admin than you can download plugins from wordpress plugins Directory than extract zip file and add in you wordpress project plugins directory.
I.e: D:\wamp\www\citicollege\wp-content\plugins\
in plugins directory you can copy paste plugins and activate from admin.

'elasticsearch' is not a registered wp command

Trying to install elasticpress plugin on wordpress multisite installation. This is a business directory which is setup on a multisite installation. Where each site on the multisite is a directory dedicated to a site.
It required "WP-CLI" and "ElasticSearch" server installed. Which has been installed and are running correctly. And post that when i am trying to index the posts using the command
wp elasticpress index --setup --network-wide
which gives an error
'elasticsearch' is not a registered wp command
Can someone help?
wp plugin install {plugin_name} {arguments}
Make sure the plugin is network activated across all sites.

can't install woocommerce plugin on LOCALHOST

can someone who has experience with wordpress help me??
I have been trying to install WooCommerce - excelling eCommerce plugin on my wordpress theme, but since I'm working on localhost I think this is causing me some problems. When I try to download it directly from wordpress dashboard it starts with the normal procedure and then it just stays like this and nothing happens: Downloading install package from https://downloads.wordpress.org/plugin/woocommerce.2.1.12.zip…
while when I download the plugin separately and upload the .zip file in wordpress, I get this message: Are you sure you want to do this? Please try again.
when I click on Please try again, I get redirected in the step of choosing the file to upload and then if I do the same I get stuck on an infinite loop of doing the same things which lead me nowhere...
The solution to the problem is as follows:
Download the plugin as .zip
Unzip the .zip file
Copy the plugin files to the plugins folder of Wordpress
Open your Wordpress website and activate the plugin

Unable to git pull Wordpress' folders and sub folders from OpenShift repo using Git

I created a wordpress app hosted on Openshift from the CLI. I'm on a Win7 PC.
After that I made several changes to my Wordpress site from the Wordpress Admin Dashboard. Now I want to pull the whole app to my local machine. I did a git pull which fetched the only folders and files sans the actual wordpress app. When I tried to run it using a WAMP, there's no wordpress site to be started. When I again ran
git pull
The message I get is
Already up-to-date
I'm a rookie and I want to make changes to my wordpress site locally and then push them to the server. Please help me out here.
if you are installing plugins & themes via the wordpress admin, they are not in git, they are installed in your $OPENSHIFT_DATA_DIR, and are saved there outside of git, you can see in this script where it does the symlinks into your wordpress installation: https://github.com/openshift/wordpress-example/blob/master/.openshift/action_hooks/deploy
If you want those in git also, you would need to modify that script to remove the symlinks, and then put your plugins & themes in git and do a push.

Resources