• About Us
  • Contact Us
  • Privacy Policy
  • Advertise
Sunday, December 3, 2023
  • Login
No Result
View All Result
IT Business Review
TELEGRAM
  • News
  • Articles
  • Reviews
  • How Tos
  • Best Picks
  • Opinions
  • Podcasts
  • News
  • Articles
  • Reviews
  • How Tos
  • Best Picks
  • Opinions
  • Podcasts
No Result
View All Result
IT Business Review
No Result
View All Result
Home How To

How to install WP-CLI for WordPress

Do you want to manage your WordPress website through a command-line interface? You may want to have a look at our guide.

Hanife Diktas by Hanife Diktas
August 6, 2023
in How To
How to install WP-CLI for WordPress

What is WP-CLI? WP-CLI is an official command line tool that allows you to manage your WordPress sites through a terminal interface. This will enable you to complete your operations in WordPress more practically.

You can easily proceed with many operations such as theme installation, plugin update, and user management, thanks to its user-friendly syntax.

WP-CLI system requirements

Before starting the installation processes, make sure your server meets the minimum requirements for WP-CLI:

  • UNIX-like environment (OS X, Linux, FreeBSD, Cygwin; limited support in Windows environment)
  • PHP 5.6 or later
  • WordPress 3.7 or later (versions older than the latest WordPress release may have degraded functionality)

Firstly, update your server in order to avoid compatibility problems. To do this, use the following command on the terminal screen of your Linux server:

dnf update && dnf upgrade

WP-CLI installation

Step 1: Download the Phar file

After the update process is completed, use the following command in the terminal to install the Phar file for WP-CLI:

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar

Step 2: Make sure it is working

 Once it is installed, try to run the Phar file to make sure that the WP-CLI tool is working:

php wp-cli.phar --info

Step 3: Permissions and location

Then proceed with setting the Phar file permissions and carrying it to a more suitable place in the system:

chmod +x wp-cli.phar
sudo mv wp-cli.phar [YOUR PREFERRED LOCATION]

Step 4: See the WP-CLI version

If you want to see the version of the WP-CLI installation, use the following command:

wp --info

Installing a plugin with WP-CLI

You need to switch to the directory where WordPress is installed in order to use WP-CLI commands properly. In our system, the WordPress files are located under the /var/www/html/wp folder.

cd [YOUR WordPress LOCATION]

When you move to the relevant folder, you may want to list the plugins. You can use the following command for this action:

wp plugin list

If you want to search for a plugin in the WordPress repository, the following command will help you:

wp plugin search [PLUGIN NAME]

To install the plugin you have searched for, copy the slug name of it and use it in the following command:

wp plugin install [PLUGIN SLUG NAME]

Activating the plugin you have installed is as easy as the other steps. But you will need the slug name again:

wp plugin activate [PLUGIN SLUG NAME]

You can always check the official WordPress CLI handbook for additional information about the usable commands.

Previous Post

What is cloud computing? An introduction to cloud computing

Next Post

How to change permissions of user roles on WordPress

Hanife Diktas

Hanife Diktas

Hanife Diktas is the Sales & Marketing Manager of IT Business Review. Hanife started her career in the manufacturing sector in the marketing and sales department. Hanife worked in industrial equipment, renewable energy, and technology sectors. Hanife Diktas did her bachelor's degree in business administration and completed a master's degree in management at Yeditepe University in Istanbul, Turkey. Hanife is a Linux user, and she also contributed to AlmaLinux OS at the beginning of the project. Hanife focuses on web hosting, cloud computing, data centers, cybersecurity, Linux OS, and virtualization technologies. Hanife enjoys creating content and shooting videos covering these topics.

Next Post
How to change permissions of user roles on WordPress

How to change permissions of user roles on WordPress

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • BlazeClan Technologies empowering businesses with cutting-edge cloud security solutions

    BlazeClan Technologies empowering businesses with cutting-edge cloud security solutions

    0 shares
    Share 0 Tweet 0
  • Ubuntu 23.04 review

    0 shares
    Share 0 Tweet 0
  • Wix is announcing the launch of Wix Studio

    0 shares
    Share 0 Tweet 0
  • How to change the default SMTP port for Postfix

    0 shares
    Share 0 Tweet 0
  • What is Linux? Introduction to the popular open-source operating system

    0 shares
    Share 0 Tweet 0
Wix merchants can now accept secure, contactless payments directly from their Android devices
Press Release

Wix merchants can now accept contactless payments directly from Android devices

by Hanife Diktas
September 12, 2023
0

Wix.com Ltd., a leading global SaaS platform launched Tap to Pay on Android to simplify in-person commerce for U.S.-based merchants...

EonStor GS G3 now supports the new Veeam data platform

EonStor GS G3 now supports the new Veeam data platform

August 9, 2023
Barracuda partners with Cork

Barracuda partners with Cork

August 9, 2023
BitPay debuts Bill Pay

BitPay debuts Bill Pay

August 9, 2023
What is a Data Center? An introduction to data center

What is a Data Center? An introduction to data center

August 9, 2023
Ubuntu 23.04 review

Ubuntu 23.04 review

IT Business Review

Copyright © 2023 itbusinessreview.com

Navigate Site

  • About Us
  • Contact Us
  • Privacy Policy
  • Advertise

Follow Us

No Result
View All Result
  • Home
  • News
  • Article
  • Review
  • How To
  • Best Pick
  • Opinion
  • Podcast
  • More

Copyright © 2023 itbusinessreview.com

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In