wp-cli/entity-command
Manage WordPress comments, menus, options, posts, sites, terms, and users from the command line with WP-CLI. Create, update, delete, list, and moderate content quickly, including block notes on WordPress 6.9+.
--comment_type=note, threading via --comment_parent, status via meta) as scriptable operations. If we're considering a review/annotation workflow for an editorial product, that's evidence the underlying data model already exists and we'd be building UX, not plumbing — a materially smaller estimate.comment list --status=spam, delete --force), approval flows, and per-post counts make "we can clean up and report on content state" a deliverable rather than a support burden.generate commands for comments, posts, users, and terms produce deterministic-volume fixtures for demos, load tests, and staging refresh — reducing the recurring cost of environment spin-up.--format=csv|json|yaml|ids|count and --field/--fields make exports and reconciliation reports a pipeline step, not an internal tool. Useful for compliance asks and for pre-migration assessments.--porcelain output for piping, and exists/get checks let release pipelines assert and mutate state safely — content migrations stop being a manual runbook item.Adopt (or rather, standardize on) it when:
Look elsewhere when:
WP_Query / wp_insert_post directly; subprocess coupling is fragile and hard to test.To executives: This is zero incremental spend — it ships with WP-CLI, is MIT-licensed, and is maintained by the WP-CLI organization — that converts recurring manual WordPress administration into repeatable, auditable commands. The value is toil reduction and error reduction in content operations, plus a cheap structured-export path that keeps our data portable. It does not expand product surface; it shrinks the engineering we'd otherwise spend on internal admin tooling.
To engineering: Commands map directly onto core WordPress APIs (WP_Comment_Query, wp_insert_post, term/user APIs) and emit stable machine-readable output (table, csv, json, yaml, ids, count, --porcelain) with meaningful exit codes, so it composes in CI and deploy scripts. It is exercised by a Behat acceptance suite plus PHPStan and PHPCS in CI. Be explicit with both audiences: this is a WordPress tool, not a Laravel package. In a Laravel codebase the equivalent capability is Artisan + seeders + factories; the recommendation only applies where we operate WordPress.
How can I help you explore Laravel packages today?