Getting Started
Configuration
Configure LazyDatabricks to connect to your Databricks workspace
LazyDatabricks uses the same configuration as the Databricks SDK, supporting environment variables, config files, and CLI flags.
Configuration Priority
LazyDatabricks resolves auth in this order:
- CLI flags (highest priority)
- Environment variables
- ~/.databrickscfg profile
Environment Variables
export DATABRICKS_HOST=https://adb-xxx.azuredatabricks.net
export DATABRICKS_TOKEN=dapi...
export DATABRICKS_CLUSTER_ID=0123-456789-abcdef # optionalConfig File
Create ~/.databrickscfg with one or more profiles:
[DEFAULT]
host = https://adb-xxx.azuredatabricks.net
token = dapi...
cluster_id = 0123-456789-abcdef
[staging]
host = https://adb-yyy.azuredatabricks.net
token = dapi...LazyDatabricks will use the DEFAULT profile by default, or the first available profile if no default exists.
CLI Flags
Override any setting via command line:
lazydatabricks --host https://... --token dapi... --cluster-id 0123...
lazydatabricks --profile stagingSupported Auth Methods
- Personal Access Token (PAT) — Standard token-based auth
- OAuth M2M — Service Principal / Machine-to-Machine OAuth
- Azure CLI — Use
az logincredentials
The auth method is auto-detected from your configuration.
Verify Connection
Test your configuration:
lazydatabricks test