@Jhynnifer,
I was able to reproduce the issue you were running into with the Flywheel site you specified. There is a plugin (Leadpages) that is throwing a fatal PHP error when WP-CLI is used.
Here’s the specific error for posterity:
Fatal error: Uncaught Error: Call to a member function checkAndCreateApiKey() on null in /app/public/wp-content/plugins/leadpages/leadpages.php:166
Stack trace:
#0 /app/public/wp-includes/class-wp-hook.php(286): isApiKeyCreated('')
#1 /app/public/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#2 /app/public/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#3 /app/public/wp-settings.php(471): do_action('wp_loaded')
#4 phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(1105): require('/app/public/wp-...')
#5 phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(1032): WP_CLI\Runner->load_wordpress()
#6 phar:///usr/local/bin/wp/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()
#7 phar:///usr/local/bin/wp/php/bootstrap.php(75): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#8 phar:///usr/local/bin/wp/php/wp-cli.php(23): WP_CLI\bootstrap()
#9 phar:///usr/local/bin/wp/php/boot-phar.php(8): include('phar:///usr/loc...')
#10 /usr/local/bin/wp(4): include('phar: in /app/public/wp-content/plugins/leadpages/leadpages.php on line 166
This explains the timing of the behavior. 
To fix the issue right now, you can:
- Update Leadpages and/or contact Leadpages support to resolve the PHP error
or:
- Go through the WP-CLI steps in my previous reply but change step #3 to
wp --skip-plugins search-replace '//olddomain.com' '//newdomain.com'
I’ll make sure that --skip-plugins
and --skip-themes
are used in future versions of Local so PHP errors like this don’t interrupt the domain replacement process.
Thanks for your patience!