Skip to content

context new

The new command scaffolds a new data product — an OSI model with companion governance and rules files — inside your existing project.

Terminal window
context new <name>
ArgumentDescription
nameName for the data product (e.g. sales-analytics, inventory)
OptionDescriptionDefault
--source <name>Bind to a named data source from contextkit.config.yaml
--context-dir <path>Path to context directorycontext/
Terminal window
context new sales-analytics

Creates:

context/
├── models/sales-analytics.osi.yaml
├── governance/sales-analytics.governance.yaml
├── governance/sales-analytics.rules.yaml
└── owners/default-team.owner.yaml
Terminal window
context new inventory --source warehouse

The scaffolded model includes a data_source: warehouse reference matching your config:

contextkit.config.yaml
data_sources:
warehouse:
adapter: postgres
connection: postgres://localhost:5432/warehouse

A single ContextKit project can contain multiple data products. Each is an independent model with its own governance, rules, and tier score:

Terminal window
context new sales-analytics --source crm
context new inventory --source warehouse
context new marketing-attribution --source analytics-db

All data products compile together and are served through the same MCP server. Run context tier to see the scorecard for each, or context blueprint to export their AI Blueprints.