mothermachine

Browse / Content publishing

WP-CLI

The official WordPress command line: posts, media, users, plugins, and themes on any install, no browser.

Operable ProductCLI Deterministic PHP CLI License: MIT

WP-CLI is the WordPress project's command-line interface, maintained under wordpress.org with Automattic and hosting sponsors. About fifty top-level commands cover everything an agent needs to run a WordPress site: create and publish posts, import media, moderate comments, manage users, install plugins and themes, set options, and run database operations. It is the interface, not the CMS; the Listing is Operable only.

Use it when
  • I want my agent to publish and update WordPress content from a script instead of the dashboard
  • I maintain several WordPress sites and want plugin updates, users, and content handled from a shell
Gotchas
  • Needs shell access on the server running WordPress; many managed hosts expose WP-CLI, some do not
  • PHP 7.2.24+ and WordPress 4.9+; limited Windows support
  • Commands run with the server user's rights and bypass WordPress capability checks; scope carefully
  • WordPress itself is GPL; WP-CLI is MIT
  • Curator note: WordPress also ships an official mcp-adapter; a WordPress Listing could carry both as official interfaces

Last activity Sep 1, 2026. Fit: adaptable 1, operable 3.

Editions

Free · Free open source

  • DownloadDownload
  • Installbrew install wp-cli
  • ImageContainer
  • Clonegit clone https://github.com/wp-cli/wp-cli

For agents: JSON · Markdown

Operable: what an agent can drive

Interface

OfficialCLIpublished by the builderlocal

How an agent can drive an Operable Listing, in five levels: native (built for the agent as the primary interface), official (the Builder ships an agent interface), wrapped (a third party wraps the software's API), config (an agent can only drive it by editing files), gui (screen control only). An interface is official only when it is published by the same organization that ships the software. GUI-level Listings are allowed and sorted last.

Docs
developer.wordpress.org/cli/commands/

Reach

Partial coverage. 9 of 10 jobs reachable through the stated interface.

JobThrough the interfaceEvidence
Create, edit, and publish posts and pagesReachablewp post create, update, list with post_status and meta
Import media and regenerate thumbnailsReachablewp media import, regenerate
Moderate commentsReachablewp comment create, update, delete, approve, spam
Manage categories and tagsReachablewp term
Manage users and rolesReachablewp user, wp role, wp cap
Install and update plugins and themesReachablewp plugin install --activate, wp theme
Read and set site optionsReachablewp option get, update
Run database operations and search-replaceReachablewp db, wp search-replace
Administer multisite networksReachablewp site
Lay out pages visually in the block editorNot reachablepost content is passed as raw HTML or block markup; there is no visual layout command

Code stack

Languages
PHP
Frameworks
none
Package manager
composer
Database
none
Hosting target
any host with shell access to a WordPress install
Built
Human-written (recorded, never ranked)

Evidence and confidence

FieldWhere it was seenConfidence
formFactorREADME: command-line interface distributed as a Phar95%
executionModelno model at runtime95%
operabilitydocumented at developer.wordpress.org/cli/commands under the WordPress project; README credits Automattic and host sponsors95%
effortnot listed as Adaptable; wp-cli.yml exists but adapting the CLI is not the use case0%
editionsREADME: Phar download, Composer, Homebrew, Docker; MIT95%
activepushedAt 2026-09-01; 27 open issues–
provenanceproject since 2011 under the WordPress umbrella95%
reach95%

Open questions

  • Should the Curator fold this into a single WordPress Listing alongside the official mcp-adapter?

Sources