How to install it?
What is WordPress CLI?
Collapse
Unconfigured Ad Widget
Collapse
X
-
WordPress CLI (WP-CLI) is a command-line tool that allows you to manage your WordPress website directly from the terminal or command prompt.
With WP-CLI, you can perform the below tasks, like- Installing or updating WordPress core
- Managing themes and plugins
- Creating users
- Importing/exporting data
- Running database operations
-
How to Install WP-CLI?
Before installing, make sure your system supports the following:- PHP 5.6 or higher version
- A UNIX operating system (Linux, macOS, or Windows using WSL)
- Command-line access (SSH, Terminal)
Step 1: Download WP-CLI
Run the following command in your terminal.
curl -O https://raw.githubusercontent.com/wp...ar/wp-cli.phar
Step 2: Verify the Download
php wp-cli.phar --info
Step 3: Make WP-CLI Global
Move the file to a location in your system’s PATH and rename it:
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
--> run WP-CLI with:
wp --info
Comment
Comment