WordPress Migration — Local to Live
Description
Comprehensive workflow for migrating WordPress sites from local dev to live hosting, or syncing content between environments. Covers three migration methods — BlogVault full-site migration, manual FTP + database import, and REST API content sync for individual pages.
What This Skill Teaches Claude
- Pre-migration checklist — 10-point checklist covering hosting, DNS, SSL, PHP version matching, email MX records, and content freezes
- BlogVault migration — Full-site migration between hosts with URL replacement via Better Search Replace
- Manual FTP + DB migration — Database import via phpMyAdmin, WPEngine mu-plugin cleanup, wp-content upload
- REST API content sync — Page-level sync using Docker DB exports, WP-CLI content extraction, and browser console push
- Image pipeline — Extract referenced images, check live existence, download missing, bulk upload
- Template sync for block themes — REST API template push, navigation menu handling for FSE themes
- Post-live verification — DNS propagation, SSL, broken image detection, analytics reconnection, cache clearing
- Hosting-specific workflows — WPEngine, Kinsta, WordPress.com/Jetpack, and SiteGround specific steps
Key Capabilities
- MySQL content export with newline unescaping (avoids the \n visibility bug)
- WP-CLI preferred over raw MySQL for clean content extraction
- Automated image audit — compares local references against live uploads
- Browser-injectable JS payload for pushing content via REST API
- Photon CDN cache-busting for WordPress.com hosted sites
- URL replacement patterns for both full migrations and page-level syncs
Includes
SKILL.md— Full migration reference with 3 methods, checklists, and 10 gotchas learned the hard waysync-local-to-live.sh— Automated bash script for Docker-to-live content sync with dry-run mode
What Claude Learns
- → 1. Run pre-migration checklist — verify hosting credentials, DNS, SSL, PHP version, MX records, and freeze content edits
- → 2. Choose migration method — BlogVault for full-site, manual FTP+DB for no-plugin scenarios, REST API for page-level sync
- → 3. Export page content from local Docker database using WP-CLI (preferred) or MySQL SELECT with newline unescaping
- → 4. Extract and audit referenced images — identify which exist on live, download missing from local
- → 5. Replace local URLs with live URLs in exported content
- → 6. Upload missing images to live Media Library before pushing content
- → 7. Push cleaned content via REST API using browser console with nonce authentication
- → 8. Sync block theme templates and navigation menus via REST API
- → 9. Run post-live verification — DNS propagation, SSL check, broken image scan, analytics reconnection
- → 10. Handle hosting-specific quirks — WPEngine mu-plugin cleanup, Kinsta CNAME setup, Photon CDN cache busting
Installation
Add to your Claude project:
```bash
# Copy skill files to your project
cp -r ~/.claude/skills/wp-migration/ your-project/.claude/skills/wp-migration/
# Or reference globally in ~/.claude/settings.json
```
The sync script can be run standalone:
```bash
chmod +x sync-local-to-live.sh
./sync-local-to-live.sh
--local-url http://localhost:8088
--live-url https://www.example.com
--db-container wp-db-1
--db-user wpuser --db-pass wppass --db-name wordpress
--page-slug my-page
--output-dir /tmp/wp-sync
```
Stack & Dependencies
WordPress
REST API
WP-CLI
Docker
MySQL
PHP
Bash
BlogVault
Better Search Replace
Related Skills
Frequently Asked Questions
What technologies does WordPress Migration u2014 Local to Live require?
This skill works with WordPress, REST API, WP-CLI, Docker, MySQL, PHP, Bash, BlogVault, and Better Search Replace. Make sure these are available in your project before using the skill with Claude Code.
How detailed is the WordPress Migration u2014 Local to Live skill?
WordPress Migration u2014 Local to Live contains 602 lines of structured instructions covering 10 key areas. It provides comprehensive guidance including specific implementation patterns, not just surface-level tips.
Is WordPress Migration u2014 Local to Live free to use?
Yes, WordPress Migration u2014 Local to Live is completely free. You can download the SKILL.md file or copy it to your clipboard directly from the skill page.
What will Claude Code learn from this skill?
Claude Code will gain expertise in: 1. Run pre-migration checklist u2014 verify hosting credentials, DNS, SSL, PHP version, MX records, and freeze content edits; 2. Choose migration method u2014 BlogVault for full-site, manual FTP+DB for no-plugin scenarios, REST API for page-level sync; 3. Export page content from local Docker database using WP-CLI (preferred) or MySQL SELECT with newline unescaping; and 7 more areas.