# datacontract/datacontract-cli

Enforce Data Contracts

Repository: https://github.com/datacontract/datacontract-cli
Canonical: https://ross.abutalabs.com/products/datacontract-cli
Homepage: https://cli.datacontract.com
Language: JavaScript
License: MIT
License Family: permissive
Topics: datacontract, datamesh, bigquery, data-contract, data-contracts, data-engineering, data-governance, data-mesh, data-product, data-quality, databricks, dbt, odcs, open-data-contract-standard, schema, snowflake
Last push: 2026-09-02T23:46:47+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 100, release rhythm 87, longevity 81
- inputs: {"age_days": 1136, "days_push": 0, "days_rel": 7, "gap_med": 8, "n_releases_24m": 64}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1053, forks 278 (observed 2026-09-03T02:15:11.135518+00:00)

## What it is
An open-source Python CLI for working with data contracts using the Open Data Contract Standard (ODCS). It lints contracts, connects to data sources like Snowflake, BigQuery, Databricks, and Postgres to run schema and quality tests, and imports/exports contracts across 25+ formats.

## Use cases
- enforce data contracts in ci/cd pipelines
- validate data quality against a contract
- lint open data contract standard yaml files
- export data contract to sql ddl or dbt models
- import existing warehouse schema into a data contract
- test that a data product complies with schema and freshness expectations

## When to choose
- you practice data mesh or data product governance and need machine-readable contracts
- you want automated schema and quality checks against live warehouses in CI
- you need to generate downstream artifacts (DDL, dbt, JSON Schema, Avro) from a single contract file

## When to avoid
- you need a GUI or dashboard-based data quality monitoring solution
- your data sources are unsupported by its connectors
- you only need ad-hoc profiling without contract definitions

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, testing, etl, data-science, developer-tools, ci-cd
- domain: data-science, databases, analytics, developer-tools
- platform: cli, python, cross-platform
- tags: data-contracts, odcs, data-mesh, data-quality, data-governance, schema-validation, dbt, snowflake, bigquery, databricks, data-engineering, automation, docker, web-server

## Member repositories
- datacontract/datacontract-cli (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:11.135518+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:00:28.589829+00:00, confidence not recorded.
  - readme: https://github.com/datacontract/datacontract-cli (fetched 2026-09-03T02:15:11.135518+00:00, sha e33a1fd25e77)
  - homepage: https://cli.datacontract.com (fetched 2026-08-29T13:01:54.466662+00:00, sha 56bdc8f04440)
  - site_page: https://docs.datacontract.com/installation (fetched 2026-08-29T13:01:54.483723+00:00, sha 2a633f77e9a8)
  - site_page: https://docs.datacontract.com (fetched 2026-08-29T13:01:54.476110+00:00, sha 7beeeafda73d)
  - site_page: https://docs.datacontract.com/quickstart (fetched 2026-08-29T13:01:54.478237+00:00, sha fdb1490b4b1e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
