# import powerbi

> Import a data contract from a Power BI semantic model (.pbit, .bim, or .json) file.

# `datacontract import powerbi`

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

Import a data contract from a Power BI semantic model (.pbit, .bim, or .json) file.

```bash
datacontract import powerbi [OPTIONS]
```

| Option | Default | Description |
|---|---|---|
| `--source` | — | Path to a Power BI .pbit, .bim, or .json semantic model file. |
| `--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 powerbi --source SemanticModel.pbit --output datacontract.yaml
```

Guide: **[Import: Power BI](../../imports/powerbi.md)**.
