To migrate a LocalWP site to InstaWP, either open the LocalWP Site shell, sign in with InstaCLI and run instawp migrate push . --name <site-name> --source-url http://<yoursite>.local/, or export the site from LocalWP as a ZIP and upload that archive through Sites, Import Site in the InstaWP dashboard with Local WP selected as the backup source. Both methods copy files and database, rewrite the URLs for you, and finish with a live WordPress site in your account.
That is the short version. The reason this deserves a full guide is that a local site is not like any other site you migrate. It has no public address, no SSH, no host control panel and no way for an outside service to reach in and fetch it. Every classic migration route assumes at least one of those things exists. The two methods below are the ones that work precisely because they start from your machine and push outwards, rather than waiting for something on the internet to reach in.
This guide covers both, step by step, along with the checks worth running afterwards and what to do with the site once it is up.
- Two ways that work: push the site with the InstaCLI command
instawp migrate push, or export a ZIP from LocalWP and upload it in the InstaWP dashboard. - No public URL needed: both methods start on your own machine and send the site outwards, so localhost and .local addresses are not a problem.
- Push for larger sites: one command from the LocalWP Site shell uploads files and database together. It needs Node.js 18 or higher, npm,
mysqldumpand a paid InstaWP plan, and no plugin on the local site. - ZIP import for no terminal: it is a dashboard upload, and the archive must be within the 1 GB upload limit.
- Always a new site: both methods create a brand new InstaWP site and overwrite nothing. A pushed site starts on the Sandbox plan, so change the plan before it takes production traffic.
- Not the AI Migration tool: InstaMigrate connects two reachable WordPress sites by URL, so it cannot fetch a site that only exists on your laptop.
Why a Local Site Is Different From Every Other Migration
A site built in LocalWP, XAMPP, MAMP or WAMP lives at an address only your computer understands, such as mysite.local or localhost:10003. Nothing outside your machine can resolve it. There is no hosting account behind it, no SSH login, no cPanel and no public REST endpoint.
That single fact rules out most of the migration advice you will find. Tools that ask for a source URL cannot reach your site. Tools that ask for FTP or SSH credentials have nothing to connect to. Even the manual route, exporting a database and uploading files by hand, leaves you fixing serialised URLs and file paths afterwards.
What does work is any method that runs on your machine and sends the site out. That is exactly what the two methods below do. The push method runs a command inside your local install and uploads the site to your account. The ZIP method packages the site into a file that you upload from your browser. In both cases the traffic flows outwards, which is why neither one needs your local site to be reachable from the internet.
Which Method Should You Use
Both methods produce the same result: a real WordPress site running on InstaWP. They differ in how you drive them and how big a site they suit.
| Comparison | Method 1 Push with InstaCLI | Method 2 LocalWP ZIP Import |
|---|---|---|
| How you run it | Run instawp migrate push in the LocalWP Site shell. |
Complete the entire process from the InstaWP dashboard. |
| Terminal needed | Yes. Install InstaCLI from npm, sign in, then run one command. | No. |
| Plugin needed on the local site | No. InstaCLI signs in on its own with instawp login. |
No. |
| Size limit | No browser upload limit. Time depends on site size and your upload speed. | The archive must remain within the 1 GB upload limit. |
| Works with | LocalWP, XAMPP, MAMP, WAMP, or any local install with wp-config.php and mysqldump. |
LocalWP exports. |
| Best for | Larger WordPress builds and anyone comfortable in a terminal. | A one-off migration without using the command line. |
If you are unsure, start with the push method. It is the one InstaWP builds around local development, it handles bigger sites comfortably, and after a one-time install and sign-in the whole migration is a single command. Choose the ZIP import when you would rather not touch a terminal at all, or when the local environment is not LocalWP but you already have an export in hand.
What You Need Before You Start
Five minutes of preparation prevents the most common migration problems. Before either method, do the following on the local site.
- Start the site and confirm it loads. Open the front end and the WordPress dashboard. A site that is broken locally will be broken after the move too.
- Finish any pending updates. Update WordPress core, plugins and themes now, so you are not carrying known issues across.
- Take a local backup. Keep a copy of the site as it stands, so you always have something to fall back on.
- Tidy up what you do not need. Removing abandoned plugins, unused themes and large debug logs makes the transfer faster and the new site cleaner.
- Have an InstaWP account ready. You can create one here. New accounts start with $25 in credits, so you can move a site up and test it before deciding on a plan.
Method 1: Push Your Local Site With InstaCLI
This is the method built for local development. InstaCLI is InstaWP’s official command line tool, installed from npm. You run one command from the LocalWP Site shell. It archives your files, exports the database with mysqldump, creates a new site in your InstaWP account, uploads both over SSH, restores them and health-checks the result.
InstaCLI replaces the older push through the InstaWP Connect plugin, where you copied a wp instawp local push command from Tools, InstaWP. That flow has been retired. You no longer install a plugin on the local site at all, and InstaCLI leaves instawp-connect, instawp-helper and iwp-migration out of the copy, so the new site is a faithful copy of your local files.
mysqldump on your PATH, and an InstaWP account on a paid plan. You do not need WP-CLI, the InstaWP Connect plugin, a public URL, a tunnel such as ngrok, or port forwarding. InstaCLI makes an outbound connection from your machine to InstaWP, so nothing ever has to reach in to your laptop. The full requirements are in the InstaWP guide to pushing a local WordPress site to InstaWP.Step 1: Start the Site and Open the Site Shell
Open the LocalWP application, select the site you want to move, and click Start site. Click WP Admin and confirm the dashboard loads. Keep the site running for the whole migration, because InstaCLI reads the live database through mysqldump and a stopped site means a failed export.

Now click Site shell. LocalWP opens a terminal already sitting in the WordPress root, the folder that holds wp-config.php and wp-content. On Windows this usually opens in PowerShell. LocalWP also bundles mysqldump, so the Site shell normally has it on the path already.

Using XAMPP, MAMP or WAMP instead? Open your own terminal and change into the folder that holds the local WordPress install, for example cd /Applications/MAMP/htdocs/yoursite. Run ls (or dir on Windows) and confirm you can see wp-config.php before going on.
Step 2: Install InstaCLI and Sign In
Check the prerequisites, install InstaCLI from npm, then sign in. instawp login opens a browser window where you approve the session, and instawp whoami confirms which account the CLI will create the site in.
node --version
npm --version
mysqldump --version
npm install -g @instawp/cli@beta
instawp --version
instawp login
instawp whoami

instawp login. There is no API key to copy and paste.InstaCLI is published on the beta channel at the time of writing, which is why the install command pins @beta.
Step 3: Preview the Push With a Dry Run
Add --dry-run and InstaCLI checks the WordPress root, the source URL and the new site name, then prints its plan without creating or uploading anything. Set --source-url to the exact local address, including the trailing slash, so every local link gets rewritten.
instawp migrate push . --name my-site-cloud --source-url http://mysite.local/ --dry-run

Step 4: Run the Push
Run the same command without --dry-run. Leave the LocalWP app, the site, the terminal and your internet connection running until it finishes. How long it takes depends on the number of files, the size of the database and your upload speed.
instawp migrate push . --name my-site-cloud --source-url http://mysite.local/
InstaCLI reports each stage as it goes: archive the files, export the database, create the hosted site, prepare SSH access, upload, restore and health-check. The run ends with Migration complete and prints the Site URL and the WP Admin URL.

Step 5: Log In and Check the New Site
Open the Site URL from the terminal and log in with the same WordPress admin username and password you use locally. InstaCLI migrates the users table with the rest of the database, so there is no new password to look up. The site also appears on the Sites page of your InstaWP dashboard, where Magic Login takes you straight into its dashboard.

The push always creates a new site. It never overwrites an existing destination, so running it twice gives you two sites rather than a replaced one. To send later local changes into the site you already pushed, InstaCLI has instawp sync push for wp-content and instawp db push for the database.
Full steps are also in the InstaWP documentation: Push the local WordPress site to InstaWP and How to build locally and then push to InstaWP. Every flag is listed in the InstaWP CLI command reference.
Method 2: Import a LocalWP ZIP Export
This method moves the site entirely through your browser. You export the site from LocalWP as a ZIP archive, then upload that archive in the InstaWP dashboard. It needs no plugin, no terminal command, no SSH access and no public URL for the local site.
Before you begin, check that the exported archive is within InstaWP’s 1 GB upload limit. If it is larger, use the InstaCLI push method above instead.
Step 1: Export the Site From LocalWP
Open the LocalWP application and select the site you want to move. Click Start Site and wait for it to be running. Right click the site name, or use the three dot menu beside it, and choose Export. Pick where to save the file and wait for LocalWP to build the archive.
LocalWP packages the database, media, plugins, themes and the rest of the site into that one ZIP. Leave it compressed, because the ZIP is exactly what you upload next.
Step 2: Open Import Site in InstaWP
Sign in to InstaWP and open the Sites page, then click Import Site. In the import modal, open the backup source drop-down and choose Local WP. This tells InstaWP how the archive was created and how to unpack it.
Also, you need to select the site plan for your new hosted site.

Step 3: Upload the ZIP File
Click the upload area and select the ZIP you exported, or drag and drop it in. Let the upload finish completely before you continue, and do not close or refresh the tab while it runs. When the file is ready, click Next.

Step 4: Configure the New Site
Give the site a name you will recognise later in your dashboard, and choose a server location close to the audience or client this site is for. Review the remaining site and plan settings, then click Import Site.

Step 5: Wait for the Site to Install
Installation starts automatically as soon as you submit the import. InstaWP creates the new WordPress site and restores your files and database into it. Keep the dashboard open until the status confirms the site is ready. How long it takes depends on the size of the archive and your connection.

Step 6: Open the Imported Site
Go back to the Sites page, find the newly imported site and open the front end to confirm it loads. Use Magic Login to get into the WordPress dashboard. Keep the original LocalWP site and the exported ZIP until you have finished checking the new copy.
The full list of supported backup sources, including Local WP, is in the Import Site documentation.
Verify the Migrated Site
Whichever method you used, check the site properly before you share it with a client or point a domain at it. Work through the front end and the dashboard together.
- Homepage and your most important landing pages
- Posts, pages and any custom post types
- Images and other media, including anything in galleries and sliders
- Themes and plugins, and that they are all still active
- Navigation menus, internal links and buttons
- Forms and email delivery
- WooCommerce products, settings and the full checkout flow
- User accounts, roles and permissions
- Permalink structure
- Custom code and third party integrations
Open the site once in an incognito window as well. Browsing while logged in hides caching problems and anything that only behaves correctly for an administrator.
Post-Migration Housekeeping
A handful of small jobs inside the migrated dashboard clear up the issues that show up a day or two later.
- Flush the permalinks. Go to Settings, Permalinks, confirm the structure is right, and click Save Changes without changing anything. This rewrites the rules on the new environment and fixes most unexpected 404s.
- Clear any caches. Both plugin caches and server caches, so you are looking at the migrated site and not a stale copy.
- Reconnect anything tied to the old address. Licences, API keys, SMTP, payment gateways, webhooks and analytics often key on the site URL and need re-authorising.
- Remove development only tools. Debug plugins, query monitors and test data do not belong on a site a client is about to see.
- Send a test through every form. Contact forms and checkout emails are the things most likely to fail quietly after a move.
What You Can Do Once the Site Is on InstaWP
Getting off your laptop is the point of the exercise. Once the site is in your account, it can become several different things.
| Use it as | What that gives you |
|---|---|
| A shareable preview | A real URL you can send to a client or colleague, with no local tunnel to keep open. |
| A staging site | A safe place to test changes, with 2-way sync between staging and the live site. |
| A reusable starting point | Save the site as a template or snapshot and spin up new WordPress sites from it in seconds. |
| A hosted production site | Host the site on InstaWP and map your own custom domain to it. |
| A site you move again | Use the migration tools to move it to another host when the project requires it. |
One thing worth doing before any of that: test thoroughly first, and only map the production domain once you are happy with what you see.
If you prefer to work from the terminal day to day, InstaCLI can also run local sites of its own on WordPress Playground, and InstaWP CLI local development keeps one of those in step with a cloud site through instawp local push and instawp local pull. Those two commands are for sites InstaCLI created. For a site that already lives in LocalWP, instawp migrate push from Method 1 is the right command.
Common Problems and How to Fix Them
The table covers the problems you are most likely to hit when moving a LocalWP site to InstaWP: ones that start on the local side (the terminal, the MySQL tools or the archive size) and ones caused by URLs that still point at the local address. Find what you see in the first column, then apply the fix. The fixes are the same whether you used the InstaCLI push or the ZIP import.
| What you see | Likely cause | What to do |
|---|---|---|
| The push refuses to start | The terminal is not in the WordPress root, or InstaCLI is not signed in. |
Run ls and confirm wp-config.php is there, then run
instawp whoami and instawp login if needed.
|
mysqldump is not found |
The MySQL client tools are not on your PATH.
|
Run the push from LocalWP’s Site shell, which bundles mysqldump,
or install the MySQL client tools for your system.
|
| The upload stops partway | The local site or terminal was closed, or the internet connection dropped. | Keep the local app, site, shell, and internet connection running, then run the push again. Each run creates a new site, so check the Sites page for a partial copy. |
| The ZIP file will not upload | The archive exceeds the 1 GB upload limit. | Use the InstaCLI push method instead, which is not restricted by the ZIP upload limit. |
| Pages return 404 errors after the move | The WordPress permalink rules were not rebuilt. | Open Settings → Permalinks in WordPress and click Save Changes. |
| Images or links still point to the local address | Cached pages or a hardcoded URL in the theme or custom code. | Clear all caches first. Then search the theme and custom code for references to the old local URL. |
| Forms or payments stop working | API keys, licences, or integrations are tied to the old site URL. | Re-authorise SMTP services, payment gateways, plugin licences, and webhooks on the new address. |
Frequently Asked Questions
Does my local site need a public URL to migrate it?
No. Both methods in this guide start on your machine and send the site outwards, so a .local or localhost address is fine. Nothing has to reach in to your computer.
Does this work on Windows?
Yes. On Windows, LocalWP’s Site Shell normally opens in PowerShell, and you run the same instawp migrate push command there. The ZIP import method runs entirely in the browser, so the operating system makes no difference at all.
Does it work with XAMPP, MAMP or WAMP as well as LocalWP?
Yes, for the push method. Instead of using LocalWP’s site shell, open your own terminal, change into the folder containing the local WordPress install, and run instawp migrate push there. mysqldump has to be on your PATH, which XAMPP, MAMP and WAMP all ship but do not always add.
Will migrating overwrite a site I already have on InstaWP?
No. Both methods create a brand new site in your account. Overwriting a destination is what the separate AI Migration tool does, and that is a deliberate choice you make there.
How big a site can I move?
The ZIP import is bound by the 1 GB upload limit. The push method is the one to use for anything larger, since it uploads from your machine rather than through a browser upload.
Are my URLs and file paths fixed automatically?
Yes. The site is reconfigured to run on its new address as part of the transfer, so you are not left doing a manual search and replace across the database. Hardcoded addresses inside custom code are the one thing worth checking by hand.
Can I keep working locally after I push?
Yes. Your local site is untouched by the move. If you want the two to stay in step afterwards, look at 2-way sync, or push later changes from the terminal with instawp sync push for files and instawp db push for the database.
Can I move the site on to a different host afterwards?
Yes. Once the site is live on InstaWP it is an ordinary, reachable WordPress site, so the usual migration routes are all open to you, including InstaWP’s own migration tools. You are not locked in.
Do I still need the InstaWP Connect plugin to push a local site?
No. The old wp instawp local push command from the InstaWP Connect plugin has been retired. InstaCLI signs in on its own through instawp login and does not need any plugin on the local site.
What plan is the pushed site created on?
The Sandbox plan, which is meant for development and testing. The push reports success and the site works, so it is easy to miss. Change the plan from the Sites page in your InstaWP dashboard before you map a domain or send it real traffic.
Move your local build somewhere people can see it
A site that only runs on your laptop cannot be shared, reviewed or launched. Both methods in this guide take minutes, need no server access, and end with a real WordPress site you can send to a client, put behind your own domain, or host outright. New accounts start with $25 in credits, so you can move a build up and try the whole thing before you commit to a plan.