Quick Start¶
This guide will help you get started with brix in just a few minutes.
Step 1: Initialize a Profile¶
Before creating a dbt project, you need a profile configuration. Brix can initialize one for you:
This creates a profiles.yml at ~/.dbt/profiles.yml with a DuckDB configuration for local development.
Custom Location
Specify a custom path with --profile-path:
Step 2: Create a Project¶
Create a new dbt project with the interactive wizard:
The wizard will guide you through:
- Project name - Name for your dbt project
- Profile selection - Which profile to use
- Packages - Add common packages (dbt_utils, elementary, etc.)
- Databricks settings - Materialization and documentation options
- Example model - Generate a sample model to get started
Non-Interactive Mode
For scripting, use CLI flags:
Step 3: Run dbt Commands¶
Brix passes through any dbt command:
# Install packages
brix dbt deps
# Run models
brix dbt run
# Test models
brix dbt test
# Generate documentation
brix dbt docs generate
brix dbt docs serve
Common Workflows¶
Local Development with DuckDB¶
# Initialize profile with DuckDB
brix dbt profile init
# Create project
brix dbt project init
# Run locally
brix dbt run
Add a Databricks Connection¶
# Edit profile to add Databricks
brix dbt profile edit
# Select "Add new output"
# Choose "databricks" adapter
# Configure authentication (OAuth or Personal Access Token)
Manage Packages¶
# Add a package from dbt Hub
brix dbt project edit --action add-hub-package
# Or non-interactively
brix dbt project edit --action add-hub-package --package-name dbt_utils --package-version ">=1.0.0"
# Install packages
brix dbt deps
Next Steps¶
- Commands Overview - Full command reference
- Profile Management - Deep dive into profiles
- Project Management - Advanced project configuration
- Configuration - Environment variables and settings