> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mainwp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Staging

> Create and manage staging sites for your Child Sites directly from your MainWP Dashboard using WP Staging. Test updates safely on staging replicas before applying changes to production sites.

<div id="addon-data" style={{display: 'none'}} data-title="Staging" data-purchase-url="https://mainwp.com/extension/staging/" data-pricing-tier="pro" data-bundle="MainWP Pro" data-addon-type="integration" data-version="5.1" data-developer="MainWP" data-changelog-url="https://mainwp.com/changelog/mainwp-staging-extension/" data-integrates-with="WP Staging" data-owned-by="Jestart LLC" data-privacy-url="https://mainwp.com/mainwp-plugin-privacy-policy/" />

## What You'll Learn

* Installing the Staging Extension and WP Staging plugin
* Creating staging sites from child sites
* Updating and deleting staging sites
* Running updates on staging sites first
* Publishing staging changes through WP Staging Pro

***

<Info>
  **Integration Add-on** - This add-on requires WP Staging Free or Pro on your Child Sites. It does not provide a push-to-production action.
</Info>

**Staging Sites** are sites that duplicate your **Production Sites** *(same hardware, same software, same settings)* so that any change can be tested and evaluated before being placed into production.
In other words, it's a complete but independent copy of your production site, including the database.
The MainWP Staging Extension allows you to create and manage staging sites without hassle.
The MainWP Staging Extension integrates with [WP Staging Free](https://wordpress.org/plugins/wp-staging/) and WP Staging Pro for creating, updating, and deleting staging sites. Publishing staging changes to production is handled separately through WP Staging; see [Push Staging Changes to Production](#push-staging-changes-to-production).

## How it works

Once you trigger the process of creating a staging site, the WP Staging plugin will duplicate all site files and copy them to a subdirectory.
All database tables will be duplicated, but the prefix will be changed.
Once this process is done, the necessary data will be updated in the **wp-config.php** file in the staging site.
Within a couple of seconds, you will have a replica of your child site where you can test updates.

After creating a staging site, MainWP adds the new staging URL to your MainWP Dashboard as a staging site and places it in the **Staging Sites** tag when that tag exists.
MainWP Staging Extension is extensively tested by the MainWP team. If you find any issues, please contact [MainWP Support](https://mainwp.com/mainwp-support/).

## Install and Set the MainWP Staging Extension

Installation of the MainWP Staging Extension requires two important steps:

* Installing the Extension itself on your MainWP Dashboard site
* Installing WP Staging Free or Pro on Child Sites

### Installing the Extension

The MainWP Staging Extension needs to be installed only on your MainWP Dashboard site. You can [install it as any other MainWP add-on.](/dashboard/overview/manage-extensions#install-add-ons)

### Installing the Plugin

Install and activate WP Staging Free or Pro on your production Child Sites. Both editions are recognized by the MainWP Staging Add-on.

The plugin-search instructions below install **WP Staging Free** from WordPress.org. For Pro, use the separate ZIP package from your WP STAGING account and follow the [WP Staging Pro installation guide](https://wp-staging.com/docs/install-wp-staging/).

### Install from MainWP Dashboard

<Steps>
  <Step title="Login to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Sites > Plugins > Install Plugins page" />

  <Step title="In the Search field, enter the plugin name (WP Staging)" />

  <Step title="Press enter on your keyboard" />

  <Step title="After the search results appear, locate the plugin" />

  <Step title="Select the Install this Plugin option" />

  <Step title="Select your child sites">
    [Select your child](/getting-started/mainwp-user-interface) sites
  </Step>

  <Step title="In the Installation Options box, make sure that the Activate after installation option is selected.">
    In the **Installation Options** box, make sure that the **Activate after installation option** is selected.
  </Step>

  <Step title="Click the Button to complete the installation." />

  <Step title="Once the Installation is complete, Sync your MainWP Dashboard" />
</Steps>

For additional help with installing WordPress plugins from the MainWP Dashboard, please review this [help document](/sites/plugins/managing-plugins-with-mainwp).

### Install directly on Child Site

<Steps>
  <Step title="Login to your child site" />

  <Step title="Go to the WP > Plugins > Add New page" />

  <Step title="In the Search field, enter the plugin name (WP Staging)" />

  <Step title="After the search results appear, locate the plugin" />

  <Step title="Click the Install button" />

  <Step title="Click the Activate button" />
</Steps>

For additional help with installing WordPress plugins, please review this [help document.](https://wordpress.org/documentation/article/manage-plugins/) After installing the WP Staging plugin, it is required to Synchronize your sites so your MainWP Dashboard becomes aware that the plugin has been installed and activated.

## Create Staging Site

To create a staging site for a child site,

<Steps>
  <Step title="Login to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Administrative > Staging page" />

  <Step title="In the list of child sites, locate the wanted child site and click the Create Staging Site action">
    In the list of child sites, locate the wanted child site and click the **Create Staging Site** action<img src="https://mintcdn.com/mainwp/4f1gyeWHSqPS10n_/images/add-ons/staging-create-action.png?fit=max&auto=format&n=4f1gyeWHSqPS10n_&q=85&s=75c638be98b72ea03d360e481c9375e7" alt="Screenshot showing Create Staging Site action in child sites list" width="1920" height="947" data-path="images/add-ons/staging-create-action.png" />
  </Step>

  <Step title="On the Create Staging Site page, set your preferences" />

  <Step title="Enter the Staging Site Name">
    Enter the **Staging Site Name**

    1. Exclude/Include database tables
    2. Exclude/Include files
    3. Click the **Create Staging Site** button<img src="https://mintcdn.com/mainwp/4f1gyeWHSqPS10n_/images/add-ons/staging-creation-form.png?fit=max&auto=format&n=4f1gyeWHSqPS10n_&q=85&s=1032eea72ce291d904b775971d8520a3" alt="Screenshot of staging site creation form with database and file exclusion options" width="1920" height="947" data-path="images/add-ons/staging-creation-form.png" />
  </Step>
</Steps>

## Update a Staging Site

Updating a staging site copies the selected database tables and files from the live site to staging again. This can overwrite changes on staging; it does not publish staging changes to production. To refresh the staging copy,

<Steps>
  <Step title="Login to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Administrative > Staging page" />

  <Step title="Locate the wanted child site" />

  <Step title="Click the Manage Staging Sites action (you will be redirected to the page where you can see your staging sites for the child site)">
    Click the **Manage Staging Sites** action (you will be redirected to the page where you can see your staging sites for the child site)
  </Step>

  <Step title="Locate the staging site that you want to update" />

  <Step title="Click the Update action link" />
</Steps>

## Push Staging Changes to Production

The MainWP Staging Add-on does not provide a push-to-production action, including when WP Staging Pro is installed. Publishing takes place in WP Staging on the **production Child Site**.

WP Staging Free does not include the built-in push feature. To use it, install WP Staging Pro with a plan that includes **Push to Live**. Check [WP STAGING's current plan comparison](https://wp-staging.com/pro-features/) for availability.

These steps apply to a staging copy listed in WP Staging on the production site. Create and verify a fresh production backup before starting.

<Steps>
  <Step title="Open the production site's WordPress admin">
    You can also go to **MainWP > Add-ons > Administrative > Staging** (`/wp-admin/admin.php?page=Extensions-Mainwp-Staging-Extension`) and choose **Go to WP Staging** from the production site's action menu.
  </Step>

  <Step title="Select the staging copy in WP Staging">
    Open **WP STAGING > Start / STAGING**, locate the staging copy, and select **Push Changes**.
  </Step>

  <Step title="Review what will be published">
    Choose the files and database tables to copy. Selected tables replace their production counterparts, so protect any newer live orders, comments, or other content.
  </Step>

  <Step title="Start the push and verify production">
    Confirm the selection, start the push, and check the live site when it finishes. Follow [WP STAGING's illustrated push guide](https://wp-staging.com/docs/copy-staging-site-to-live-site/) for the full procedure.
  </Step>
</Steps>

<Note>
  If the staging copy is on a separate server or was created with another tool, the standard push workflow may not apply. Review [WP STAGING's migration guidance](https://wp-staging.com/docs/category/migration/) for that setup. Connecting both sites to MainWP does not create a publishing connection between them.
</Note>

## Delete a Staging Site

To delete a staging site,

<Steps>
  <Step title="Login to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Administrative > Staging page" />

  <Step title="Locate the wanted child site" />

  <Step title="Click the Manage Staging Sites action (you will be redirected to the page where you can see your staging sites for the child site)">
    Click the **Manage Staging Sites** action (you will be redirected to the page where you can see your staging sites for the child site)
  </Step>

  <Step title="Locate the staging site that you want to delete" />

  <Step title="Click the Delete action link" />
</Steps>

## Run Updates on Staging Sites

To run updates on your child sites,

<Steps>
  <Step title="Login to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Sites > Updates page">
    <img src="https://mintcdn.com/mainwp/4f1gyeWHSqPS10n_/images/add-ons/staging-updates-filter.png?fit=max&auto=format&n=4f1gyeWHSqPS10n_&q=85&s=7dac7a526e262d3857bbf1e185001df0" alt="Go to the MainWP > Sites > Updates page" data-og-width="1920" width="1920" data-og-height="562" height="562" data-path="images/add-ons/staging-updates-filter.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/mainwp/4f1gyeWHSqPS10n_/images/add-ons/staging-updates-filter.png?w=280&fit=max&auto=format&n=4f1gyeWHSqPS10n_&q=85&s=3336f31f25a976c74c044d023e476ac7 280w, https://mintcdn.com/mainwp/4f1gyeWHSqPS10n_/images/add-ons/staging-updates-filter.png?w=560&fit=max&auto=format&n=4f1gyeWHSqPS10n_&q=85&s=fc8095d8965802ed88f53d11d9a5cf6f 560w, https://mintcdn.com/mainwp/4f1gyeWHSqPS10n_/images/add-ons/staging-updates-filter.png?w=840&fit=max&auto=format&n=4f1gyeWHSqPS10n_&q=85&s=4cbe8919554ea06288b4a3ce1c4cbe31 840w, https://mintcdn.com/mainwp/4f1gyeWHSqPS10n_/images/add-ons/staging-updates-filter.png?w=1100&fit=max&auto=format&n=4f1gyeWHSqPS10n_&q=85&s=d4ecb5da9a7b84a05b5d427b74b67903 1100w, https://mintcdn.com/mainwp/4f1gyeWHSqPS10n_/images/add-ons/staging-updates-filter.png?w=1650&fit=max&auto=format&n=4f1gyeWHSqPS10n_&q=85&s=155fcd694e498ad9dcdef1b027a048f4 1650w, https://mintcdn.com/mainwp/4f1gyeWHSqPS10n_/images/add-ons/staging-updates-filter.png?w=2500&fit=max&auto=format&n=4f1gyeWHSqPS10n_&q=85&s=7600f7f2dcb2ef8fa685c409e40ee30b 2500w" />
  </Step>

  <Step title="Select Staging sites" />
</Steps>

After selecting **Staging sites**, updates will be performed only on staging sites. After you verify that everything is ok on the staging sites, you can run updates on your production sites.

***

## Related Resources

* [Development Add-ons](/add-ons/development) - Browse all development tools
* [Clone Extension](/add-ons/development/clone-extension) - Clone sites between servers
* [Manage Updates](/sites/updates/manage-updates) - Understanding update management


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.