# Import / Export

In Tray you can use Projects to manage a classic dev > production setup. Tray has a system whereby you can export and import projects (and individual workflows) as json files.

## Overview

In Tray you can use **Projects** to manage a classic dev > production setup.

Tray has a system whereby you can **export and import projects (and individual workflows) as json files**.

This allows you to fully test your projects and workflows in a 'development' environment (i.e. using test/sandbox accounts and test data) before exporting to a json file, ready to be imported to your 'production' environment.

> **Info:** Please see the page on [Authentication mapping at import](https://tray.ai/documentation/platform/enterprise-core/lifecycle-management/environment-variables/mapping-authentications/) for detailed guidance on how to manage authentications when importing and exporting projects

Please note that in the following image the **Dev** and **Prod** projects are situated in different Orgs - not workspaces within the same Org.

You can export and import between **Orgs** or **workspaces within the same Org**.

Please see the [Setting up your environment](https://tray.ai/documentation/platform/enterprise-core/lifecycle-management/setting-up-your-environment/) and [Understanding workspaces](https://tray.ai/documentation/platform/enterprise-core/organisation-management/users/) pages for further guidance.

> **Info:** All deployment steps, from creating a version to importing and publishing a solution, can be fully automated using our available [Projects](https://tray.ai/documentation/developer/platform-apis/projects) and [Solutions](https://tray.ai/documentation/developer/platform-apis/solutions) API endpoints.

![project-export-diagram](https://tray.ai/documentation/images/platform/enterprise-core/lifecycle-management/import-export/0IUUDRYiqH5S_i3jmL3aLb_project-export-diagram.png)

## Exporting and importing projects

To export a project, simply navigate to the project and select **Export from** the project menu:

![export-project](https://tray.ai/documentation/images/platform/enterprise-core/lifecycle-management/import-export/6oZ0OMO7k52z8AYMwIuZx-_export-project.png)

This will export the project as a json file which you can then import to another workspace.

As shown in the overview diagram above, you would normally export from a 'dev' workspace and import to a 'prod' workspace.

## Exporting and importing workflows

If required, you can also **export individual workflows**.

From a workflow builder navigate to the builder menu and select **Export workflow**:

![export-workflow](https://tray.ai/documentation/images/platform/enterprise-core/lifecycle-management/import-export/62gSLZIQaqbFbfL7MBB8hN_export-workflow.png)

This will export the workflow as a json file which you can then import to another workspace.

Select **Import workflow** to import a workflow json file:

![import-workflow](https://tray.ai/documentation/images/platform/enterprise-core/lifecycle-management/import-export/7QsLEVMv9xBiRfYw5VCw-Z_import-workflow.png)
