Install the dbt VS Code extension Preview
The dbt extension — available for VS Code and Cursor, and Windsurf — makes dbt development smoother and more efficient. dbt v1 and v2 both support the extension — refer to Version compatibility for which features need which setup.
This is the only official dbt Labs VS Code extension. Other extensions can work alongside the dbt VS Code extension, but they aren't tested or supported by dbt Labs.
Prerequisites
To use the extension, you need the following:
| Prerequisite | Details |
|---|---|
| Project files | You need a profiles.yml file. You may also need a dbt_cloud.yml file for some dbt platform features or credential-based workflows. You don't need a dbt platform project to use the extension. |
| Editor | VS Code, Cursor, or Windsurf. |
| Operating system | macOS, Windows, or Linux. |
| Local configuration (optional) | Configure the extension to mirror your dbt environment locally and set any environment variables required by your project. |
| Project migration support (optional) | The extension has dbt-autofix built in, so you can fix deprecations from the Problems pane or in a single pull request. You can also use the Migrate dbt v1 to dbt v2 agent skill or run dbt-autofix yourself. |
Install the extension
-
In your editor, open the Extensions tab and search for
dbt. -
Locate the extension from the publisher
dbtLabsIncordbt Labs Inc, then click Install. -
Open a dbt project in your editor. Make sure the project is added to your current workspace.
-
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.
-
If dbt isn't installed, the extension prompts you to download and install it. Follow the notification steps, or install it manually from the command line.
-
Run the VS Code extension upgrade tool to check whether your project is ready for v2 and fix any errors or deprecations.
-
Optional: Configure your local environment to mirror your dbt platform environment and set environment variables required by your project.
The dbt language server is part of the v2 binary rather than a separate download — the extension runs it through v2. If you install v2 manually (for example, in an air-gapped environment) instead of letting the extension manage it, use the version compatibility matrix to pick a binary that matches your extension version.
You're ready to use the dbt extension. Next, you can:
- Follow the getting started workflow to finish setup.
- Upgrade your project to dbt v2 if you're migrating from v1.
- Sign in or register for a dbt platform account to keep using advanced features after the 14-day trial.
- Review the limitations and unsupported features.
Getting started
After v2 and the dbt VS Code extension are installed, the dbt logo appears in the sidebar. Click it to open the Get started panel.
The Get started panel is a persistent setup companion available in VS Code and Cursor. It monitors your environment and shows the most important next action. As new v2 releases ship or your project changes, the panel resurfaces relevant steps automatically. For more details refer to Upgrade to dbt v2.
The panel guides you through:
- Install or update dbt v2: Detects whether the v2 binary is missing or outdated and installs or updates it with a single click.
- Open project: Checks for a
dbt_project.ymlfile in your workspace to confirm a valid dbt project is open before proceeding. - Check dbt v2 compatibility: Guides you through upgrading your project to v2. You can choose between an agentic migration or manual CLI onboarding — refer to Upgrade to dbt v2.
- Register: Confirms you've registered your email to use the extension beyond the 14-day trial period — refer to Sign in or register.
When all setup steps are complete, the panel shows a green Extension setup complete button.
Next steps
Once you've installed the dbt VS Code extension, go to the next pages to get started:
- Review the Upgrade to dbt v2 page to upgrade your dbt project to the next-gen engine today!
- Sign in or register for a free dbt platform account to keep using advanced features after the 14-day trial.
- Review the limitations and unsupported features.
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.





