@@ -54,7 +54,7 @@ You can install [MetricFlow](https://github.com/dbt-labs/metricflow#getting-star
1. Create or activate your virtual environment `python -m venv venv`
2. Run `pip install dbt-metricflow`
- * You can install MetricFlow using PyPI as an extension of your dbt adapter in the command line. To install the adapter, run `pip install "dbt-metricflow[your_adapter_name]"` and add the adapter name at the end of the command. For example, for a Snowflake adapter run `pip install "dbt-metricflow[snowflake]"`
+ * You can install MetricFlow using PyPI as an extension of your dbt adapter in the command line. To install the adapter, run `python -m pip install "dbt-metricflow[your_adapter_name]"` and add the adapter name at the end of the command. For example, for a Snowflake adapter run `python -m pip install "dbt-metricflow[snowflake]"`
**Note**, you'll need to manage versioning between dbt Core, your adapter, and MetricFlow.
diff --git a/website/docs/docs/cloud/cloud-cli-installation.md b/website/docs/docs/cloud/cloud-cli-installation.md
index 896b3c92f75..6c11a2250a9 100644
--- a/website/docs/docs/cloud/cloud-cli-installation.md
+++ b/website/docs/docs/cloud/cloud-cli-installation.md
@@ -155,13 +155,13 @@ If you already have dbt Core installed, the dbt Cloud CLI may conflict. Here are
- Uninstall the dbt Cloud CLI using the command: `pip uninstall dbt`
- Reinstall dbt Core using the following command, replacing "adapter_name" with the appropriate adapter name:
```shell
- pip install dbt-adapter_name --force-reinstall
+ python -m pip install dbt-adapter_name --force-reinstall
```
- For example, if I used Snowflake as an adapter, I would run: `pip install dbt-snowflake --force-reinstall`
+ For example, if I used Snowflake as an adapter, I would run: `python -m pip install dbt-snowflake --force-reinstall`
--------
-Before installing the dbt Cloud CLI, make sure you have Python installed and your virtual environment venv or pyenv . If you already have a Python environment configured, you can skip to the [pip installation step](#install-dbt-cloud-cli-in-pip).
+Before installing the dbt Cloud CLI, make sure you have Python installed and your virtual environment venv or pyenv . If you already have a Python environment configured, you can skip to the [python -m pip installation step](#install-dbt-cloud-cli-in-pip).
### Install a virtual environment
@@ -200,7 +200,7 @@ We recommend using virtual environments (venv) to namespace `cloud-cli`.
```bash
pip3 uninstall dbt-core dbt
- pip install dbt-adapter_name --force-reinstall
+ python -m pip install dbt-adapter_name --force-reinstall
```
4. Clone your repository to your local computer using `git clone`. For example, to clone a GitHub repo using HTTPS format, run `git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY`.
@@ -243,7 +243,7 @@ To update, follow the same process explained in [Windows](/docs/cloud/cloud-cli-
To update:
- Make sure you're in your virtual environment
-- Run `pip install --upgrade dbt`.
+- Run `python -m pip install --upgrade dbt`.
diff --git a/website/docs/docs/connect-adapters.md b/website/docs/docs/connect-adapters.md
index e301cfc237e..6ccc1b4f376 100644
--- a/website/docs/docs/connect-adapters.md
+++ b/website/docs/docs/connect-adapters.md
@@ -15,7 +15,7 @@ Explore the fastest and most reliable way to deploy dbt using dbt Cloud, a hoste
Install dbt Core, an open-source tool, locally using the command line. dbt communicates with a number of different data platforms by using a dedicated adapter plugin for each. When you install dbt Core, you'll also need to install the specific adapter for your database, [connect to dbt Core](/docs/core/about-core-setup), and set up a `profiles.yml` file.
-With a few exceptions [^1], you can install all [Verified adapters](/docs/supported-data-platforms) from PyPI using `pip install adapter-name`. For example to install Snowflake, use the command `pip install dbt-snowflake`. The installation will include `dbt-core` and any other required dependencies, which may include both other dependencies and even other adapter plugins. Read more about [installing dbt](/docs/core/installation).
+With a few exceptions [^1], you can install all [Verified adapters](/docs/supported-data-platforms) from PyPI using `python -m pip install adapter-name`. For example to install Snowflake, use the command `python -m pip install dbt-snowflake`. The installation will include `dbt-core` and any other required dependencies, which may include both other dependencies and even other adapter plugins. Read more about [installing dbt](/docs/core/installation).
[^1]: Here are the two different adapters. Use the PyPI package name when installing with `pip`
diff --git a/website/docs/docs/core/connect-data-platform/athena-setup.md b/website/docs/docs/core/connect-data-platform/athena-setup.md
index db218110dc1..9ee64e38009 100644
--- a/website/docs/docs/core/connect-data-platform/athena-setup.md
+++ b/website/docs/docs/core/connect-data-platform/athena-setup.md
@@ -32,7 +32,7 @@ meta:
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/azuresynapse-setup.md b/website/docs/docs/core/connect-data-platform/azuresynapse-setup.md
index 073e95530c1..b78f583f073 100644
--- a/website/docs/docs/core/connect-data-platform/azuresynapse-setup.md
+++ b/website/docs/docs/core/connect-data-platform/azuresynapse-setup.md
@@ -41,7 +41,7 @@ Refer to [Microsoft Fabric Synapse Data Warehouse](/docs/core/connect-data-platf
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/bigquery-setup.md b/website/docs/docs/core/connect-data-platform/bigquery-setup.md
index 96eafadea3b..f352bed8ace 100644
--- a/website/docs/docs/core/connect-data-platform/bigquery-setup.md
+++ b/website/docs/docs/core/connect-data-platform/bigquery-setup.md
@@ -35,7 +35,7 @@ meta:
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/clickhouse-setup.md b/website/docs/docs/core/connect-data-platform/clickhouse-setup.md
index fb0965398a2..83356c01404 100644
--- a/website/docs/docs/core/connect-data-platform/clickhouse-setup.md
+++ b/website/docs/docs/core/connect-data-platform/clickhouse-setup.md
@@ -36,7 +36,7 @@ Some core functionality may be limited. If you're interested in contributing, ch
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/databend-setup.md b/website/docs/docs/core/connect-data-platform/databend-setup.md
index daccd14f6c3..70237dfea07 100644
--- a/website/docs/docs/core/connect-data-platform/databend-setup.md
+++ b/website/docs/docs/core/connect-data-platform/databend-setup.md
@@ -40,7 +40,7 @@ If you're interested in contributing, check out the source code repository liste
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/databricks-setup.md b/website/docs/docs/core/connect-data-platform/databricks-setup.md
index caf52d09de3..b9b68290578 100644
--- a/website/docs/docs/core/connect-data-platform/databricks-setup.md
+++ b/website/docs/docs/core/connect-data-platform/databricks-setup.md
@@ -36,7 +36,7 @@ meta:
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/decodable-setup.md b/website/docs/docs/core/connect-data-platform/decodable-setup.md
index b43521732d4..17d1ff9a6fd 100644
--- a/website/docs/docs/core/connect-data-platform/decodable-setup.md
+++ b/website/docs/docs/core/connect-data-platform/decodable-setup.md
@@ -39,7 +39,7 @@ Some core functionality may be limited. If you're interested in contributing, se
dbt-decodable is also available on PyPI. pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/doris-setup.md b/website/docs/docs/core/connect-data-platform/doris-setup.md
index a7e2ba1ba3e..92526c6d786 100644
--- a/website/docs/docs/core/connect-data-platform/doris-setup.md
+++ b/website/docs/docs/core/connect-data-platform/doris-setup.md
@@ -33,7 +33,7 @@ meta:
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/dremio-setup.md b/website/docs/docs/core/connect-data-platform/dremio-setup.md
index fa6ca154fcd..39ab959789e 100644
--- a/website/docs/docs/core/connect-data-platform/dremio-setup.md
+++ b/website/docs/docs/core/connect-data-platform/dremio-setup.md
@@ -39,7 +39,7 @@ Some core functionality may be limited. If you're interested in contributing, ch
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/duckdb-setup.md b/website/docs/docs/core/connect-data-platform/duckdb-setup.md
index a3fee5a5164..0b1fd57ce86 100644
--- a/website/docs/docs/core/connect-data-platform/duckdb-setup.md
+++ b/website/docs/docs/core/connect-data-platform/duckdb-setup.md
@@ -39,7 +39,7 @@ Some core functionality may be limited. If you're interested in contributing, ch
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/exasol-setup.md b/website/docs/docs/core/connect-data-platform/exasol-setup.md
index 2bf4cd7ffac..c8f7a50c3bf 100644
--- a/website/docs/docs/core/connect-data-platform/exasol-setup.md
+++ b/website/docs/docs/core/connect-data-platform/exasol-setup.md
@@ -39,7 +39,7 @@ Some core functionality may be limited. If you're interested in contributing, ch
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/fabric-setup.md b/website/docs/docs/core/connect-data-platform/fabric-setup.md
index aa7784d96ec..ce7a41b3e29 100644
--- a/website/docs/docs/core/connect-data-platform/fabric-setup.md
+++ b/website/docs/docs/core/connect-data-platform/fabric-setup.md
@@ -37,7 +37,7 @@ To learn how to set up dbt with Azure Synapse Dedicated Pools, see [Microsoft Az
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/fal-setup.md b/website/docs/docs/core/connect-data-platform/fal-setup.md
index ef4998e8c1b..79c269f7403 100644
--- a/website/docs/docs/core/connect-data-platform/fal-setup.md
+++ b/website/docs/docs/core/connect-data-platform/fal-setup.md
@@ -39,7 +39,7 @@ Some core functionality may be limited. If you're interested in contributing, ch
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}[<sql-adapter>]
+python -m pip install {frontMatter.meta.pypi_package}[<sql-adapter>]
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/firebolt-setup.md b/website/docs/docs/core/connect-data-platform/firebolt-setup.md
index c7a5a543512..6bccfb8dcfe 100644
--- a/website/docs/docs/core/connect-data-platform/firebolt-setup.md
+++ b/website/docs/docs/core/connect-data-platform/firebolt-setup.md
@@ -37,7 +37,7 @@ Some core functionality may be limited. If you're interested in contributing, ch
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/glue-setup.md b/website/docs/docs/core/connect-data-platform/glue-setup.md
index e56e5bcd902..8d379afae58 100644
--- a/website/docs/docs/core/connect-data-platform/glue-setup.md
+++ b/website/docs/docs/core/connect-data-platform/glue-setup.md
@@ -40,7 +40,7 @@ Some core functionality may be limited. If you're interested in contributing, ch
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
@@ -210,7 +210,7 @@ Configure a Python virtual environment to isolate package version and code depen
$ sudo yum install git
$ python3 -m venv dbt_venv
$ source dbt_venv/bin/activate
-$ python3 -m pip install --upgrade pip
+$ python3 -m python -m pip install --upgrade pip
```
Configure the last version of AWS CLI
diff --git a/website/docs/docs/core/connect-data-platform/greenplum-setup.md b/website/docs/docs/core/connect-data-platform/greenplum-setup.md
index 06ada19a1e9..29050e879e3 100644
--- a/website/docs/docs/core/connect-data-platform/greenplum-setup.md
+++ b/website/docs/docs/core/connect-data-platform/greenplum-setup.md
@@ -34,7 +34,7 @@ meta:
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/hive-setup.md b/website/docs/docs/core/connect-data-platform/hive-setup.md
index 61a929c58da..9433b830592 100644
--- a/website/docs/docs/core/connect-data-platform/hive-setup.md
+++ b/website/docs/docs/core/connect-data-platform/hive-setup.md
@@ -34,7 +34,7 @@ meta:
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
@@ -154,7 +154,7 @@ you must install the `dbt-hive` plugin.
The following commands will install the latest version of `dbt-hive` as well as the requisite version of `dbt-core` and `impyla` driver used for connections.
```
-pip install dbt-hive
+python -m pip install dbt-hive
```
### Supported Functionality
diff --git a/website/docs/docs/core/connect-data-platform/ibmdb2-setup.md b/website/docs/docs/core/connect-data-platform/ibmdb2-setup.md
index cb6c7459418..ff3ab1236aa 100644
--- a/website/docs/docs/core/connect-data-platform/ibmdb2-setup.md
+++ b/website/docs/docs/core/connect-data-platform/ibmdb2-setup.md
@@ -40,7 +40,7 @@ Some core functionality may be limited. If you're interested in contributing, ch
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/impala-setup.md b/website/docs/docs/core/connect-data-platform/impala-setup.md
index 0a0f1b955a1..d9df9c89742 100644
--- a/website/docs/docs/core/connect-data-platform/impala-setup.md
+++ b/website/docs/docs/core/connect-data-platform/impala-setup.md
@@ -34,7 +34,7 @@ meta:
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/infer-setup.md b/website/docs/docs/core/connect-data-platform/infer-setup.md
index 430c5e47f85..47fe2aa5647 100644
--- a/website/docs/docs/core/connect-data-platform/infer-setup.md
+++ b/website/docs/docs/core/connect-data-platform/infer-setup.md
@@ -34,7 +34,7 @@ meta:
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/iomete-setup.md b/website/docs/docs/core/connect-data-platform/iomete-setup.md
index bc015141c85..1c71df577a8 100644
--- a/website/docs/docs/core/connect-data-platform/iomete-setup.md
+++ b/website/docs/docs/core/connect-data-platform/iomete-setup.md
@@ -36,7 +36,7 @@ meta:
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/layer-setup.md b/website/docs/docs/core/connect-data-platform/layer-setup.md
index f065c0c7313..4b65a58f5b5 100644
--- a/website/docs/docs/core/connect-data-platform/layer-setup.md
+++ b/website/docs/docs/core/connect-data-platform/layer-setup.md
@@ -36,7 +36,7 @@ meta:
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/materialize-setup.md b/website/docs/docs/core/connect-data-platform/materialize-setup.md
index c8777c29490..b2b9c870f86 100644
--- a/website/docs/docs/core/connect-data-platform/materialize-setup.md
+++ b/website/docs/docs/core/connect-data-platform/materialize-setup.md
@@ -39,7 +39,7 @@ Certain core functionality may vary. If you would like to report a bug, request
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/mindsdb-setup.md b/website/docs/docs/core/connect-data-platform/mindsdb-setup.md
index e6b8c5decaa..d1b1fd87499 100644
--- a/website/docs/docs/core/connect-data-platform/mindsdb-setup.md
+++ b/website/docs/docs/core/connect-data-platform/mindsdb-setup.md
@@ -39,7 +39,7 @@ The dbt-mindsdb package allows dbt to connect to [MindsDB](https://github.com/mi
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/mssql-setup.md b/website/docs/docs/core/connect-data-platform/mssql-setup.md
index 5efcc454823..3fa6cc22738 100644
--- a/website/docs/docs/core/connect-data-platform/mssql-setup.md
+++ b/website/docs/docs/core/connect-data-platform/mssql-setup.md
@@ -40,7 +40,7 @@ Some core functionality may be limited. If you're interested in contributing, ch
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/mysql-setup.md b/website/docs/docs/core/connect-data-platform/mysql-setup.md
index 1df6e205272..2cf439aa17a 100644
--- a/website/docs/docs/core/connect-data-platform/mysql-setup.md
+++ b/website/docs/docs/core/connect-data-platform/mysql-setup.md
@@ -39,7 +39,7 @@ Some core functionality may be limited. If you're interested in contributing, ch
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/oracle-setup.md b/website/docs/docs/core/connect-data-platform/oracle-setup.md
index b1195fbd0a0..1209df207af 100644
--- a/website/docs/docs/core/connect-data-platform/oracle-setup.md
+++ b/website/docs/docs/core/connect-data-platform/oracle-setup.md
@@ -36,7 +36,7 @@ meta:
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/postgres-setup.md b/website/docs/docs/core/connect-data-platform/postgres-setup.md
index f56d3f22576..8f9ed2f7915 100644
--- a/website/docs/docs/core/connect-data-platform/postgres-setup.md
+++ b/website/docs/docs/core/connect-data-platform/postgres-setup.md
@@ -36,7 +36,7 @@ meta:
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/redshift-setup.md b/website/docs/docs/core/connect-data-platform/redshift-setup.md
index 175d5f6a715..7692ebfbc78 100644
--- a/website/docs/docs/core/connect-data-platform/redshift-setup.md
+++ b/website/docs/docs/core/connect-data-platform/redshift-setup.md
@@ -36,7 +36,7 @@ meta:
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/rockset-setup.md b/website/docs/docs/core/connect-data-platform/rockset-setup.md
index 4a146829a03..9f1ddc51da3 100644
--- a/website/docs/docs/core/connect-data-platform/rockset-setup.md
+++ b/website/docs/docs/core/connect-data-platform/rockset-setup.md
@@ -40,7 +40,7 @@ Certain core functionality may vary. If you would like to report a bug, request
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/singlestore-setup.md b/website/docs/docs/core/connect-data-platform/singlestore-setup.md
index a63466542a9..5673c640cc5 100644
--- a/website/docs/docs/core/connect-data-platform/singlestore-setup.md
+++ b/website/docs/docs/core/connect-data-platform/singlestore-setup.md
@@ -42,7 +42,7 @@ Certain core functionality may vary. If you would like to report a bug, request
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/snowflake-setup.md b/website/docs/docs/core/connect-data-platform/snowflake-setup.md
index 98bcf447fed..0315547ad53 100644
--- a/website/docs/docs/core/connect-data-platform/snowflake-setup.md
+++ b/website/docs/docs/core/connect-data-platform/snowflake-setup.md
@@ -36,7 +36,7 @@ meta:
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/spark-setup.md b/website/docs/docs/core/connect-data-platform/spark-setup.md
index 895f0559953..6646f37a770 100644
--- a/website/docs/docs/core/connect-data-platform/spark-setup.md
+++ b/website/docs/docs/core/connect-data-platform/spark-setup.md
@@ -41,7 +41,7 @@ See [Databricks setup](#databricks-setup) for the Databricks version of this pag
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
@@ -51,15 +51,15 @@ If connecting to a Spark cluster via the generic thrift or http methods, it requ
```zsh
# odbc connections
-$ pip install "dbt-spark[ODBC]"
+$ python -m pip install "dbt-spark[ODBC]"
# thrift or http connections
-$ pip install "dbt-spark[PyHive]"
+$ python -m pip install "dbt-spark[PyHive]"
```
```zsh
# session connections
-$ pip install "dbt-spark[session]"
+$ python -m pip install "dbt-spark[session]"
```
Configuring {frontMatter.meta.pypi_package}
diff --git a/website/docs/docs/core/connect-data-platform/sqlite-setup.md b/website/docs/docs/core/connect-data-platform/sqlite-setup.md
index 3da902a6f80..2912e26bd07 100644
--- a/website/docs/docs/core/connect-data-platform/sqlite-setup.md
+++ b/website/docs/docs/core/connect-data-platform/sqlite-setup.md
@@ -40,7 +40,7 @@ Some core functionality may be limited. If you're interested in contributing, ch
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/starrocks-setup.md b/website/docs/docs/core/connect-data-platform/starrocks-setup.md
index e5c1abac037..485e1d18fb7 100644
--- a/website/docs/docs/core/connect-data-platform/starrocks-setup.md
+++ b/website/docs/docs/core/connect-data-platform/starrocks-setup.md
@@ -34,7 +34,7 @@ meta:
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/teradata-setup.md b/website/docs/docs/core/connect-data-platform/teradata-setup.md
index 1ba8e506b88..539ba94e38e 100644
--- a/website/docs/docs/core/connect-data-platform/teradata-setup.md
+++ b/website/docs/docs/core/connect-data-platform/teradata-setup.md
@@ -37,7 +37,7 @@ Some core functionality may be limited. If you're interested in contributing, ch
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/tidb-setup.md b/website/docs/docs/core/connect-data-platform/tidb-setup.md
index e2205c4665e..c7820ea005d 100644
--- a/website/docs/docs/core/connect-data-platform/tidb-setup.md
+++ b/website/docs/docs/core/connect-data-platform/tidb-setup.md
@@ -42,7 +42,7 @@ If you're interested in contributing, check out the source code repository liste
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/trino-setup.md b/website/docs/docs/core/connect-data-platform/trino-setup.md
index 39d8ed8ab3f..8a609bbb34d 100644
--- a/website/docs/docs/core/connect-data-platform/trino-setup.md
+++ b/website/docs/docs/core/connect-data-platform/trino-setup.md
@@ -41,7 +41,7 @@ Certain core functionality may vary. If you would like to report a bug, request
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
@@ -284,7 +284,7 @@ The only authentication parameter to set for OAuth 2.0 is `method: oauth`. If yo
For more information, refer to both [OAuth 2.0 authentication](https://trino.io/docs/current/security/oauth2.html) in the Trino docs and the [README](https://github.com/trinodb/trino-python-client#oauth2-authentication) for the Trino Python client.
-It's recommended that you install `keyring` to cache the OAuth 2.0 token over multiple dbt invocations by running `pip install 'trino[external-authentication-token-cache]'`. The `keyring` package is not installed by default.
+It's recommended that you install `keyring` to cache the OAuth 2.0 token over multiple dbt invocations by running `python -m pip install 'trino[external-authentication-token-cache]'`. The `keyring` package is not installed by default.
#### Example profiles.yml for OAuth
diff --git a/website/docs/docs/core/connect-data-platform/upsolver-setup.md b/website/docs/docs/core/connect-data-platform/upsolver-setup.md
index 6b2f410fc07..8e4203e0b0c 100644
--- a/website/docs/docs/core/connect-data-platform/upsolver-setup.md
+++ b/website/docs/docs/core/connect-data-platform/upsolver-setup.md
@@ -33,7 +33,7 @@ pagination_next: null
pip is the easiest way to install the adapter:
-pip install {frontMatter.meta.pypi_package}
+python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/connect-data-platform/vertica-setup.md b/website/docs/docs/core/connect-data-platform/vertica-setup.md
index fbb8de6b301..e3f3dc4f9f3 100644
--- a/website/docs/docs/core/connect-data-platform/vertica-setup.md
+++ b/website/docs/docs/core/connect-data-platform/vertica-setup.md
@@ -37,7 +37,7 @@ If you're interested in contributing, check out the source code for each reposit
Installing {frontMatter.meta.pypi_package}
-pip is the easiest way to install the adapter: pip install {frontMatter.meta.pypi_package}
+pip is the easiest way to install the adapter: python -m pip install {frontMatter.meta.pypi_package}
Installing {frontMatter.meta.pypi_package}
will also install dbt-core
and any other dependencies.
diff --git a/website/docs/docs/core/docker-install.md b/website/docs/docs/core/docker-install.md
index dfb2a669e34..8de3bcb5c06 100644
--- a/website/docs/docs/core/docker-install.md
+++ b/website/docs/docs/core/docker-install.md
@@ -5,7 +5,7 @@ description: "You can use Docker to install dbt and adapter plugins from the com
dbt Core and all adapter plugins maintained by dbt Labs are available as [Docker](https://docs.docker.com/) images, and distributed via [GitHub Packages](https://docs.github.com/en/packages/learn-github-packages/introduction-to-github-packages) in a [public registry](https://github.com/dbt-labs/dbt-core/pkgs/container/dbt-core).
-Using a prebuilt Docker image to install dbt Core in production has a few benefits: it already includes dbt-core, one or more database adapters, and pinned versions of all their dependencies. By contrast, `pip install dbt-core dbt-` takes longer to run, and will always install the latest compatible versions of every dependency.
+Using a prebuilt Docker image to install dbt Core in production has a few benefits: it already includes dbt-core, one or more database adapters, and pinned versions of all their dependencies. By contrast, `python -m pip install dbt-core dbt-` takes longer to run, and will always install the latest compatible versions of every dependency.
You might also be able to use Docker to install and develop locally if you don't have a Python environment set up. Note that running dbt in this manner can be significantly slower if your operating system differs from the system that built the Docker image. If you're a frequent local developer, we recommend that you install dbt Core via [Homebrew](/docs/core/homebrew-install) or [pip](/docs/core/pip-install) instead.
diff --git a/website/docs/docs/core/pip-install.md b/website/docs/docs/core/pip-install.md
index 44fac00e493..622f5f4e876 100644
--- a/website/docs/docs/core/pip-install.md
+++ b/website/docs/docs/core/pip-install.md
@@ -39,7 +39,7 @@ alias env_dbt='source /bin/activate'
Once you know [which adapter](/docs/supported-data-platforms) you're using, you can install it as `dbt-`. For example, if using Postgres:
```shell
-pip install dbt-postgres
+python -m pip install dbt-postgres
```
This will install `dbt-core` and `dbt-postgres` _only_:
@@ -62,7 +62,7 @@ All adapters build on top of `dbt-core`. Some also depend on other adapters: for
To upgrade a specific adapter plugin:
```shell
-pip install --upgrade dbt-
+python -m pip install --upgrade dbt-
```
### Install dbt-core only
@@ -70,7 +70,7 @@ pip install --upgrade dbt-
If you're building a tool that integrates with dbt Core, you may want to install the core library alone, without a database adapter. Note that you won't be able to use dbt as a CLI tool.
```shell
-pip install dbt-core
+python -m pip install dbt-core
```
### Change dbt Core versions
@@ -79,23 +79,23 @@ You can upgrade or downgrade versions of dbt Core by using the `--upgrade` optio
To upgrade dbt to the latest version:
```
-pip install --upgrade dbt-core
+python -m pip install --upgrade dbt-core
```
To downgrade to an older version, specify the version you want to use. This command can be useful when you're resolving package dependencies. As an example:
```
-pip install --upgrade dbt-core==0.19.0
+python -m pip install --upgrade dbt-core==0.19.0
```
-### `pip install dbt`
+### `python -m pip install dbt`
Note that, as of v1.0.0, `pip install dbt` is no longer supported and will raise an explicit error. Since v0.13, the PyPI package named `dbt` was a simple "pass-through" of `dbt-core` and the four original database adapter plugins. For v1, we formalized that split.
If you have workflows or integrations that relied on installing the package named `dbt`, you can achieve the same behavior going forward by installing the same five packages that it used:
```shell
-pip install \
+python -m pip install \
dbt-core \
dbt-postgres \
dbt-redshift \
diff --git a/website/docs/docs/core/source-install.md b/website/docs/docs/core/source-install.md
index 42086159c03..d17adc13c53 100644
--- a/website/docs/docs/core/source-install.md
+++ b/website/docs/docs/core/source-install.md
@@ -17,10 +17,10 @@ To install `dbt-core` from the GitHub code source:
```shell
git clone https://github.com/dbt-labs/dbt-core.git
cd dbt-core
-pip install -r requirements.txt
+python -m pip install -r requirements.txt
```
-This will install `dbt-core` and `dbt-postgres`. To install in editable mode (includes your local changes as you make them), use `pip install -e editable-requirements.txt` instead.
+This will install `dbt-core` and `dbt-postgres`. To install in editable mode (includes your local changes as you make them), use `python -m pip install -e editable-requirements.txt` instead.
### Installing adapter plugins
@@ -29,12 +29,12 @@ To install an adapter plugin from source, you will need to first locate its sour
```shell
git clone https://github.com/dbt-labs/dbt-redshift.git
cd dbt-redshift
-pip install .
+python -m pip install .
```
You do _not_ need to install `dbt-core` before installing an adapter plugin -- the plugin includes `dbt-core` among its dependencies, and it will install the latest compatible version automatically.
-To install in editable mode, such as while contributing, use `pip install -e .` instead.
+To install in editable mode, such as while contributing, use `python -m pip install -e .` instead.
diff --git a/website/docs/docs/dbt-versions/core-upgrade/08-upgrading-to-v1.0.md b/website/docs/docs/dbt-versions/core-upgrade/08-upgrading-to-v1.0.md
index 3f45e44076c..c0ba804cd78 100644
--- a/website/docs/docs/dbt-versions/core-upgrade/08-upgrading-to-v1.0.md
+++ b/website/docs/docs/dbt-versions/core-upgrade/08-upgrading-to-v1.0.md
@@ -45,7 +45,7 @@ Global project macros have been reorganized, and some old unused macros have bee
### Installation
- [Installation docs](/docs/supported-data-platforms) reflects adapter-specific installations
-- `pip install dbt` is no longer supported, and will raise an explicit error. Install the specific adapter plugin you need as `pip install dbt-`.
+- `python -m pip install dbt` is no longer supported, and will raise an explicit error. Install the specific adapter plugin you need as `python -m pip install dbt-`.
- `brew install dbt` is no longer supported. Install the specific adapter plugin you need (among Postgres, Redshift, Snowflake, or BigQuery) as `brew install dbt-`.
- Removed official support for python 3.6, which is reaching end of life on December 23, 2021
diff --git a/website/docs/faqs/Core/install-pip-best-practices.md b/website/docs/faqs/Core/install-pip-best-practices.md
index e36d58296ec..72360a52acc 100644
--- a/website/docs/faqs/Core/install-pip-best-practices.md
+++ b/website/docs/faqs/Core/install-pip-best-practices.md
@@ -30,6 +30,6 @@ Before installing dbt, make sure you have the latest versions:
```shell
-pip install --upgrade pip wheel setuptools
+python -m pip install --upgrade pip wheel setuptools
```
diff --git a/website/docs/faqs/Core/install-pip-os-prereqs.md b/website/docs/faqs/Core/install-pip-os-prereqs.md
index 41a4e4ec60e..ab1a725f3a1 100644
--- a/website/docs/faqs/Core/install-pip-os-prereqs.md
+++ b/website/docs/faqs/Core/install-pip-os-prereqs.md
@@ -6,7 +6,7 @@ id: install-pip-os-prereqs.md
---
-Your operating system may require pre-installation setup before installing dbt Core with pip. After downloading and installing any dependencies specific to your development environment, you can proceed with the [pip installation of dbt Core](/docs/core/pip-install).
+Your operating system may require pre-installation setup before installing dbt Core with pip. After downloading and installing any dependencies specific to your development environment, you can proceed with the [python -m pip installation of dbt Core](/docs/core/pip-install).
### CentOS
diff --git a/website/docs/guides/adapter-creation.md b/website/docs/guides/adapter-creation.md
index 8a9145f0258..3c003a5b888 100644
--- a/website/docs/guides/adapter-creation.md
+++ b/website/docs/guides/adapter-creation.md
@@ -799,7 +799,7 @@ dbt-tests-adapter
```sh
-pip install -r dev_requirements.txt
+python -m pip install -r dev_requirements.txt
```
### Set up and configure pytest
diff --git a/website/docs/guides/airflow-and-dbt-cloud.md b/website/docs/guides/airflow-and-dbt-cloud.md
index a3ff59af14e..e5df3f70308 100644
--- a/website/docs/guides/airflow-and-dbt-cloud.md
+++ b/website/docs/guides/airflow-and-dbt-cloud.md
@@ -51,7 +51,7 @@ In this guide, you'll learn how to:
You’ll also gain a better understanding of how this will:
- Reduce the cognitive load when building and maintaining pipelines
-- Avoid dependency hell (think: `pip install` conflicts)
+- Avoid dependency hell (think: `python -m pip install` conflicts)
- Implement better recoveries from failures
- Define clearer workflows so that data and analytics engineers work better, together ♥️
diff --git a/website/docs/guides/codespace-qs.md b/website/docs/guides/codespace-qs.md
index 7712ed8f8e8..b28b0ddaacf 100644
--- a/website/docs/guides/codespace-qs.md
+++ b/website/docs/guides/codespace-qs.md
@@ -61,7 +61,7 @@ If you'd like to work with a larger selection of Jaffle Shop data, you can gener
1. Install the Python package called [jafgen](https://pypi.org/project/jafgen/). At the terminal's prompt, run:
```shell
- /workspaces/test (main) $ pip install jafgen
+ /workspaces/test (main) $ python -m pip install jafgen
```
1. When installation is done, run:
diff --git a/website/docs/guides/custom-cicd-pipelines.md b/website/docs/guides/custom-cicd-pipelines.md
index 672c6e6dab8..bd6d7617623 100644
--- a/website/docs/guides/custom-cicd-pipelines.md
+++ b/website/docs/guides/custom-cicd-pipelines.md
@@ -336,7 +336,7 @@ lint-project:
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != 'main'
script:
- - pip install sqlfluff==0.13.1
+ - python -m pip install sqlfluff==0.13.1
- sqlfluff lint models --dialect snowflake --rules L019,L020,L021,L022
# this job calls the dbt Cloud API to run a job
@@ -379,7 +379,7 @@ steps:
displayName: 'Use Python 3.7'
- script: |
- pip install requests
+ python -m pip install requests
displayName: 'Install python dependencies'
- script: |
@@ -434,7 +434,7 @@ pipelines:
- step:
name: Lint dbt project
script:
- - pip install sqlfluff==0.13.1
+ - python -m pip install sqlfluff==0.13.1
- sqlfluff lint models --dialect snowflake --rules L019,L020,L021,L022
'main': # override if your default branch doesn't run on a branch named "main"
diff --git a/website/docs/guides/set-up-ci.md b/website/docs/guides/set-up-ci.md
index 83362094ec6..89d7c5a14fa 100644
--- a/website/docs/guides/set-up-ci.md
+++ b/website/docs/guides/set-up-ci.md
@@ -167,7 +167,7 @@ jobs:
with:
python-version: "3.9"
- name: Install SQLFluff
- run: "pip install sqlfluff"
+ run: "python -m pip install sqlfluff"
- name: Lint project
run: "sqlfluff lint models --dialect snowflake"
@@ -204,7 +204,7 @@ lint-project:
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != 'main'
script:
- - pip install sqlfluff
+ - python -m pip install sqlfluff
- sqlfluff lint models --dialect snowflake
```
@@ -235,7 +235,7 @@ pipelines:
- step:
name: Lint dbt project
script:
- - pip install sqlfluff==0.13.1
+ - python -m pip install sqlfluff==0.13.1
- sqlfluff lint models --dialect snowflake --rules L019,L020,L021,L022
'main': # override if your default branch doesn't run on a branch named "main"
diff --git a/website/docs/guides/sl-migration.md b/website/docs/guides/sl-migration.md
index 0cfde742af2..c3cca81f68e 100644
--- a/website/docs/guides/sl-migration.md
+++ b/website/docs/guides/sl-migration.md
@@ -25,10 +25,10 @@ dbt Labs recommends completing these steps in a local dev environment (such as t
1. Create new Semantic Model configs as YAML files in your dbt project.*
1. Upgrade the metrics configs in your project to the new spec.*
1. Delete your old metrics file or remove the `.yml` file extension so they're ignored at parse time. Remove the `dbt-metrics` package from your project. Remove any macros that reference `dbt-metrics`, like `metrics.calculate()`. Make sure that any packages you’re using don't have references to the old metrics spec.
-1. Install the CLI with `pip install "dbt-metricflow[your_adapter_name]"`. For example:
+1. Install the CLI with `python -m pip install "dbt-metricflow[your_adapter_name]"`. For example:
```bash
- pip install "dbt-metricflow[snowflake]"
+ python -m pip install "dbt-metricflow[snowflake]"
```
**Note** - The MetricFlow CLI is not available in the IDE at this time. Support is coming soon.
diff --git a/website/snippets/_sl-test-and-query-metrics.md b/website/snippets/_sl-test-and-query-metrics.md
index 43ebd929cb3..2e9490f089d 100644
--- a/website/snippets/_sl-test-and-query-metrics.md
+++ b/website/snippets/_sl-test-and-query-metrics.md
@@ -48,8 +48,8 @@ The dbt Cloud CLI is strongly recommended to define and query metrics for your d
1. Install [MetricFlow](/docs/build/metricflow-commands) as an extension of a dbt adapter from PyPI.
2. Create or activate your virtual environment with `python -m venv venv` or `source your-venv/bin/activate`.
-3. Run `pip install dbt-metricflow`.
- - You can install MetricFlow using PyPI as an extension of your dbt adapter in the command line. To install the adapter, run `pip install "dbt-metricflow[your_adapter_name]"` and add the adapter name at the end of the command. As an example for a Snowflake adapter, run `pip install "dbt-metricflow[snowflake]"`.
+3. Run `python -m pip install dbt-metricflow`.
+ - You can install MetricFlow using PyPI as an extension of your dbt adapter in the command line. To install the adapter, run `python -m pip install "dbt-metricflow[your_adapter_name]"` and add the adapter name at the end of the command. As an example for a Snowflake adapter, run `python -m pip install "dbt-metricflow[snowflake]"`.
- You'll need to manage versioning between dbt Core, your adapter, and MetricFlow.
4. Run `dbt parse`. This allows MetricFlow to build a semantic graph and generate a `semantic_manifest.json`.
- This creates the file in your `/target` directory. If you're working from the Jaffle shop example, run `dbt seed && dbt run` before proceeding to ensure the data exists in your warehouse.
From 2de9eb1d0810afee410b6ae2f73ee95976b09910 Mon Sep 17 00:00:00 2001
From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com>
Date: Thu, 16 Nov 2023 15:32:50 -0500
Subject: [PATCH 2/7] Delete website/docs/guides/dremio-lakehouse.md
---
website/docs/guides/dremio-lakehouse.md | 193 ------------------------
1 file changed, 193 deletions(-)
delete mode 100644 website/docs/guides/dremio-lakehouse.md
diff --git a/website/docs/guides/dremio-lakehouse.md b/website/docs/guides/dremio-lakehouse.md
deleted file mode 100644
index e140969aabd..00000000000
--- a/website/docs/guides/dremio-lakehouse.md
+++ /dev/null
@@ -1,193 +0,0 @@
----
-title: Build a data lakehouse with dbt Core and Dremio Cloud
-id: build-dremio-lakehouse
-description: Learn how to build a data lakehouse with dbt Core and Dremio Cloud.
-displayText: Build a data lakehouse with dbt Core and Dremio Cloud
-hoverSnippet: Learn how to build a data lakehouse with dbt Core and Dremio Cloud
-# time_to_complete: '30 minutes' commenting out until we test
-platform: 'dbt-core'
-icon: 'guides'
-hide_table_of_contents: true
-tags: ['Dremio', 'dbt Core']
-level: 'Intermediate'
-recently_updated: true
----
-## Introduction
-
-This is a guide will demonstrate how to build a data lakehouse with dbt Core 1.5+ and Dremio Cloud. You can simplify and optimize your data infrastructure with dot’s robust transformation framework and Dremio’s open and easy data lakehouse. The integrated solution empowers companies to establish a strong data and analytics foundation, fostering self-service analytics and enhancing business insights while simplifying operations by eliminating the necessity to write complex ETL pipelines.
-
-## Prerequisites
-
-* You must have a [Dremio Cloud](https://docs.dremio.com/cloud/) account.
-* You must have Python 3 installed.
-* You must have dbt Core v1.5 or newer [installed](/docs/core/installation).
-* You must have the Dremio adatper 1.5.0 or newer [installed and configured](/docs/core/connect-data-platform/dremio-setup) for Dremio Cloud.
-* You must have basic working knowledge of Git and the command line interface (CLI).
-
-## Validate your environment
-
-Validate your environment by running the following commands in your CLI:
-
-```shell
-
-$ python3 --version
-Python 3.11.4 # Must be Python 3
-
-```
-
-```shell
-
-$ dbt --version
-Core:
- - installed: 1.5.0 # Must be 1.5+
- - latest: 1.6.3 - Update available!
-
- Your version of dbt-core is out of date!
- You can find instructions for upgrading here:
- https://docs.getdbt.com/docs/installation
-
-Plugins:
- - dremio: 1.5.0 - Up to date! # Must be 1.5+
-
-```
-
-## Getting started
-
-1. Clone the Dremio dbt Core sample project from the [github repo](https://github.com/dremio-brock/DremioDBTSample/tree/master/dremioSamples).
-
-2. Open the relation.py file in the Dremio adapter directory `$HOME/Library/Python/3.9/lib/python/site-packages/dbt/adapters/dremio/relation.py` in your IDE and locate lines 51 and 52.
-
-Update lines 51 and 52 if they don't have the following syntax:
-
-```python
-
-PATTERN = re.compile(r"""((?:[^."']|"[^"]*"|'[^']*')+)""")
-return ".".join(PATTERN.split(identifier)[1::2])
-
-```
-
-The complete selection should look like this:
-
-```python
-def quoted_by_component(self, identifier, componentName):
- if componentName == ComponentName.Schema:
- PATTERN = re.compile(r"""((?:[^."']|"[^"]*"|'[^']*')+)""")
- return ".".join(PATTERN.split(identifier)[1::2])
- else:
- return self.quoted(identifier)
-
-```
-
-This is required because the plugin doesn’t support schema names in Dremio containing dots and spaces.
-
-## Build your pipeline
-
-1. Create a `profile.yml` file in the `$HOME/.dbt/profiles.yml` path and add the following configs:
-
-```yaml
-
-dremioSamples:
- outputs:
- cloud_dev:
- dremio_space: dev
- dremio_space_folder: no_schema
- object_storage_path: dev
- object_storage_source: $scratch
- pat:
- cloud_host: api.dremio.cloud
- cloud_project_id:
- threads: 1
- type: dremio
- use_ssl: true
- user:
- target: dev
-
- ```
-
- 2. Execute the transformation pipeline:
-
- ```shell
-
- $ dbt run -t cloud_dev
-
- ```
-
- If the above configurations have been implemented, the output will look something like this:
-
-```shell
-
-17:24:16 Running with dbt=1.5.0
-17:24:17 Found 5 models, 0 tests, 0 snapshots, 0 analyses, 348 macros, 0 operations, 0 seed files, 2 sources, 0 exposures, 0 metrics, 0 groups
-17:24:17
-17:24:29 Concurrency: 1 threads (target='cloud_dev')
-17:24:29
-17:24:29 1 of 5 START sql view model Preparation.trips .................................. [RUN]
-17:24:31 1 of 5 OK created sql view model Preparation. trips ............................. [OK in 2.61s]
-17:24:31 2 of 5 START sql view model Preparation.weather ................................ [RUN]
-17:24:34 2 of 5 OK created sql view model Preparation.weather ........................... [OK in 2.15s]
-17:24:34 3 of 5 START sql view model Business.Transportation.nyc_trips .................. [RUN]
-17:24:36 3 of 5 OK created sql view model Business.Transportation.nyc_trips ............. [OK in 2.18s]
-17:24:36 4 of 5 START sql view model Business.Weather.nyc_weather ....................... [RUN]
-17:24:38 4 of 5 OK created sql view model Business.Weather.nyc_weather .................. [OK in 2.09s]
-17:24:38 5 of 5 START sql view model Application.nyc_trips_with_weather ................. [RUN]
-17:24:41 5 of 5 OK created sql view model Application.nyc_trips_with_weather ............ [OK in 2.74s]
-17:24:41
-17:24:41 Finished running 5 view models in 0 hours 0 minutes and 24.03 seconds (24.03s).
-17:24:41
-17:24:41 Completed successfully
-17:24:41
-17:24:41 Done. PASS=5 WARN=0 ERROR=0 SKIP=0 TOTAL=5
-
-```
-
-Now that you have a running environment and a completed job, you can view the data in Dremio and expand your code. This is a snapshot of the project structure in an IDE:
-
-
-
-## About the schema.yml
-
-The `schema.yml` file defines Dremio sources and models to be used and what data models are in scope. In this guides sample project, there are two data sources:
-
-1. The `NYC-weather.csv` stored in the **Samples** database and
-2. The `sample_data` from the **Samples database**.**
-
-The models correspond to both weather & trip data respectively and will be joined for analysis.
-
-The sources can be found by navigating to the **Object Storage** section of the Dremio Cloud UI.
-
-
-
-## About the models
-
-**Preparation** — `preparation_trips.sql` and `preparation_weather.sql` are building views on top of the trips and weather data.
-
-**Business** — `business_transportation_nyc_trips.sql` applies some level of transformation on `preparation_trips.sql` view. `Business_weather_nyc.sql` has no transformation on the `preparation_weather.sql` view.
-
-**Application** — `application_nyc_trips_with_weather.sql` joins the output from the Business model. This is what your business users will consume.
-
-## The Job output
-
-When you run the dbt job, it will create a **dev** space folder that has all the data assets created. This is what you will see in Dremio Cloud UI. Spaces in Dremio is a way to organize data assets which map to business units or data products.
-
-
-
-Open the **Application folder** and you will see the output of the simple transformation we did using dbt.
-
-
-
-## Query the data
-
-Now that you have run the job and completed the transformation, it's time to query your data. Click on the `nyc_trips_with_weather` view. That will take you to the SQL Runner page. Click **Show SQL Pane** on the upper right corner of the page. Run the following query:
-
-```sql
-
-SELECT vendor_id,
- AVG(tip_amount)
-FROM dev.application."nyc_treips_with_weather"
-GROUP BY vendor_id
-
-```
-
-
-
-This completes the integration setup and data is ready for business consumption.
\ No newline at end of file
From bf32ef962484c19802779060366ff50c476b2b7a Mon Sep 17 00:00:00 2001
From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com>
Date: Thu, 16 Nov 2023 15:38:00 -0500
Subject: [PATCH 3/7] Update
website/docs/docs/core/connect-data-platform/glue-setup.md
---
website/docs/docs/core/connect-data-platform/glue-setup.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/website/docs/docs/core/connect-data-platform/glue-setup.md b/website/docs/docs/core/connect-data-platform/glue-setup.md
index 8d379afae58..9e8fff462f1 100644
--- a/website/docs/docs/core/connect-data-platform/glue-setup.md
+++ b/website/docs/docs/core/connect-data-platform/glue-setup.md
@@ -210,7 +210,7 @@ Configure a Python virtual environment to isolate package version and code depen
$ sudo yum install git
$ python3 -m venv dbt_venv
$ source dbt_venv/bin/activate
-$ python3 -m python -m pip install --upgrade pip
+$ python3 -m pip install --upgrade pip
```
Configure the last version of AWS CLI
From 2416d697ef2be9f1bd51e01273692a2712a1dc19 Mon Sep 17 00:00:00 2001
From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com>
Date: Mon, 20 Nov 2023 15:27:12 -0500
Subject: [PATCH 4/7] Update website/docs/docs/core/pip-install.md
Co-authored-by: Doug Beatty <44704949+dbeatty10@users.noreply.github.com>
---
website/docs/docs/core/pip-install.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/website/docs/docs/core/pip-install.md b/website/docs/docs/core/pip-install.md
index 622f5f4e876..e1a0e65312c 100644
--- a/website/docs/docs/core/pip-install.md
+++ b/website/docs/docs/core/pip-install.md
@@ -88,7 +88,7 @@ To downgrade to an older version, specify the version you want to use. This comm
python -m pip install --upgrade dbt-core==0.19.0
```
-### `python -m pip install dbt`
+### `pip install dbt`
Note that, as of v1.0.0, `pip install dbt` is no longer supported and will raise an explicit error. Since v0.13, the PyPI package named `dbt` was a simple "pass-through" of `dbt-core` and the four original database adapter plugins. For v1, we formalized that split.
From 4eeb35aaa6e9ef54d6b54b42cff8aa4b139191cc Mon Sep 17 00:00:00 2001
From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com>
Date: Mon, 20 Nov 2023 15:43:59 -0500
Subject: [PATCH 5/7] Update website/docs/guides/airflow-and-dbt-cloud.md
Co-authored-by: Doug Beatty <44704949+dbeatty10@users.noreply.github.com>
---
website/docs/guides/airflow-and-dbt-cloud.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/website/docs/guides/airflow-and-dbt-cloud.md b/website/docs/guides/airflow-and-dbt-cloud.md
index e5df3f70308..a3ff59af14e 100644
--- a/website/docs/guides/airflow-and-dbt-cloud.md
+++ b/website/docs/guides/airflow-and-dbt-cloud.md
@@ -51,7 +51,7 @@ In this guide, you'll learn how to:
You’ll also gain a better understanding of how this will:
- Reduce the cognitive load when building and maintaining pipelines
-- Avoid dependency hell (think: `python -m pip install` conflicts)
+- Avoid dependency hell (think: `pip install` conflicts)
- Implement better recoveries from failures
- Define clearer workflows so that data and analytics engineers work better, together ♥️
From 05c9d596ef90e9aeea8f1d7358b1bf2823eb05f2 Mon Sep 17 00:00:00 2001
From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com>
Date: Mon, 20 Nov 2023 15:44:42 -0500
Subject: [PATCH 6/7] Apply suggestions from code review
Co-authored-by: Doug Beatty <44704949+dbeatty10@users.noreply.github.com>
---
website/docs/docs/cloud/cloud-cli-installation.md | 2 +-
website/docs/faqs/Core/install-pip-os-prereqs.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/website/docs/docs/cloud/cloud-cli-installation.md b/website/docs/docs/cloud/cloud-cli-installation.md
index 6c11a2250a9..1e72706caec 100644
--- a/website/docs/docs/cloud/cloud-cli-installation.md
+++ b/website/docs/docs/cloud/cloud-cli-installation.md
@@ -161,7 +161,7 @@ If you already have dbt Core installed, the dbt Cloud CLI may conflict. Here are
--------
-Before installing the dbt Cloud CLI, make sure you have Python installed and your virtual environment venv or pyenv . If you already have a Python environment configured, you can skip to the [python -m pip installation step](#install-dbt-cloud-cli-in-pip).
+Before installing the dbt Cloud CLI, make sure you have Python installed and your virtual environment venv or pyenv . If you already have a Python environment configured, you can skip to the [pip installation step](#install-dbt-cloud-cli-in-pip).
### Install a virtual environment
diff --git a/website/docs/faqs/Core/install-pip-os-prereqs.md b/website/docs/faqs/Core/install-pip-os-prereqs.md
index ab1a725f3a1..41a4e4ec60e 100644
--- a/website/docs/faqs/Core/install-pip-os-prereqs.md
+++ b/website/docs/faqs/Core/install-pip-os-prereqs.md
@@ -6,7 +6,7 @@ id: install-pip-os-prereqs.md
---
-Your operating system may require pre-installation setup before installing dbt Core with pip. After downloading and installing any dependencies specific to your development environment, you can proceed with the [python -m pip installation of dbt Core](/docs/core/pip-install).
+Your operating system may require pre-installation setup before installing dbt Core with pip. After downloading and installing any dependencies specific to your development environment, you can proceed with the [pip installation of dbt Core](/docs/core/pip-install).
### CentOS
From 37f7d54f05ea5a74748972e2666640854c17598a Mon Sep 17 00:00:00 2001
From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com>
Date: Mon, 20 Nov 2023 16:06:16 -0500
Subject: [PATCH 7/7] Adding python -m
---
website/snippets/_setup-pages-intro.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/website/snippets/_setup-pages-intro.md b/website/snippets/_setup-pages-intro.md
index 44cbbb1a0c2..5ded5ba5ebc 100644
--- a/website/snippets/_setup-pages-intro.md
+++ b/website/snippets/_setup-pages-intro.md
@@ -13,7 +13,7 @@
Installing {props.meta.pypi_package}
Use `pip` to install the adapter, which automatically installs `dbt-core` and any additional dependencies. Use the following command for installation:
-pip install {props.meta.pypi_package}
+python -m pip install {props.meta.pypi_package}
Configuring {props.meta.pypi_package}