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

# ol clone module

Clone a module to a new directory

The **ol clone module** command clones a module from the OL Hub into a newly-created directory in the command's execution context directory. 

## Rules

* Login to the hub.
* The cloned module exists in the OL Hub
* The command's execution context directory should not contain a folder with the module name.

## Syntax

ol clone module MODULE\_NAME \[OPTIONS]

## Arguments

### MODULE\_NAME

The name of the module to be cloned. To display the names of the modules in your OL Hub account, run the [**ol list modules**](https://ol-hub.readme.io/docs/ol-list-modules) command.

## Example

![](https://files.readme.io/ea4d156-vertical_bar.png)  **Cloning a module**

```Text Windows
> ol clone module sap-module
```
```Text macOS
$ ol clone module sap-module
```