# import redshift

> Import a data contract from an Amazon Redshift schema.

# `datacontract import redshift`

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

Import a data contract from an Amazon Redshift schema.

```bash
datacontract import redshift [OPTIONS]
```

| Option | Default | Description |
|---|---|---|
| `--source` | — | The Redshift endpoint host of the cluster or serverless workgroup. |
| `--port` | — | The Redshift port (default 5439). |
| `--database` | — | The database name. |
| `--schema` | — | The Redshift schema name. |
| `--table` | — | Name of a table to import (repeat for multiple tables, omit for all tables in the schema). |
| `--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 redshift --source my-cluster.abc123.us-east-1.redshift.amazonaws.com --database dev --schema public --output datacontract.yaml
```

Guide: **[Import: Amazon Redshift](../../imports/redshift.md)**.
