---
# System prepended metadata

title: '# DBT Setup'

---

## Create codespace on an existing github repository
- Click on create codespace and select repository and a branch

-- It'll open a new window with everything setup (Python, git, pip)

## Terminal actions
Once you've created a codespace on your repo.

### Step 1: Create a Virtual Environment
Navigate to the project directory and create a virtual environment using the following command:

```bash
cd ProjectDBT_DC
python -m venv .venv
```
This will create a new directory named `.venv` containing the virtual environment.


### Step 2: Activate the Virtual Environment

Activate the virtual environment by running following command

```bash
source .venv/bin/activate
```

## dbt related commands

### To run a transformation on a warehouse. Run the below command

```bash=
dbt run
```

### To test the warehouse connection

```bash=
dbt debug
```