Install WP CLI

Task: Install WP CLI tools

Implementation:

  1. Download wp-cli.phar
    curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
  2. Verify it:
    php wp-cli.phar --info
  3. Add executable attribute:
    chmod +x wp-cli.phar
  4. Move to bin directory with 'wp' name:
    sudo mv wp-cli.phar /usr/local/bin/wp
  5. Test it working:
    wp --info

Done.

Leave a Reply

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




Enter Captcha Here :