Using WP-CLI : A Command line interface for WordPress

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

Nishant Vaity

Knowledgeable and skilled Technology Lead with an ability of software development and supervision. Possess a Bachelor of Science (BS) in Information Technology along with 11+ years of experience with hands-on coding and team management. By profession, I am a Software Engineer, Technology Mentor & Entrepreneur. Passionate about the technologies I use and always eager to share & learn more from that passion.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.