Inventory the source
Start with a WordPress WXR export and a matching copy of wp-content/uploads. Record important URLs, custom blocks, theme templates, menus, redirects, forms, and metadata separately. The WXR file carries content and attachment references. The media files travel as a separate input.
When you control the source installation, the Pisces checkout includes an exporter that captures a richer fixture, including navigation, styles, templates, and selected extension attributes. Run it from WordPress with the exporter path pointing into your Pisces checkout. Keep the output and uploads private.
wp --skip-plugins --skip-themes eval-file /path/to/pisces/tools/export-wordpress.php > wordpress-fixture.json
Import into a scratch site
Use a fresh Pisces data directory, or a dedicated test database and data directory. Start with --dry-run to count content records before import. Check the upload files separately. Use the same paths and hostname for the import.
export PISCES_DATA_DIR="$(mktemp -d)"
pisces import-wordpress journal wordpress.xml \
--hostname 127.0.0.1 \
--canonical-url http://127.0.0.1:8040 \
--uploads /path/to/wp-content/uploads \
--dry-run
pisces import-wordpress journal wordpress.xml \
--hostname 127.0.0.1 \
--canonical-url http://127.0.0.1:8040 \
--uploads /path/to/wp-content/uploads
pisces serve --local-edit
Rebuild theme layout as a Pisces theme package and map custom blocks to available core blocks or a matching declarative or Wasm package. Imported Gutenberg content retains its block names, so a matching package can help restore editing. WordPress-specific PHP hooks and plugin storage need explicit migration work.
The project includes external adapters for Contact Form 7 WXR data and WPForms JSON. They produce draft definitions for the shared form runtime. Review each draft, its recipient and fields, and any unsupported behavior before publishing it.
Compare before cutover
- Exercise the home page, post and page routes, archives, search, sitemap, and old redirects.
- Check media, featured images, menus, comments, and desktop and mobile layouts.
- Open imported blocks in Gutenberg. Save a draft and verify published content and metadata after editing.
- Review every migrated form, then submit a test to a controlled recipient and verify the relevant moderation and job outcome.
- Export the scratch site and restore it elsewhere with the uploads and approved packages to test recovery.
The project uses an Alyx WordPress site as a migration parity target. Its comparison workflow restores a private WordPress snapshot and checks equivalent Pisces routes. From a source checkout, see docs/alyx-parity.md for the local runner. The general approach is to compare real routes and editorial actions on both systems before switching traffic.