Question about wp-cli command

Hi,

What would happen if I excute the following command?

$ wp search-replace my-remote.com my-local-site.local --allow-root

Just replace all the remote site’s URL with the .local one?

I’m currently trying to customize my WP site on local with WP-CLI, but also looking for a way to customize my site on local like Local by flywheel.

Whenever I click “Open WP Admin”, I’m redirected to the remote URL.
Can’t I even add/delete plugins on local dashboard like Local by flywheel?

Thank you

Hi @gonzo, thanks for reaching out. The wp-search command runs on entries within the database.

If you pulled your site from Kinsta, this step should have already run for you. Please check your wp-config.php file to see if there are any entries that may be redirecting you to the remote site. If not, you can force the home/site url within wp-config.php without running a search and replace. That usually at least allows you to log in: Changing The Site URL – WordPress.org Forums

It looks admin dashboard URL has not been replaced with the local’s on my end.

If not, you can force the home/site url within wp-config.php without running a search and replace. That usually at least allows you to log in: Changing The Site URL – WordPress.org Forums

That worked. Appreciate that!