# export trained-model

The `export trained-model` command exports a trained model to an S3 bucket. It is used, along with the `import trained-model` command, to transfer ML models between two Aizen installations. A data source must be configured to define the S3 bucket that will hold the exported model.

## Syntax

{% code overflow="wrap" %}

```
export trained-model <model name>,<run id>,source=<datasource name> 
```

{% endcode %}

## Parameters

| Parameter           | Description                                                                           |
| ------------------- | ------------------------------------------------------------------------------------- |
| `<model name>`      | The name of the ML model                                                              |
| `<run id>`          | The specific training run identifier                                                  |
| `<datasource name>` | The data source that contains the S3 bucket definition where to put the trained model |

## Example

{% code overflow="wrap" %}

```
export trained-model fare_2_ml_model,1,source=s3_export_datasource
```

{% endcode %}
