Collection of WP-CLI commands and bash scripts for automating WordPress maintenance. Easily run on one or many WordPress websites using CaptainCore or an SSH script from scratch.

Activate ACF Pro License Key
Replace YOUR_PRO_LICENSE_KEY with your Advanced Custom Fields Pro license key.

Changes HTTP references to HTTPS for a certain domain name.

Changing WordPress database prefix
Changes WordPress database prefix by exporting database, updated references and then re-importing database. Be sure to update db_prefix_new to a new database prefix.

Convert MyISAM database tables to InnoDB
Finds and converts any database tables using MyISAM storage engine to InnoDB.

Delete Inactive Themes
Removes all inactive themes.

Disable Emails
Inserts must-use plugin to disable outgoing emails.

Disk Usage
Overall disk usage within home WordPress directory.

Download file from Google Drive shared link
Will download from a Google Drive shared link using wget. Swap out <google-file-id> and <file-name> with Google's unique file ID shown in shared URL and a file name where you want to download it to.

Fetch PHP memory limit
WordPress' memory limit can be independently set to anything however will not go over PHP's own limit. This will retrieve PHP's memory limit.

Hunt Unnecessary Files on Kinsta
Returns storage usage of debug.log file and private folder on Kinsta.

Install Event Calendar Pro
Installs The Event Calendar and Event Calendar Pro and activates license.

Kinsta Cache Purge
Purges cache on Kinsta.

Overriding Recovery Emails
Adds RECOVERY_MODE_EMAIL to wp-config.php file.

Search for User by Email Address
Searches for a WordPress user account by email address. Will return the name of the site if found.

Send Test Email
Sends a test email.

Show Kinsta PHP Workers
Lists out current PHP workers on a site hosted with Kinsta.

Update Everything
Updates all plugins, themes, and WordPress core if needed.