11
WordPress CLI WordPress Management through Command Line Interface

WPCLI: An Introduction

Embed Size (px)

Citation preview

Page 1: WPCLI: An Introduction

WordPress CLI WordPress Management through Command Line Interface

Page 2: WPCLI: An Introduction

WordPress Command Line Interface is a means of interacting with the WP core where the user issues commands to the program in the form of successive lines of text.

The commands are issued through a terminal window called the Command Line Interface.

WP-CLI: A short introduction

Page 3: WPCLI: An Introduction

Purpose of WP-CLI?

• Update WordPress core

• Manage WordPress websites

• Update Multisite instances

• Install themes and plugins

Page 4: WPCLI: An Introduction

WP-CLI Commands

• Type wp and hit Enter to get list of all commands

• For further details about the command, type wp help <command name>

• Commands handle functions related to cache, database, media, themes, comments, widgets, etc.

Page 5: WPCLI: An Introduction

WP-CLI example of Plugin commands

Page 6: WPCLI: An Introduction

Install Plugin through WP-CLI

• Plugin installation through CLI is instantaneous • Latest plugins are installed directly from the WordPress repository• You won’t need to login to your WP admin to go through the usual plugin install process • To install WooCommerce, type wp plugin install woocommerce

Page 7: WPCLI: An Introduction

Update WordPress Core

• To check the version of WordPress core, just type wp core version• To update the core, type wp core update

Page 8: WPCLI: An Introduction

How to use WP-CLI on Cloudways

• Log into Cloudways Console

• Go to “Application Management” tab

• Click “Launch SSH Terminal” button

• Add exception when security warning pops up

• Copy and paste Login credentials from SFTP section of “Application Management” tab

Page 9: WPCLI: An Introduction

Cloudways Cloud Console

“Launch SSH Terminal” button initiates WPCLI

Page 10: WPCLI: An Introduction

Who’ll ❤ this feature?

• Agencies who have tons of client-related things to do in a short period of time

• Developers who love the ease of CLI mode

And, on Cloudways, it is readily available on all our WordPress hosting servers.