Skip to main content

WP-CLI: Top Commands You Should Memorise

wp search-replace old new –dry-run is the safest way to move a site between domains. Always run with –dry-run first.wp db export takes a fast SQL dump; wp transient delete –all …

April 3, 2026 WordPress chris 1 min read CLI

Article takeaway

wp search-replace old new --dry-run is the safest way to move a site between domains. Always run with --dry-run first.wp db export takes a fast SQL dump; wp transient delete --all …

wp search-replace old new --dry-run is the safest way to move a site between domains. Always run with --dry-run first.

wp db export takes a fast SQL dump; wp transient delete --all clears every transient including object-cached ones.

wp plugin update --all updates everything; wp cron event run --all runs every scheduled event immediately for debugging.

Share X / Twitter LinkedIn

Leave a comment

Related Posts