> For the complete documentation index, see [llms.txt](https://doc.wearepatchworks.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.wearepatchworks.com/product-documentation/virtual-environments/managing-virtual-environments-versions-and-flows/managing-virtual-environments/duplicating-a-virtual-environment.md).

# Duplicating a virtual environment

## Introduction

If you're creating multiple virtual environments that have similar attributes (partial `name`, `description`, and/or `type`), you can duplicate an existing virtual environment and then edit the duplicated virtual environment as needed.

## What information is duplicated?

<table><thead><tr><th width="221.0859375">Virtual environment item</th><th width="124.1796875">Duplicated?<select><option value="PC07581ImKEx" label="yes" color="blue"></option><option value="fnG1erOZKCak" label="no" color="blue"></option></select></th><th>Notes</th></tr></thead><tbody><tr><td>Name</td><td><span data-option="PC07581ImKEx">yes</span></td><td><p>The original name is duplicated and appended with the word <code>Copy</code>. For example:</p><p></p><p><img src="/files/1Vt5DgebOzUNY19t4ylL" alt=""></p><p></p><p>Here, <code>FR (France) - Production</code> has become <code>FR (France) - Production Copy</code>.</p></td></tr><tr><td>Description</td><td><span data-option="PC07581ImKEx">yes</span></td><td>Duplicated without any changes.</td></tr><tr><td>Type</td><td><span data-option="PC07581ImKEx">yes</span></td><td>Duplicated without any changes.</td></tr><tr><td>Configuration versions</td><td><span data-option="fnG1erOZKCak">no</span></td><td>The duplicated virtual environment is created with a new <a href="/pages/KTZ6hXuhrGRyo0IZD8ax#the-lifecycle-of-a-virtual-environment-version">draft versio</a>n, ready for you to <a href="/pages/ruPHTwHG7hSl7mdBfbiW">configure replacement components</a>. </td></tr><tr><td>Package deployments</td><td><span data-option="fnG1erOZKCak">no</span></td><td>The package deployments panel will be updated if/when you <a href="/pages/vA7dSxodDGw4rcUx8h54">deploy flow versions to this environment via a package</a>.</td></tr><tr><td>Flow deployments</td><td><span data-option="fnG1erOZKCak">no</span></td><td>The virtual environment is duplicated without any flow deployments. This panel will be updated when you choose to deploy flow versions to this environment, either <a href="/pages/QJn3I6Ens3cFWBGOJZMh">individually</a> or via <a href="/pages/vA7dSxodDGw4rcUx8h54">packages</a>. </td></tr><tr><td>Deployment status</td><td><span data-option="fnG1erOZKCak">no</span></td><td><p>If you duplicate a virtual environment which is currently <code>deployed</code> (i.e. it has a <a href="/pages/es0EtoW3LANczzXeVyET">deployed configuration</a> version AND at least one <a href="/pages/QJn3I6Ens3cFWBGOJZMh">deployed and enabled flow deployment</a>), the duplicated environment is created with a <code>not deployed</code> status. For example:</p><p><br><img src="/files/f3spOZ2SPZAqTsIcGdCH" alt=""></p></td></tr></tbody></table>

## The steps

{% stepper %}
{% step %}
**Access virtual environments**

[Log in to the dashboard](https://app.wearepatchworks.com/virtual-environments) and select `virtual environments` | `overview` from the left-hand navigation menu.
{% endstep %}

{% step %}
**Select the required virtual environment**

Click the ellipsis icon associated with the virtual environment that you want to duplicate - for example:

<div align="left"><figure><img src="/files/xbLSZgGRKk2jQwoKlK7b" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**Duplicate the selected virtual environment**

Select the `duplicate` option:

<figure><img src="/files/cWr7mudbAOa8WWyyQo7E" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Update the duplicated virtual environment**

A new virtual environment is added to your virtual environments overview page, ready for you to update as needed - for example:

<div align="left"><figure><img src="/files/RnJwtgekhIm4DfJ9Uj6p" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}
For information about updating a new virtual environment, please refer to the guidance in our [Implementing virtual environments](/product-documentation/virtual-environments/implementing-virtual-environments.md) section.
{% endhint %}
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.wearepatchworks.com/product-documentation/virtual-environments/managing-virtual-environments-versions-and-flows/managing-virtual-environments/duplicating-a-virtual-environment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
