Install dbt locally
Get dbt running on your machine in a few minutes. Choose your path:
- Fusion + dbt extension (recommended)
- dbt Core v2
- dbt Core v1
Install the Fusion CLI Preview
The Fusion CLI delivers dbt Fusion engine performance benefits (faster parsing, compilation, and execution) but doesn't include LSP features. For the best dbt Fusion engine experience, install the dbt VS Code extension in VS Code or a compatible IDE.
Choose your preferred installation method:
Run the following command to verify your installation:
dbt --version
You can use dbt or its Fusion alias dbtf (handy if you already have the Core or platform CLI installed). Default install path:
- macOS/Linux:
$HOME/.local/bin/dbt - Windows:
C:\Users\<username>\.local\bin\dbt.exe
The installer adds this path automatically, but you may need to reload your shell for the dbtf command to work.
Install the extension
Install the dbt VS Code extension from the marketplace for VS Code and Cursor or Windsurf.
-
In your editor, open the Extensions tab and search for
dbt. -
Locate the extension from the publisher
dbtLabsIncordbt Labs Inc, then click Install. -
Confirm that the extension is active by checking for the dbt Extension label in the status bar. Hover over the label to view diagnostic information.
-
After the extension activates, it automatically downloads the correct dbt Language Server (LSP) for your operating system.
Refer to the dbt VS Code extension docs for more information.
Troubleshooting
Common issues and resolutions:
- dbt command not found: Add the installation location to your
$PATH. - Version conflicts: Check that no other dbt Core or dbt CLI versions are installed or active on your machine.
- Installation permissions: Make sure your user account can install software locally.
Frequently asked questions
-
Can I revert to my previous dbt installation?
Yes. To test Fusion without affecting your existing workflows, use a separate environment or virtual machine.
More information about Fusion
Fusion marks a significant update to dbt. While many of the workflows you've grown accustomed to remain unchanged, there are a lot of new ideas, and a lot of old ones going away. The following is a list of the full scope of our current release of the Fusion engine, including implementation, installation, deprecations, and limitations:
Install dbt Core v2 CLI Alpha
dbt Core v2 is under active development and not recommended for production use. Features and APIs may change before the stable release. For stable local development, use Fusion.
dbt Core v2 is the next major version of dbt Core, built on the dbt Fusion engine runtime. Install it with pip, same as v1, but target the v2 prerelease package.
More information about Fusion
Fusion marks a significant update to dbt. While many of the workflows you've grown accustomed to remain unchanged, there are a lot of new ideas, and a lot of old ones going away. The following is a list of the full scope of our current release of the Fusion engine, including implementation, installation, deprecations, and limitations:
Install dbt Core v1 CLI
dbt Core v1 is the original open-source dbt engine. Install it with pip, Docker, or from source.
Most command-line tools, including dbt, support a --help flag that shows available commands and arguments. With dbt, you can use --help in two ways:
— dbt --help: Shows available dbt commands
— dbt run --help: Shows available flags for the run command
Next steps
- Configure environment variables to manage credentials.
- Configure your profiles.yml file.
- Configure your data platform connection.
- Create your first dbt project using the
dbt initcommand.
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


