Getting Started¶
This guide walks you from an empty folder to a running Databricks project in under five minutes.
Prerequisites¶
Before you begin, make sure you have:
- Python 3.10+ — check with
python --version - Databricks CLI v1.3.0+ — installation guide, check with
databricks --version - A Databricks workspace with Unity Catalog enabled
1. Install¶
Verify the CLI is available:
2. Authenticate the Databricks CLI¶
If you haven't already, configure the CLI against your workspace:
You'll be prompted for:
- Host — your workspace URL, e.g.
https://adb-1234567890.azuredatabricks.net - Token — a personal access token (Settings → Developer → Access tokens in the Databricks UI)
Test the connection:
3. Browse available accelerators¶
┌──────────────────────────┬───────────────────────────────────────────────────────┐
│ Name │ Description │
├──────────────────────────┼───────────────────────────────────────────────────────┤
│ ai-bi │ Lakeview dashboard + Genie Space with metric views │
│ custom-python-wheel │ Custom Python wheel package with build-and-upload job │
│ lakebase-streamlit-app │ Databricks App (Streamlit) + Lakebase master data │
│ medallion-dbt │ Medallion architecture using dbt models over TPCH │
│ medallion-sdp │ Streaming Delta Pipeline with bronze/silver/gold │
│ mlflow-project │ MLflow training, registration, and batch scoring │
└──────────────────────────┴───────────────────────────────────────────────────────┘
4. Scaffold a project¶
Open an empty folder in VS Code, then run in its terminal:
This generates a complete project in ./medallion-sdp/:
medallion-sdp/
├── databricks.yml
├── pyproject.toml
├── resources/
│ ├── pipelines/pipeline.yml # DLT pipeline definition
│ ├── jobs/job.yml # Scheduled pipeline refresh
│ └── schemas/schemas.yml # Unity Catalog schema declarations
└── src/
├── framework/ # Config, metadata, and DLT helpers
└── pipelines/main/ # Bronze/silver/gold transformations
Open the generated folder:
5. Review the bundle config¶
Open databricks.yml. Key variables are pre-filled with sensible defaults:
variables:
bronze_catalog:
default: dpa_sdp_bronze_dev
silver_catalog:
default: dpa_sdp_silver_dev
gold_catalog:
default: dpa_sdp_gold_dev
Change any defaults before deploying, or override them at deploy time with --var.
6. Deploy¶
This uploads notebooks and resources to your workspace under the dev target (the default). You can also use the built-in command:
Confirm the deploy succeeded:
7. Run the job¶
Monitor progress in the Databricks UI under Workflows → Jobs.
Targeting environments¶
Each accelerator ships with dev and prod targets. Switch with --target:
Override variables at deploy time without editing any files:
databricks bundle deploy \
--var="bronze_catalog=my_bronze" \
--var="silver_catalog=my_silver" \
--var="gold_catalog=my_gold"
Preview before scaffolding¶
Use --dry-run to see what files would be created without writing anything:
Force overwrite¶
If a project directory already exists: