wp-cli/rewrite-command
WP-CLI package for managing WordPress rewrite rules and permalinks from the command line. Flush rules, inspect the current rewrite list, and update permalink structure without leaving your terminal, making migrations and debugging faster.
Adopt (i.e., simply use — it arrives with WP-CLI; there is no real integration work) when:
Look elsewhere when:
$wp_rewrite), not this command.For executives: This is not a new dependency or a purchase — it's a command that ships inside WP-CLI, the standard command-line tool for WordPress, which our stack almost certainly already has. It gives us a safe, one-step way to reset a site's URL routing after a deploy, a content migration, or a permalink change. The business value is reduced recovery time from 404/page-not-found incidents and fewer "it works in staging" surprises. Cost is effectively zero; the risk is that it's WordPress-specific and only relevant if WordPress is genuinely part of our stack.
For engineering: wp rewrite flush / wp rewrite list / wp rewrite structure. Use it as an idempotent post-deploy and post-migration step; it's the correct fix for stale rewrite rules after plugin activation or a permalink change. Treat the repository's low star count as an artifact of it being a read-only split of the WP-CLI monorepo — pin WP-CLI in your image and you inherit this automatically. Do not attempt to use it outside a WordPress runtime, and do not build application logic against it; it is an operational primitive, not an integration point.
How can I help you explore Laravel packages today?