What is WordPress CLI?

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Annie_P
    Senior Member
    • Aug 2022
    • 146

    What is WordPress CLI?

    How to install it?
  • Ryaan J.
    Senior Member
    • Apr 2022
    • 152

    #2
    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

    Comment

    • Rex Maughan
      Senior Member
      • Mar 2022
      • 178

      #3
      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

      Working...
      X