WP-CLI – A command line interface for WordPress is a set of command-line tools for managing WordPress installations. You can update plugins, configure multisite installs and much more, without using a web browser.
Setting up path for mysql command (For MAC OS Terminal)
export PATH=$PATH:/Applications/MAMP/bin/apache2/bin/mysql
Configure wp-config.php file at core WordPress
wp core config --dbname=woo --dbuser=root --dbpass=root --dbhost=127.0.0.1
Start installation of WordPress for your domain/hostname
wp core install --url=http://nishant.local --title=Woo --admin_user=username_here --admin_password=password_here [email protected]
Search plugins which are freely available at WordPress.org community
wp plugin search plugin_slug
Install plugin from WordPress.org using slug
wp plugin install plugin_slug
Install plugin from WordPress.org using slug and activate
wp plugin install plugin_slug --activate
Remove already install plugin from WordPress site
wp plugin delete plugin_slug