Overview

WP-CLI provides a command line interface for WordPress, summarised on its WordPress.org page as "every action, scriptable". It removes the need for a browser when carrying out administrative work on a WordPress site. The project has shipped continuously since 2011 and is maintained by volunteers across the WordPress ecosystem.

  • Command line interface for WordPress
  • No browser required
  • Shipping continuously since 2011
  • Maintained by volunteers in the WordPress ecosystem

Source: WP-CLI – WordPress.org

Scriptable by design

Anything that can be done in the WordPress admin can be done from the terminal with WP-CLI. Typical tasks include installing and updating plugins, importing content, creating users and running search-replace operations across a site. Because the commands run in a shell, they can be combined into scripts for repeatable administration.

  • Install and update plugins
  • Import content
  • Create users
  • Run search-replace across a site

Source: WP-CLI – WordPress.org

Commands

WP-CLI groups its functionality into command namespaces that map onto areas of WordPress. These cover plugins and themes, the database, users and posts, the WordPress core itself, multisite networks and scheduled events. The WordPress.org page links to a browsable list of the available commands.

  • wp plugin
  • wp theme
  • wp db
  • wp user
  • wp post
  • wp core
  • wp site
  • wp cron

Source: WP-CLI – WordPress.org

Access and installation

WP-CLI is documented at wordpress.org/cli, which is part of the WordPress.org site. The page provides an installation route and a directory for browsing the commands. Readers looking for the wp CLI command line interface can start from that page.

  • Project page: https://wordpress.org/cli/
  • Install WP-CLI instructions
  • Browse commands directory

Source: WP-CLI – WordPress.org

Sources

  1. WP-CLI – WordPress.org https://wordpress.org/cli/ Verified 18 Sep 2026

Last verified 18 Sep 2026. This entry is compiled from the public web pages listed above. Nothing here is stated that those pages do not, and each of them was read on the date shown.