From the course: WordPress: WP-CLI

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

A look at WP-CLI commands

A look at WP-CLI commands - WordPress Tutorial

From the course: WordPress: WP-CLI

Start my 1-month free trial

A look at WP-CLI commands

- Understanding the structure and format of WP CLI commands will help you figure out the syntax for most commands. So let's take a look at most WP CLI commands, and how they're put together. Each command starts with WP. This will let the command line interface know that we want to run some command through WP CLI. Then you have different sub commands, like core, theme, plugin, and lots more. These sub commands are generally mapped to the functions and features of WordPress. Something that you can do in the dashboard or through the database is something that you can do through WP CLI. Drill down one level further and we have sub commands for those sub commands. So for example, one for WP theme is install. This command allows us to install themes through the slug or the theme name, through remote zip files or through local zip files. That brings us to the next part of the command: the options. Options are where we tell the…

Contents