There may be certain occasions that require you to manually upload your site via WordPress Command Line (a.k.a. WP-CLI). For example, if you are uploading a site larger than 50MB, restoring a site manually, or migrating an existing site to our platform.
WP-CLI is available via SSH for all sites hosted on our Flywheel Cloud Platform.
ssh ssh.getflywheel.com
wp db reset --yes
wp db import database.sql
rm database.sql
It may be necessary to update the database prefix. If so, your site’s prefix can be configured from the Advanced tab of the site’s Flywheel dashboard. You’ll find the option to Manage Database on the Database card.
wp_
but frequently varies. Prefixes almost always end with an underscore. In this example, the database prefix is wp_.
Depending on how the original site was built and how it stores data in the database, this step may not be necessary. Often, the domain which was being used to build the original site imported will remain in the database. You can easily adjust the URLs within the database via CLI. To update any URLs via WP-CLI, you can run the commands listed below.
wp search-replace '//domainyouwishtoreplace.com' '//domainyouwanttoreplacewith.com' --all-tables --skip-columns=guid --dry-run
--skip-columns=guid
flag excludes the GUID column. That column contains the unique value that things like RSS readers use for each post, to mark them as read/unread, and things like that, so you don’t want to update it – even when the site’s domain changes.--dry-run
tag.wp search-replace '//domainyouwishtoreplace.com' '//domainyouwanttoreplacewith.com' --all-tables --skip-columns=guid
If your site is using a theme or page builder, after these steps, you may also need to clear the theme or page builder’s cache in order to see the adjustments on the front end of the site. Here’s a handy help doc on how to do that.
If you don’t feel comfortable with this, you can also easily run a search-and-replace by using a plugin like Better Search Replace.
If you have any questions our Happiness Engineers are here to help!
New to Flywheel? Start here, we've got all the information you'll need to get started and launch your first site!
View allLearn all about managing your Flywheel user account, Teams and integrations.
View allFlywheel hosting plans include a ton of great features. Learn about how to get a free SSL certificate, set up a staging site, and more!
View allAll the server and setting info you'll need to help you get the most out of your Flywheel hosting plan!
View allTips and tricks for managing your sites on Flywheel, including going live, troubleshooting issues and migrating or cloning sites.
View allLearn more about Growth Suite, our all-in-one solution for freelancers and agencies to grow more quickly and predictably.
Getting started with Growth Suite
Growth Suite: What are invoice statuses?
Growth Suite: What do client emails look like?
Learn more about Managed Plugin Updates, and how you can keep your sites up to date, and extra safe.
Restoring Plugin and Theme Management on Flywheel
Managed Plugin Updates: Database upgrades
Managed Plugin Updates: Pause plugin updates
We can help! Check out our Brand Resources page for links to all of our brand assets.
Brand Resources