Wingman for Craft CMS

Wingman is a Craft 6 plugin. Craft 6 is still in beta, and so is Wingman (6.0.0-beta.1) — try it on staging first and use caution on production sites.

Console commands

php artisan craft:wingman:status

The health table from Utilities → Wingman: rows, rows with elements, missing elements and orphans per model.

php artisan craft:wingman:backfill [handle] [--dry-run] [--queue]

Creates elements for rows without one. No handle: every model. --queue pushes one queue job per model. Exits non-zero if any element couldn't be created.

php artisan craft:wingman:cleanup [handle] [--dry-run]

Deletes elements whose row no longer exists. Exits non-zero if any couldn't be deleted.

Core's php artisan craft:eloquent-elements:sync [type] also creates missing elements (by reference handle, customer), without the dry run or queue.

More plugins

Pairs well with Wingman