Quick Start¶
Get the Lakeflow Framework (LFF) deployed and running sample pipelines in your Databricks workspace in about 15–20 minutes.
Prerequisites¶
Before you begin, verify:
Databricks workspace access with permission to deploy bundles and run Lakeflow Spark Declarative Pipelines
Databricks CLI installed — required for local Asset Bundle deployment (CLI documentation)
CLI authentication — run
databricks auth loginfor your workspace, or use a configured CLI profileUnity Catalog enabled in your workspace
UC catalog already exists for sample deployment (default
main, or pass another with--catalog) — the deploy scripts create schemas in that catalog, not the catalog itselfFamiliarity with Lakeflow Spark Declarative Pipelines concepts (helpful, not required)
IDE installed (optional) — for example VS Code or Cursor, used for Data Flow Spec IntelliSense
Tip
New to Asset Bundles? The framework ships as a Declarative Automation Bundle (DAB). Authenticate the CLI first, then optionally set the workspace host in databricks.yml (or leave it unset to use the host from your CLI profile). See Deploy for the full deploy workflow.
Step 1 — Clone the repository¶
Open a terminal on your local machine
Clone the repository and enter the project directory:
git clone https://github.com/databricks-solutions/lakeflow_framework.git
cd lakeflow_framework
Step 2 — Authenticate the Databricks CLI¶
Authenticate against the workspace you will deploy to:
databricks auth login --host https://<your-workspace-url>
Or use an existing named profile (for example after databricks auth login --profile <name>):
databricks bundle deploy -t dev -p <profile>
Note
You can set targets.dev.workspace.host in databricks.yml, or leave the host unset so the CLI uses the host from the selected profile. See Deploy framework from local machine for details.
Step 3 — Deploy the framework¶
From the repository root:
Validate the framework bundle
databricks bundle validate
Deploy to your workspace
databricks bundle deploy -t dev
Note
By default the CLI deploys to the dev target in databricks.yml. Use -t <target> to deploy elsewhere and -p <profile> to select a different CLI profile.
Full reference: Deploy
Step 4 — Deploy the samples¶
Samples require the framework deploy above. ./deploy.sh deploys the full sample set (feature-samples and pattern-samples). For bundle descriptions and other scripts, see samples/README.md in the repository.
From the samples/ directory:
cd samples
Warning
Always set a logical environment when deploying. Specify a unique logical environment suffix when executing the deploy script so your sample schemas and jobs do not overwrite another user’s deployment in a shared workspace.
Suggested naming: your initials (_jd), a story ID (_123456), a client or team name, or a project name.
Choose either interactive or command-line deploy.
Option A — Interactive¶
Run with no flags and answer the prompts:
./deploy.sh
Prompt |
Purpose |
Default / notes |
|---|---|---|
Databricks username |
Your workspace user (e.g. |
— |
Workspace host |
Full workspace URL (e.g. |
— |
CLI profile |
Named CLI profile |
|
Compute |
|
|
UC catalog |
Existing target catalog |
|
Schema namespace |
Prefix for sample schemas |
|
Logical environment |
Isolation suffix (e.g. |
— |
Schema namespaces created:
feature-samples:
{namespace}_feature{logical_env}pattern-samples:
{namespace}_staging{logical_env},{namespace}_bronze{logical_env},{namespace}_silver{logical_env},{namespace}_gold{logical_env}
Option B — Command-line¶
Pass all required parameters in one command (no prompts):
./deploy.sh \
-u <databricks_username> \
-h <workspace_host> \
[-p <profile>] \
[-c <compute>] \
[-l <logical_env>] \
[--catalog <catalog>] \
[--schema_namespace <schema_namespace>]
Flag |
Purpose |
Default |
|---|---|---|
|
Workspace user (required) |
— |
|
Workspace URL (required) |
— |
|
CLI profile |
|
|
|
|
|
Isolation suffix |
|
|
Existing UC catalog |
|
|
Schema name prefix |
|
Example:
./deploy.sh -u jane.doe@company.com -h https://company.cloud.databricks.com -l _jd -c 1
Step 5 — Run the feature samples¶
In the Databricks workspace, open Workflows and locate the job:
``Lakeflow Framework - Feature Samples - Run (<logical_env>)``
Or run from the CLI (from the
samples/feature-samplesbundle directory after deploy):databricks bundle run feature_samples_run_job -t devWhen the job completes, inspect tables in the ``{namespace}_feature{logical_env}`` schema (for example
lakeflow_samples_feature_jd).
This is the simplest entry point — every framework feature runs in a single schema.
Step 6 — Enable VS Code IntelliSense¶
Add the framework JSON schemas to your VS Code settings.json so Data Flow specs get auto-complete and validation.
Open Command Palette → Preferences: Open User Settings (JSON)
Register schemas for
*_main.json,*_flow.json, and related spec files
Full configuration and examples: Auto Complete / IntelliSense
Step 7 — Understand the framework¶
Read Architecture for architecture and operating models, then browse Features for what you can configure.
What’s next?¶
Build your first pipeline — Build (select a pattern from Data Flow and Pipeline Patterns, then follow the build steps)
Deploy via CI/CD — Setting up CI/CD
Data Flow Spec reference — Data Flow Spec Reference