Init and configuration
Scaffold the project and set config.yaml and usage.yaml.
A data product is a Vulcan project: a folder of files you create, plus two configuration files at its root. This page scaffolds the project and sets up config.yaml (how Vulcan runs) and usage.yaml (what consumers should know).
1. Scaffold the project
From your activated virtual environment, run:
vulcan initThis creates the starter structure: models/, seeds/, dq/, audits/, tests/, macros/, plugins/, policies/, config.yaml, usage.yml, and agreement.md. Vulcan reads usage.yml first and falls back to usage.yaml, so either name works; this guide uses usage.yaml.
Organize models by layer as the project grows. orders-analytics, for example, expands the scaffold into bronze, silver, and gold:
orders-analytics/
├── config.yaml
├── usage.yaml
├── inputs.yaml
├── audits/
├── dq/
├── macros/
├── plugins/
├── policies/
├── seeds/
├── linter/
├── tests/
└── models/
├── bronze/
├── silver/
├── gold/
├── seeds/
├── semantics/
└── metrics/2. config.yaml
config.yaml is the project's central configuration file. It tells Vulcan how to connect, what defaults to apply across models, and how to enforce conventions. Settings here apply project-wide; individual models can override scheduling and kind.
For the full field reference, see References → Vulcan → Configuration.
At minimum, you need a non-empty name and description, tenant (with domain once tenant is set), at least one entry in users, one gateway with a working connection, and model_defaults.dialect:
users isn't optional: config load fails if it's empty or missing, and each username must be a valid user in your DataOS tenant. model_defaults.owner defaults to the first users entry, and must match a listed username if you set it explicitly.
Never write a password directly in this file. Always pull credentials with {{ env_var('VAR_NAME') }}.
The sections that matter
Identity and metadata appear in catalog search and the Data Product Hub. They don't change how Vulcan runs.
name
Yes
Project identifier. Override with DATAOS_RESOURCE_NAME.
tenant
Yes
Tenant the project belongs to. Can also be supplied via DATAOS_TENANT_ID.
description
Yes
Must be non-empty.
domain
Yes
Business domain, for example sales_operations. Required once tenant is set.
version
No
SemVer 2.0, for example 0.1.2 (not v0.1.2).
alignment
No
source_aligned or consumer_aligned.
tags, terms
No
Labels and glossary terms for search.
Gateways tell Vulcan where to connect. On DataOS, use type: depot so credentials stay in the Depot. Locally, use raw connection types with environment variables.
Connection setup is different for each engine, so it's covered on its own page: see Connect engine.
Model defaults apply to every model unless it overrides them. Only dialect is required:
Linter catches Data Product-level issues when you run vulcan plan. Use warn_rules to enforce team conventions without blocking development:
For built-in and custom rules, see References → Vulcan → Configuration → Linters.
Variables are reusable values you reference in SQL models as @name or @VAR('name') (the function form takes an optional default as its second argument). Inside a Jinja block (JINJA_QUERY_BEGIN; … JINJA_END;), use {{ var('name') }} instead:
vde turns Virtual Data Environments on or off project-wide. Defaults to false (direct, forward-only materialization). Set vde: true to get versioned physical tables plus a virtual layer for plan review (not supported on spark or trino gateways, where it's rejected outright). See Plan & run for how this changes what vulcan plan does.
Execution hooks, notification targets, and users also live in config.yaml. These are governance controls, covered in Governance.
3. usage.yaml
usage.yaml sits beside config.yaml and describes the product's business context. The Data Product Hub reads it and shows it to consumers, so they know what the product is good for and where it falls short.
Without usage.yaml, that context lives in someone's head or a Slack thread. Every new consumer, human or AI agent, has to guess intent by reverse-engineering the models or asking around.
Declaring intended use, out-of-scope use, and known limitations here makes that scope part of the product itself. It becomes discoverable, not tribal knowledge.
good_for
Use cases the product is designed to support
not_for
Use cases that are out of scope or misleading
caveats
Known limitations, optionally with severity: low, medium, high
references
External docs, each with title, url, and an optional type: doc, design, dashboard, runbook, or other
A consumer should be able to decide from usage.yaml whether the product fits, before they query a single row.
4. agreement.md
agreement.md is the agreement text a consumer accepts before getting access — data-sharing terms, usage restrictions, retention commitments, whatever the product actually requires. Vulcan doesn't parse this file: there's no schema and no keys. Whatever Markdown you write is read verbatim and shown to consumers as-is, unlike usage.yaml's structured good-for/not-for fields.
vulcan init scaffolds the file, but it's entirely optional: there's no required content, and you can leave it minimal or delete it if the product has no formal agreement. As an example only — not a template to fill in — a minimal file might read:
For a fuller example covering grant of access, permitted and prohibited use, data handling, retention, attribution, and enforcement, see References → Vulcan → Configuration → Agreement.
config.yaml points at it via agreement_path, which defaults to agreement.md. Point it elsewhere, or drop it if the product has no agreement — if nothing resolves at agreement_path, Vulcan logs a warning and continues loading, and consumers get a 404 from GET /api/v1/metadata/agreement instead of terms to accept. config.yaml also has an optional license object that declares the product's license or usage terms; its license.url defaults to the generated agreement.md.
With the project scaffolded and configured, connect your engine.
Last updated
Was this helpful?