Skip to main content
author and refactor dbt models, tests, and the semantic layer

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.
Arguments Options

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.
Arguments Options

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.
Arguments Options

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. 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. Repo-only and free.
Arguments Options

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.
Arguments Options

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.
Arguments Options

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.
Arguments Options

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. Mutation runs dbt on the dev target and is billed on metered connectors.
Options

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.
Arguments Options

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.