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

# Onboarding CLI

## Step 1. Log in to the OL Hub from the CLI

Have at your disposal your API key. You can generate one on the OL Hub.

```Text Windows
temp> ol login --api-key MjhjMDlhMQ5ZA==
```
```Text macOS
temp$ ol login --api-key MjhjMDlhMQ5ZA==
```

## Step 2. Check what data sources you can connect to

1. To display the data source connectors list run the following command:
   ```Text Windows
   temp> ol list connectors
   ```
   ```Text macOS
   temp$ ol list connectors
   ```
   ![](https://files.readme.io/53ffcfb-pointer.png)  The connector list is displayed:
   ```
   connector name                          connector version                      
   ================================================================================
    IBMi-as400-cobol                        1.14.0                                 
    IBMi-as400-pcml                         1.14.0                                 
    cics-cobol                              1.14.0                                 
    ims-cobol                               1.14.0                                 
    mf-ctg-cobol                            1.14.0                                 
    oracle-stored-procedure                 1.14.0                                 
    sap                                     1.14.0
   ```
2. Write down the name of the connector you're looking for. You will need it for the next step.

## Step 3. Comply with the connector prerequisites

Make sure that all connector prerequisites are fulfilled.

![](https://files.readme.io/aa13a28-square.png)  [Go to your selected connector cheat sheet to check for prerequisites](https://ol-hub.readme.io/reference/connector-cheat-sheets).

## Step 4. Create the module for your connector

Provide the connector and the module name to the [**ol create module**](https://ol-hub.readme.io/docs/ol-create-module) command.

```Text Windows
temp> ol create module —connector [connector-name] —name [module-name]
```
```Text macOS
temp$ ol create module —connector [connector-name] —name [module-name]
```

![](https://files.readme.io/53ffcfb-pointer.png)  The module folder containing the module configuration file (**module.json**) is created.

## Step 5. Test the data source connection details

1. Learn what the data source connection details are. To do so, run the [**ol add**](https://ol-hub.readme.io/docs/ol-add) command or the [**ol test connection**](https://ol-hub.readme.io/docs/ol-test-connection) command with the global **--help** option.
   ```Text Windows
   [module-name]> ol test connection --help
   ```
   ```Text macOS
   [module-name]$ ol test connection --help
   ```
   ![](https://files.readme.io/53ffcfb-pointer.png)  The data source connection properties are displayed.
2. Run the [**ol test connection**](https://ol-hub.readme.io/docs/ol-test-connection) command to verify that the data source is accessible and that the connection properties are correct.\
   ![](https://files.readme.io/aa13a28-square.png)  [Go to your selected connector cheat sheet and copy the ol test connection command](https://files.readme.io/aa13a28-square.png).\
   ![](https://files.readme.io/53ffcfb-pointer.png)  The success status of the connection test is displayed.

## Step 6: Add an asset to your module

The next few steps have to be executed from the module folder directory.

1. Go to the module folder:
   ```Text Windows
   temp> cd [module-name]
   ```
   ```Text macOS
   temp$ cd [module-name]
   ```
2. Add an asset to your local file.\
   ![](https://files.readme.io/aa13a28-square.png)  [Go to your selected connector cheat sheet and copy the ol add command](https://ol-hub.readme.io/reference/connector-cheat-sheets).

   ![](https://files.readme.io/53ffcfb-pointer.png)  The asset folder is created in the module folder. The folder contains the asset configuration file (\[asset-name].json) and asset testing resources.

## Step 7. Test the asset

Test the asset you added to verify that you can request and receive actual business data from the data source.

1. From your module folder root go to **assets/\[asset-name]/test\_data/case1/**.
   ```Text Windows
   [module-name]> cd assets/[asset-name]/test_data/case1/
   ```
   ```Text macOS
   [module-name]$ cd assets/[asset-name]/test_data/case1/
   ```

2. To specify the test input data open **in.json**:
   ```Text Windows
   case-1> notepad in.json
   ```
   ```Text macOS
   case-1$ notepad in.json
   ```
   **in.json** contains the information sent to the remote business operation. It consists of the input keys and values that the business operation requires. This is a random example of an in.json file:
   ```
   {
     "dfhcommarea" : {
       "custId" : "",
       "creditCards" : [ {
         "cardNumber" : "",
         "cardType" : "",
         "cardLimit" : 0,
         "cardUsage" : 0
       }, {
         "cardNumber" : "",
         "cardType" : "",
         "cardLimit" : 0,
         "cardUsage" : 0
       }, {
         "cardNumber" : "",
         "cardType" : "",
         "cardLimit" : 0,
         "cardUsage" : 0
       }]
     }
   }
   ```

3. In **in.json**, type the values of the input properties. For example, in the example above you would type the value **412-83254** for the custId key and then save the file.

4. Now you are ready to run [**ol test asset**](https://ol-hub.readme.io/docs/ol-test-asset).

   ```Text Windows
   [module-name]> ol test asset --asset [asset-name]
   ```
   ```Text macOS
   [module-name]$ ol test asset --asset [asset-name]
   ```

   ![](https://files.readme.io/53ffcfb-pointer.png)  The test results are displayed. Make sure that the business fields are populated with values.

   ```
   {
     "dfhcommarea" : {
       "custId" : "412-83254",
       "creditCards" : [ {
         "cardNumber" : "4580123412341234",
         "cardType" : "GOLD",
         "cardLimit" : 5000,
         "cardUsage" : 1783
       }, {
         "cardNumber" : "4580002377826452",
         "cardType" : "PLATINUM",
         "cardLimit" : 10000,
         "cardUsage" : 567
       }, {
         "cardNumber" : "4580887386255265",
         "cardType" : "BUSINESS-G",
         "cardLimit" : 7000,
         "cardUsage" : 4873
       }, {
         "cardNumber" : "4580108372533424",
         "cardType" : "BASIC",
         "cardLimit" : 1000,
         "cardUsage" : 0
       }, {
         "cardNumber" : "4580773685986244",
         "cardType" : "FT-MEMBER",
         "cardLimit" : 2000,
         "cardUsage" : 600
       } ]
     }
   }
   ```

## Step 8. Push the asset to the OL Hub

After you have successfully tested the module and its assets, you can upload it to the OL Hub.

```Text Windows
[module_name]> ol push module
```
```Text macOS
[module_name]$ ol push module
```