> ## Documentation Index
> Fetch the complete documentation index at: https://elementary-devin-1782754750-bigquery-permissions-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# How to upgrade Elementary?

On new releases, you will need to upgrade the Elementary CLI and the 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: < latest version >
```

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.17.X -> 0.18.X), run this command to rebuild the Elementary tables:

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

## Upgrade Elementary CLI

Just run:

```shell theme={null}
pip install elementary-data --upgrade
```
