> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/resilience-testing/chaos-engineering/chaos-experiments/export-chaos-experiment.md).

# Export chaos experiment

Guide to export chaos experiment

This topic describes how to export an experiment by downloading the experiment manifest, uploading a manifest to create an experiment and exporting an experiment for future use.

### Prerequisites <a href="#prerequisites" id="prerequisites"></a>

* [Create Experiment](/resilience-testing/chaos-engineering/chaos-experiments/create-experiments.md)
* [Run or Schedule Experiment](/resilience-testing/chaos-engineering/chaos-experiments/run-experiments.md)

You can export chaos experiments for future use. While creating or running an experiment, Chaos Studio automatically saves it for future access through the **Chaos Experiments** sidebar. You can also download the experiment as a manifest file to your machine or save it in a ChaosHub.

### Download Experiment Manifest File <a href="#download-experiment-manifest-file" id="download-experiment-manifest-file"></a>

1. To download the manifest file for an experiment, select the **Chaos Experiments** sidebar option. You can access all the experiments that have been created or run in the past.
2. To export an experiment, select the **`⋮`** icon against the name of the experiment. Select **Download Manifest**. This downloads the experiment file to your machine.

   ![Download Experiment Manifest](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-28081e2c6ddcec99819d96c2d82a63ed78a7f081%2Fdownload-experiment-manifest.png?alt=media)
3. You can directly upload this manifest file while creating a new experiment to use it as a template for the new experiment. You can, as usual, provide the **Name**, **Infrastructure type**, and **Infrastructure** for the chaos experiment and select **Upload YAML**. You can upload the manifest file from your machine or drag and drop the file.

   ![upload yaml](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-3037b440ab2440d7661f88ef234ce8ba49ed4900%2Fyaml-upload.png?alt=media)

{% hint style="info" %}
**NOTE**

An efficient way to save, manage, and distribute the experiments as templates is to use ChaosHubs.
{% endhint %}

### Add an Experiment to ChaosHub <a href="#add-an-experiment-to-chaoshub" id="add-an-experiment-to-chaoshub"></a>

1. To add an experiment to ChaosHub, select the **`⋮`** icon against the name of the experiment.
2. Select **Add to Chaos Hub**. Then, add an experiment name, optionally a description and a category tag, and choose the ChaosHub to add the experiment to from the list of added chaos hubs.

   ![Add Experiment to ChaosHub](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-d1ddaef02fecd85c5f5ed8cd53f341fdee284939%2Fadd-experiment-to-chaoshub.png?alt=media)
3. Select **Save**. Now, you should be able to see this experiment added to your chaos hub. You can access it and use it as a template for your new experiments.

   ![Added Experiment to Hub](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-3f9d793bceca282282fd4c12961652e33a28cb42%2Fadded-experiment-to-hub.png?alt=media)

### Next Steps <a href="#next-steps" id="next-steps"></a>

* [Alerts for Experiments](/resilience-testing/chaos-engineering/chaos-experiments/alert-integration.md)
* [Runtime Variable Support for Experiments](/resilience-testing/chaos-engineering/chaos-experiments/fault-template.md)

{% @harness-feedback/feedback %}
