# import unity

> Import a data contract from Databricks Unity Catalog (alias of `import databricks`).

# `datacontract import unity`

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

Import a data contract from Databricks Unity Catalog (alias of `import databricks`).

```bash
datacontract import unity [OPTIONS]
```

| Option | Default | Description |
|---|---|---|
| `--source` | — | Path to a Unity Catalog TableInfo JSON file. If omitted, imports from the Unity API using --table. |
| `--table` | — | Full name of a table in the Unity Catalog (repeat for multiple tables). |
| `--output` | — | File path where the Data Contract will be saved. If not provided, it will be printed to stdout. |
| `--json-schema` | — | The location (url or path) of the ODCS JSON Schema |
| `--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 databricks --table catalog.schema.my_table --output datacontract.yaml
```
