Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

CLI commands

Every Vulcan CLI command, its options, and example output: planning and running models, auditing data quality, diffing environments, and managing state.

The Vulcan CLI is your primary interface for your data pipeline. Use it to plan changes, run models, check data quality, and manage your project.

Usage: vulcan [OPTIONS] COMMAND [ARGS]...

  Vulcan command line tool.

Options:
  --version            Show the version and exit.
  -p, --paths TEXT     Path(s) to the Vulcan config/project.
  --config TEXT        Name of the config object. Only applicable to
                       configuration defined using Python script.
  --gateway TEXT       The name of the gateway.
  --ignore-warnings    Ignore warnings.
  --debug              Enable debug mode.
  --log-to-stdout      Display logs in stdout.
  --log-file-dir TEXT  The directory to write log files to.
  --dotenv PATH        Path to a custom .env file to load environment
                       variables.
  --help               Show this message and exit.

Commands:
  audit                   Run audits for the target model(s).
  check_intervals         Show missing intervals in an environment,...
  clean                   Clears the Vulcan cache and any build artifacts.
  create_deploy_yaml      Generate a DataOS Vulcan resource deploy YAML...
  create_external_models  Create a schema file containing external model...
  create_test             Generate a unit test fixture for a given model.
  destroy                 The destroy command removes all project resources.
  diff                    Show the diff between the local state and the...
  environments            Prints the list of Vulcan environments with its...
  evaluate                Evaluate a model and return a dataframe with a...
  export                  Commands for exporting the DAG, joins, metadata,...
  fetchdf                 Run a SQL query and display the results.
  format                  Format all SQL models and audits.
  import_semantic_view    Import a Snowflake Semantic View into the current...
  info                    Print information about a Vulcan project.
  init                    Create a new Vulcan repository.
  invalidate              Invalidate the target environment, forcing its...
  lint                    Run the linter for the target model(s).
  migrate                 Migrate Vulcan to the current running version.
  plan                    Apply local changes to the target environment.
  render                  Render a model's query, optionally expanding...
  review                  Run an AI-assisted review of model changes.
  rewrite                 Rewrite a semantic SQL query against an...
  rollback                Rollback Vulcan to the previous migration.
  run                     Evaluate missing intervals for the target...
  table_diff              Show the diff between two tables or a selection...
  table_name              Prints the name of the physical table for the...
  test                    Run model unit tests.
  transpile               Transpile a semantic SQL query or REST payload.

audit

Run data quality audits for your models. This command executes the audits attached to your models as assertions and reports pass/fail. Use it to validate data quality before deploying changes.

Example

check_intervals

Check which time intervals are missing for your models in a given environment. Use this to see what data needs backfilling or processing. By default, it respects signals (like upstream dependencies); disable that to see all missing intervals.

clean

Clear Vulcan's cache and any build artifacts. Useful for troubleshooting or starting fresh. It does not delete your models or data, only the cached files.

create_external_models

Generate a schema file for external models that Vulcan can reference. Use this for tables or views that live outside your Vulcan project but that your models still need to reference.

The command writes to inputs.yaml in the project root. If your project already uses inputs.yml, it writes to that file instead. See External models for the file format.

Example

create_deploy_yaml

Generate a DataOS Vulcan resource deploy YAML file. Use this to package your Vulcan project into a deployment manifest you can apply in DataOS environments.

This is a deterministic renderer: every value in the output is either derived from your project, defaulted, or explicitly set in the deployment: block in config.yaml. There are no placeholder values left for you to fill in by hand. By default the manifest is written to <project_name>-deploy.yaml in the project root, and the command fails if that file already exists unless you pass --overwrite. Pass -o - to write to stdout instead. See Configurations for the deployment: field reference.

If the deployment: block sets resources with the deprecated singular keys (resource, request, limit), the command prints a warning. Switch to resources, requests, and limits; see Deployment.

Example

Write the manifest to a specific path, replacing the file if it already exists:

Pipe the result straight into dataos-ctl instead of writing a file first:

create_test

Generate a unit test fixture for a model. The command creates the test file structure and can generate sample data from queries you provide. Use it to set up model tests without writing the boilerplate yourself.

Example

destroy

⚠️ Use with caution! This command permanently removes all Vulcan-managed resources from your data warehouse, including state tables, the cache, and all project resources. It deletes all tables, views, and schemas that Vulcan manages, as well as any external resources created by other tools within those schemas. This is a destructive operation that can't be undone, so make sure you really want to do this before running it.

Example

diff

See what's different between your local project state and a target environment. Use it to review changes before running a plan. The output shows model changes, semantic layer changes, and quality check modifications in a clear diff format.

Example

environments

List all your Vulcan environments and see when they expire. This is helpful for managing development environments and understanding which ones might need cleanup.

Example

evaluate

Preview a model's output without materializing it. Use it for debugging and quick iteration; you see what the model produces without running a full plan or run. Default limit is 1000 rows; you can adjust it.

Example

export

Export project artifacts, such as the model DAG, join graph, contracts, metadata, OKF bundles, and product definitions. Use these commands to generate files that describe your project for downstream tools or integrations.

contract

Export the contract for a model, or for the project, to a file.

dag

Generate a visual dependency graph (DAG) of your data pipeline as an HTML file. Use it to see how models connect and how data flows through your pipeline. Open the file in any browser to explore the graph interactively.

Example

joins

Export the join graph between your models as an HTML file. Use it to see how models are joined together, separately from the model dependency DAG.

Example

metadata

Export metadata for an environment to a file.

Example

okf

Export an OKF bundle for an environment. The bundle is written as a zip archive by default; use --format to write a tar.gz archive or a plain directory tree instead.

Example

product

Export the product definition for an environment to a file.

fetchdf

Run a raw SQL query against your data warehouse and see the results. Use it for quick data exploration or debugging queries without opening a separate database client.

Example

format

Format all SQL models and audits according to your formatting preferences. Keeps your codebase consistent and readable. Customize options like indentation, comma placement, and function name casing.

import_semantic_view

Import a Snowflake Semantic View into your Vulcan project. Vulcan reads the view definition from Snowflake via SYSTEM$READ_YAML_FROM_SEMANTIC_VIEW() and writes one kind: semantic YAML file per table under models/snowflake_semantic/<VIEW_NAME>/. Use this to bring an existing Snowflake Semantic View into the Vulcan semantic layer without writing the YAML by hand.

Example

For the full import workflow including inputs.yaml fixes and querying via the REST API, see Import Snowflake Semantic Views.

info

Show an overview of your Vulcan project. It reports how many models and macros you have and tests your connections to both the data warehouse and state backend. Run it first when setting up a new project or troubleshooting connection issues.

Example

init

Initialize a new Vulcan project. Sets up the project structure and configuration files. Choose the default template or start with an empty project, and optionally set the tenant, project name, and description written to config.yaml.

vulcan init also adds .vulcan/ to .gitignore: it holds the default local state database (see State connection) and shouldn't be committed.

Example

invalidate

Mark an environment for deletion. The janitor process cleans it up on its next run. Use this to remove a development environment you no longer need. Deletion is asynchronous by default; use --sync to wait for it to complete.

Example

migrate

Upgrade Vulcan's internal state to match the current version you're running. This is typically needed when you upgrade Vulcan itself. Important: This command affects all Vulcan users, so make sure to coordinate with your team and contact your Vulcan administrator before running it.

plan

Create and apply a plan that compares your local project state with a target environment and determines what changes to make. Use it to deploy model changes, add new models, and backfill data. The plan shows you exactly what will happen so you can review changes before you apply them.

render

See the SQL Vulcan will execute for a model. Use it to debug and understand how Vulcan transforms model definitions into executable SQL. Optionally expand referenced models to see the full query with all dependencies inlined.

Example

review

Run an AI-assisted review of your model changes against a target environment. Vulcan compares your working tree to the environment's live metadata and plan state, then sends the diff to the LLM configured under review: in config.yaml (see Configurations → Review). review.model is required — the command raises without it. The report is written as an HTML file, by default under .vulcan/reviews.

Requires the review extra: pip install "./vulcan-0.228.1.32-py3-none-any.whl[review]".

rewrite

Rewrite a semantic SQL query against an environment. Pass the query as an argument, read it from a file, or pipe it through stdin. Like transpile, it accepts a caller id and security context attributes, so you can test how row/column-level security applies to a query.

Example

Read the query from a file and pass a security context attribute:

rollback

Revert Vulcan's internal state to the previous migration version. This is useful if a migration caused issues and you need to go back. Important: Like migrate, this command affects all Vulcan users, so coordinate with your team and contact your Vulcan administrator before running it.

run

Process missing time intervals for your models in a target environment. run executes scheduled work based on cron schedules; plan deploys changes. Use run to process new or missing data without changing model definitions.

table_diff

Compare data between two tables or models to see what's different. Use it to validate that changes produce the expected results, compare environments, or debug data discrepancies. Compare entire tables or specific models, and customize how the comparison works.

table_name

Get the physical table name Vulcan uses for a model. Use this when you need to reference the table directly in SQL or other tools, since Vulcan's internal naming may differ from your model name.

test

Run unit tests for your models. Tests validate that your SQL logic works correctly with the test fixtures you've defined. Use it to catch bugs before deploying to production.

lint

Run linting rules on your models to catch issues and enforce code quality standards. Lint specific models or all models in your project. Use it to keep code quality consistent and catch common mistakes early.

transpile

Transpile a semantic SQL query or a REST-style semantic payload against an environment. Use it to see how a semantic query gets translated, propagating a user and security context attributes for testing row/column-level security.

Example

Last updated

Was this helpful?