Automate WordPress. One Script at a Time.

WordPress Bash Scripts Library

Welcome to the ScriptWP library, a growing collection of tested bash scripts for automating your WordPress workflows. Whether you’re managing one site or a hundred, these scripts help you handle routine tasks like backups, updates, migrations, and URL replacements.

Each script is…

Written with clarity and
safety in mind

Powered by WP-CLI
(where possible)

Ready to run or customize
for your environment

  • Update WordPress Plugins & Themes

    Automate updates across one or multiple WordPress installs using WP-CLI. This script updates WordPress core, all plugins, and themes — ideal for cron jobs or low-maintenance environments.

    See the script →

  • Search & Replace URLs

    Safely replace all instances of a staging or old domain with the new live URL. This version runs a dry run first, giving you a chance to verify what will change before applying it.

    See the script →

  • Local Backup

    This script uses WP-CLI to export the WordPress database and compresses the entire site directory (including media, themes, plugins, and config files) into a timestamped .tar.gz archive. Ideal for local or server-side backups without needing mysqldump.

    See the script →