> ## Documentation Index
> Fetch the complete documentation index at: https://docs.elementary-data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Upgrade Elementary dbt package

On new releases, you will need to upgrade the Elementary dbt package.

## Upgrade Elementary dbt package

1. On your `packages.yml` file, change the version to the latest:

```yml packages.yml theme={null}
packages:
  - package: elementary-data/elementary
    version: 0.26.1
```

2. Run the command:

```shell theme={null}
dbt deps
```

3. When there's a change in the structure of the Elementary tables, the minor version is raised. If you're updating a minor version (for example 0.22.X -> 0.23.X), run this command to rebuild the Elementary tables:

```shell theme={null}
dbt run --select elementary
```

> [!NOTE]
>
> **Note:** For CLI upgrades, refer to the [Elementary OSS upgrade guide](https://docs.elementary-data.com/oss/release-notes/upgrading-elementary.md#upgrade-elementary-cli).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.