Skip to main content
author and refactor dbt models, tests, and the semantic layer Choose a command, then expand its usage and options. Every command here also accepts the global options.

dex transform init

Propose a new dbt project as create diffs, for the connector named by --connector or .dex/config.yml. Refuses if a dbt project exists. Free.
ArgumentsOptions

dex transform plan

Validate the edits in --edits-file, diff them against the project, and store a plan. Nothing is written until transform apply. Repo-only.
ArgumentsOptions

dex transform apply

Write a plan’s diffs into the project. With no id, applies the latest unapplied plan. A file edited since planning is a conflict, never an overwrite. Repo-only.
ArgumentsOptions

dex transform build

Run dbt build on a dev target only, after a free preflight and a cost estimate. It runs only with --confirm and --budget.
Options

dex transform deps

Run dbt deps inside the project. It installs the packages the project already declares in packages.yml, at the versions package-lock.yml pins where the lockfile matches that file (dbt resolves them again where it does not); it does not install or upgrade a tool. Repo-confined, with no warehouse spend.

dex transform plans

List the plans in .dex/plans, pending and applied, newest first. Free.

dex transform macro

With no name, list the dbt macros dex ships. With a name, plan scaffolding that macro into the project’s macro directory. Repo-only.
Arguments

dex transform references

Report every use of each name across model SQL, YAML, macros, seeds and installed packages, and say how complete the answer is. With --usage, also how other models filter, branch on or aggregate each model.column. Repo-only and free.
ArgumentsOptions

dex transform rename

Generate one plan renaming a column, var, model, seed, snapshot, macro or source everywhere it is used. Refuses rather than partially applying. Repo-only and free.
ArgumentsOptions

dex transform remove

Plan the removal of a definition and refuse while any read survives, naming each one. Pass the read edits with --edits-file. Repo-only.
ArgumentsOptions

dex transform place

Find the lowest common model that can define the column for every target, define it there, and thread it down. --explain stores no plan. Repo-only and free.
ArgumentsOptions

dex transform declare

Store one plan proposing the measured facts (grain, keys, joins, running totals) each selected model does not yet declare, plus any intent the --edits-file declarations supply. Capped at 25 models; every skipped model is named. Repo-only and free.
ArgumentsOptions

dex transform repair

Read the latest build’s failure of a package model, restate its SQL as a project override (package macros qualified, vars resolved, the package node disabled), convert the columns the error names where the cached profile settles what they hold, compile it, and store it as a plan. Nothing is applied.
Arguments

dex transform test

--scaffold plans a unit_tests skeleton for a model. --mutate plants one defect at a time and reports which ones no test caught; --downstream also counts the tests of the models that read it. Mutation runs dbt on the dev target and is billed on metered connectors.
Options

dex transform compare

Compile the model with and without the plan, then compare output columns and the exact row multiset on the same dev inputs. Returns counts, never rows. equivalent holds for the compared inputs only. Scans go through --confirm --budget on metered connectors.
ArgumentsOptions

dex transform export

Print one stored plan as a document another checkout can verify and apply, with a digest over the whole plan. Repo-only and free.
Arguments

dex transform ground

List the models, sources, columns and relations a plan reads, what could not be resolved, and a fingerprint of the inputs. Repo-only and free.
Arguments

dex transform classify

Read each edit’s content and label it declarative, executable, authority-bearing, data or unknown, naming the signal. Repo-only and free.
ArgumentsOptions

dex transform preflight

Read the rendered profiles.yml for provider-side controls on the dev target and say whether any of them binds. Free and connectionless.
Options
Every command here also accepts the global options. Source: packages/dex-core/src/exmergo_dex_core/cli.py (edit on main). This page is generated; change the source, not the site.