Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Entity Command Laravel Package

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+.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for internal content ops tooling. Rather than scoping an admin CRUD screen, a custom REST endpoint, or a one-off PHP script for bulk content changes, this gives you a maintained, tested CLI surface for comments, menus, options, posts, sites, terms, and users. That is engineering weeks removed from a roadmap for a capability nobody is asking to differentiate on.
  • Roadmap scoping for editorial and moderation features. The package exposes WordPress's native comment/note primitives (block-level notes with --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.
  • Operational readiness as a feature. Scriptable moderation queues (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.
  • Data seeding and QA velocity. 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.
  • Reporting and auditability without a new service. --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.
  • Deploy and release engineering. Meaningful exit codes, --porcelain output for piping, and exists/get checks let release pipelines assert and mutate state safely — content migrations stop being a manual runbook item.
  • Exit strategy and portability. Structured output feeds a warehouse, an analytics job, or a migration off WordPress. Owning a cheap export path lowers the cost of the platform bet.

When to Consider This Package

Adopt (or rather, standardize on) it when:

  • You operate one or more WordPress sites — marketing properties, a headless CMS behind a Laravel or JS frontend, or a portfolio of client sites — and already touch WP-CLI in deploys. Note this ships as part of WP-CLI core; the decision is less "add a dependency" and more "commit to the CLI surface in our runbooks and pipelines."
  • You have repeatable admin operations (bulk moderation, user provisioning, menu/option sync, staging refresh) currently performed by hand.
  • You need machine-readable output for pipelines, and version pinning is controllable so features like block notes (WP 6.9+) are actually available where you run them.
  • Your team values a first-party, MIT-licensed, actively released command set with visible CI (Behat acceptance tests, PHPStan, PHPCS). Treat the modest star count as a signal about audience (this is infrastructure, not a library people star), not about maintenance risk.

Look elsewhere when:

  • You are evaluating this for a Laravel codebase. It is a WordPress package and has no application here. The Laravel analogues are Artisan commands, database seeders, and model factories — do not vendor this in.
  • You need in-process programmatic control. This is a CLI you shell out to, not a PHP API. Application code should use the WordPress REST API or WP_Query / wp_insert_post directly; subprocess coupling is fragile and hard to test.
  • You need transactional batch safety. Batch loops over many IDs can partially fail mid-run; if a migration must be all-or-nothing, invest in purpose-built migration tooling instead.
  • You cannot control the WordPress version but need the newest capabilities (e.g. notes), or you're on a host that disallows CLI/PHP execution.
  • You want to modify the command surface without owning a fork — contributions are governed by WP-CLI conventions and a heavy Behat suite, which is a real cost if you need custom behavior rather than composition.

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table