WP CLI based commands not reaching database

What issue or error are you experiencing?

My organization is working on setting up a local instance of our multisite. Using archive-based importing did not work in local, so I proceeded with attempting manual installation.

I successfully imported a partial export of our database, but wp search and replace does not execute becuase the wp cli won’t connect to the database. Noteably it’s possibly to connect via MySQL shell, and some wp commands are successful, but the search and replace and similar commands do not.

See this command and output:

-snip-\cfi-local-min\app\public>wp site list --url=cfi-local-min.local --path=C:\Users-snip-\cfi-local-min\app\public

Error: Site ‘cfi-local-min.local’ not found. Verify --url=<url> matches an existing site.


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

Import DB Manuall from .sql file. Attempt to execute wp search-replace from site shell


System Details

  • Local Version:

WP 6.7.1
PHP 7.4.3
MariaDB 10.4.32

  • Operating System (OS) and OS version:

Win11


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)

local-logs.zip (59.4 KB)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hi @acook - Have you been working with our multisite documentation here on your manual set up?