# import s3

> Import a data contract from files in S3.

# `datacontract import s3`

{/* AUTOGENERATED from `datacontract --help`: do not edit by hand; regenerate with update_command_docs.py */}

Import a data contract from files in S3.

```bash
datacontract import s3 [OPTIONS]
```

| Option | Default | Description |
|---|---|---|
| `--source` | — | The S3 location of the files, e.g. s3://my-bucket/orders/*.json. |
| `--format` | — | File format: json, csv, parquet or delta (inferred from the suffix). |
| `--delimiter` | — | For JSON: new_line, array or none. Detected automatically when omitted. |
| `--endpoint-url` | — | Endpoint of an S3-compatible store, e.g. http://localhost:9000. |
| `--output` | — | File path where the Data Contract will be saved. If not provided, it will be printed to stdout. |
| `--owner` | — | The owner or team responsible for managing the data contract. |
| `--id` | — | The identifier for the data contract. |
| `--debug` / `--no-debug` | — | Enable debug logging |

```bash
datacontract import s3 --source s3://my-bucket/orders/*.json --output datacontract.yaml
```

Guide: **[Import: Amazon S3](../../imports/s3.md)**.
