---
updatedAt: 2025-06-03T20:37:01.000Z
agentTools:
  projectIndex: https://docs.ol-hub.com/llms.txt
---

# ol export project

Export project metadata

Export a project from the OL Hub to your local machine. The project is downloaded in a compressed form with an OPZ file extension (OpenLegacy Project Zip). 

Usually, [creating a project-based service](https://ol-hub.readme.io/docs/creating-microservice-based-apis-with-ol-hub) is done in one process on OL Hub. After you prepare the project metadata by setting modules, assets, and contracts, you can continue straight to generating the service in OL Hub.

Sometimes, however, it makes more sense to separate project metadata preparation from service generation. You can export the entire project metadata into one compressed file called **OpenLegacy Project Zip Archive (OPZ)** to achieve this separation. 

You can then send the OPZ file to users that do not have access to the OL Hub but can deploy the service by embedding the file in an OpenLegacy run-time component. 

## Rules and Prerequisites

Login to the OL Hub. 

## Syntax

ol export project PROJECT\_NAME \[OPTIONS]

## Arguments

**PROJECT\_NAME  (required)**

The name of the project to be exported from the OL Hub

## Options

**--license**

Include in the exported project the OL Hub user license file (default: false).

**--connection**

Include in the exported project the connection properties for all modules (default: false). 

**--path**

The exported OPZ file destination location on the local machine. By default, the location is the current folder.

**--project-version, -pv**

The project version number

**--include-all-assets**

Include all assets existing in the modules

**--compatability-ver, -cv**

The desired compatibility version of the exported project (default: latest)

## Examples

![](https://files.readme.io/51561b5-vertical_bar.png)  **Exporting a project**

```Text Windows
temp> ol export project project-mf-cics-cobol
```
```Text macOS
temp$ ol export project project-mf-cics-cobol
```

![](https://files.readme.io/51561b5-vertical_bar.png)  **Exporting a project including license and connection properties**

```Text Windows
temp> ol export project project-mf-cics-cobol --license --connection
```
```Text macOS
temp$ ol export project project-mf-cics-cobol --license --connection
```

![](https://files.readme.io/51561b5-vertical_bar.png)  **Exporting a project with a specified API compatibility version**

```Text Windows
temp> ol export project my-project-name --compatability-ver 2023-01-09
```
```Text macOS
temp$ ol export project my-project-name --compatability-ver 2023-01-09
```