Skip to main content

Upgrade to dbt v2

After installing the dbt VS Code extension, use the Get started panel to upgrade your project to dbt v2 if you haven't already done so.

note

If you are already running dbt v2, you must be on version 2.0.0-beta.66 or higher to use the upgrade tool.

The dbt extension provides two ways to upgrade your project to dbt v2 from the Get started panel:

  • Agentic migration: Runs the dbt v1-to-dbt v2 migration with or AI agents. Select this option in the Check dbt v2 compatibility step. Requires or AI agents.
  • Manual CLI onboarding: Walks you through the upgrade in your terminal. Use this if you prefer the CLI or don't use or AI agents.

Agentic migration

  1. Select Start with an agent from the Check dbt v2 compatibility step.
  2. The extension installs the Migrate dbt v1 to dbt v2 agent skill to your editor's skill folder, then opens your AI chat with a migration prompt.
  3. Click Install & open chat to continue. The chat opens with the migration prompt already loaded, so you can run it directly from the editor. No CLI commands are required.

Manual CLI onboarding

The Get started panel has an upgrade assistant that guides you through the upgrade process in your terminal.

The dbt extension Get started panel and upgrade assistant.The dbt extension Get started panel and upgrade assistant.

You can start manual onboarding in either of the following ways:

  • From the Get started panel, select Start manually in CLI in the Check dbt v2 compatibility step.
  • Follow the prompts in the upgrade assistant to complete the upgrade.
  • Run dbtf compile to verify your project is ready for dbt v2.
The message received when you have completed upgrading your project to v2.The message received when you have completed upgrading your project to v2.

Once the upgrade is completed, you're ready to dive into all the features that dbt v2 has to offer!

Next, sign in to a dbt platform account if you want to use the extension's dbt platform capabilities.

Next steps

Once you've upgraded your project to dbt v2, you can:

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

0
Loading