Getting a WordPress site into Local
For people running migrations (freelancers, agencies, developers). Moving your own site? See the plain-language version.
wp2next reads the old site from a copy running on your own computer in Local, a free app for running WordPress sites locally. Working from a local copy means wp2next can read the database and theme files directly, take screenshots without touching the live site, and never change the live site by accident.
This page covers installing Local and the four ways to get a site into it, easiest first.
Install Local
- Download Local from localwp.com (external site) (macOS, Windows, Linux). It is free; the download page says it "always will be" (checked 2026-12).
- Install and open it. Follow Local's installation guide (external site) if anything asks for permissions.
By default Local keeps sites in ~/Local Sites (on Windows usually C:\Users\<you>\Local Sites;
Not yet confirmed in Local's docs). If you changed that, tell wp2next init (it's saved as
paths.localSitesDir).
On Windows, Local needs 64-bit Windows 10 or 11. Allow its Windows Defender Firewall prompts on the first site. Its database listens on a TCP port shown on the site's Database tab rather than a socket, and the port can change after a restart; wp2next reads it fresh each time. Running the agent in WSL2 while Local runs on Windows needs mirrored networking. Both are covered in Windows.
What access do you have?
| You have | Use |
|---|---|
| A WP Engine or Flywheel account that hosts the site | Option 1: Local Connect |
| A WordPress admin login | Option 2: a migration plugin |
| Hosting access (file manager or SFTP, plus phpMyAdmin or a database export) but no admin login | Option 3: copy the files and database by hand |
| None of these: only the public website | Option 4: no local copy |
If you're doing this for a client, ask them to add you as a WordPress Administrator. It's the simplest route and they can remove you afterwards.
Option 1: Local Connect (WP Engine or Flywheel)
Local is made by WP Engine and can pull sites straight from WP Engine and Flywheel hosting.
- In Local, open Connect in the left sidebar and sign in.
- WP Engine: first turn on API access in the WP Engine User Portal (Users > API Access).
- Flywheel: sign in and confirm the link.
- Find the site and Pull it (Production, or Staging if you prefer).
You can connect one account per host. (Local Connect docs (external site))
Option 2: a migration plugin
Works with any host.
- On the live site, install WP Migrate Lite (free; Local recommends it). Export the site as a
.zip, including the database and thewp-contentfiles. - Drag the
.ziponto Local's window, or use Local's Import option. (guide (external site))
Local needs the .zip to contain wp-content/ and a .sql database file.
Other plugins:
- All-in-One WP Migration exports one
.wpressfile. Create a blank site in Local, install the plugin there, and import the file. The free version's import is limited by the upload size the server allows. Large sites need the paid extension. (plugin page (external site), checked 2026-12) - Duplicator or UpdraftPlus: create a blank site in Local and restore the plugin's backup into it. Whether Local's own import accepts their archives directly wasn't confirmed.
Option 3: copy the files and database by hand
- From the host, download:
- the
wp-contentfolder (via the file manager or an SFTP app) - a database export as a
.sqlfile (via phpMyAdmin's Export tab or your host's backup tool)
- the
- In Local, create a new, blank WordPress site.
- Replace that site's
wp-contentfolder with the one you downloaded. It's in~/Local Sites/<site>/app/public/(Windows:C:\Users\<you>\Local Sites\<site>\app\public\); Local's site-folder link under the site name opens it. - Put the
.sqlfile in the site's folder. - In Local, click Open Site Shell and run:
wp db import yourfile.sql
wp search-replace 'https://www.example.com' 'https://yoursite.local'Site Shell on Windows is Command Prompt (cmd.exe), where single quotes don't work. Use double
quotes:
wp db import yourfile.sql
wp search-replace "https://www.example.com" "https://yoursite.local"Use the live site's exact address, and run the replace again for any other version you find
(with or without www, http or https).
(Local's guide (external site))
Option 4: no local copy (REST API only)
If you can't get files or a database, wp2next can still work from the public site. It reads content
through WordPress's built-in REST API (/wp-json/wp/v2/...) and saves each page's finished HTML.
What you lose:
- Anything not exposed publicly: form email recipients, draft or private pages, some plugin settings. You'll need to fill these in by hand, so ask the client.
- The theme's own files. The design is copied from the rendered pages instead.
- A private baseline. Screenshots for comparison are taken from the live site.
Tell wp2next during migrate that there's no Local site. It switches to this mode.
Check the copy before running wp2next
- Start the site in Local (the Start site button).
- Click Open site. You should see the site at
https://<name>.local. - Click around: home page, a few inner pages, a blog post, the contact page.
- Note the site's folder name in your Local Sites folder. That is what
migrateasks for as the Local site.
Common problems:
- Browser warns the connection isn't private. Normal. Local uses its own certificate. Click through, or use Local's "Trust" option under the site's SSL setting.
- Links jump to the live site. The search-replace missed a version of the address. Run
wp search-replaceagain for it. - Pages show "Not Found", but the home page works. In WP admin, go to Settings > Permalinks and click Save without changing anything.
- Stray redirects or login prompts. A security, caching or maintenance-mode plugin may be interfering. Deactivate it on the local copy only.
- Windows:
https://<name>.localdoesn't open. Check the firewall prompts were allowed and the hosts file (C:\Windows\System32\drivers\etc\hosts) isn't read-only. Local's own guide notes a non-.localdomain can be much faster on Windows (Local on Windows (external site)).
Keep the site running in Local for the whole migration. wp2next connects to its database, and that connection only exists while the site is started.
Privacy
The local copy holds everything the live site holds: user accounts, form entries, sometimes customer
details. Keep it on your own machine, don't commit .sql files or backups to git, and delete the copy
once the project is done and handed over.