dbt Command reference
You can run dbt using the following tools:
- In your browser with the Studio IDE
- On the command line interface using the dbt CLI or open-source dbt Core.
A key distinction is that dbt CLI and Studio IDE are designed to support safe parallel execution of dbt commands, leveraging dbt platform's infrastructure and its comprehensive features. In contrast, dbt Core doesn't support safe parallel execution for multiple invocations in the same process. Learn more in the parallel execution section.
Parallel execution
dbt platform allows for concurrent execution of commands, enhancing efficiency without compromising data integrity. This enables you to run multiple commands at the same time. However, it's important to understand which commands can be run in parallel and which can't.
In contrast, dbt-core doesn't support safe parallel execution for multiple invocations in the same process, and requires users to manage concurrency manually to ensure data integrity and system stability.
To ensure your dbt workflows are both efficient and safe, you can run different types of dbt commands in parallel — for example, dbt build (write operation) can safely run alongside dbt parse (read operation). However, you can't run dbt build and dbt run (both write operations) in parallel.
dbt commands can be read or write commands:
| Loading table... |
Available commands
The following sections outline the commands supported by dbt and their relevant flags. They are available in all tools and all supported versions unless noted otherwise. You can run these commands in your specific tool by prefixing them with dbt — for example, to run the test command, type dbt test.
You can also call these commands and flags programmatically using dbtRunner.invoke. For details, refer to Programmatic invocations.
For information about selecting models on the command line, refer to Model selection syntax.
Commands marked ❌ indicate write commands, commands marked ✅ indicate read commands, and commands marked N/A indicate that parallel execution isn't relevant for that command.
Some commands are not yet supported in the dbt Fusion engine or have limited functionality. Refer to the Fusion supported features page for details.
| Loading table... |
Note, use the --version flag to display the installed dbt Core or dbt CLI version. (Not applicable for the Studio IDE). Available on all supported versions.
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.