> ## 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="extension" data-version="5.0" data-developer="MainWP" data-changelog-url="https://mainwp.com/changelog/mainwp-staging-extension/" 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

***

<Info>
  **Extension Add-on** - This add-on provides standalone functionality within MainWP Dashboard. No third-party plugins required.
</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 requires the [WP Staging](https://wordpress.org/plugins/wp-staging/) plugin on your Child Sites.
**Please note** that the Staging extension works only with the free version of the WP Staging plugin.

## 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 will automatically install the MainWP Child plugin on the child site and connect it to your MainWP Dashboard.
MainWP Staging Extension is extensively tested by the MainWP team; however, it's still a work in progress **(Beta release).
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 the [WP Staging](https://wordpress.org/plugins/wp-staging/) plugin 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 Extension.](/dashboard/overview/manage-extensions#install-extensions)

### Installing the Plugin

For the proper use of the MainWP Staging Extension, you need to install the Staging Plugin on your child sites. **Please note** that the Staging extension works only with the free version of the WP Staging plugin.

### Install from MainWP Dashboard

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

  <Step title="Go to the MainWP > Plugins > Install 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 > 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 will copy the database and files from the live site to the staging site again. To do that,

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

  <Step title="Go to the MainWP > Add-ons > 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>

## 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 > 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 > 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 > 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 the 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 live 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
