Two examples of PHP scripts that use WP-CLI. I like to do it this way rather than as a shell script because a) shell scripts are unreadable; and b) I don’t know how to write shell scripts. The first updates an option based on plugin activation and the current option value; the second selectively activates or de-activates a plugin based on the current theme.
A mistake so stupid that I couldn’t find any reference to it on the Web.
Catching un-moderated comments that are left hanging. Nuking (or freeze-drying) obsolete blogs. Adding large groups of users.