Reference
CLI Reference
Command-line options and usage for LazyDatabricks
LazyDatabricks supports both a TUI (interactive) mode and CLI (non-interactive) mode.
Usage
lazydatabricks [OPTIONS] [COMMAND]Global Options
| Option | Description |
|---|---|
--profile, -p | Databricks CLI profile to use |
--host | Databricks workspace URL |
--token | Personal access token |
--cluster-id | Default cluster ID |
--help | Show help |
Commands
| Command | Description |
|---|---|
| (none) | Launch TUI (default) |
tui | Launch TUI explicitly |
health | Show health snapshot |
clusters | List clusters |
jobs | List jobs |
test | Test connection |
setup billing | Configure billing extension |
Examples
Launch TUI
lazydatabricksUsing a Profile
lazydatabricks --profile stagingDirect Connection
lazydatabricks --host https://adb-xxx.azuredatabricks.net --token dapi...CLI Mode Commands
# Test connection
lazydatabricks test
# Health snapshot
lazydatabricks health
# List clusters
lazydatabricks clusters
# List jobs
lazydatabricks jobsSet Up Billing Extension
lazydatabricks setup billingThis interactively configures the billing extension by selecting a SQL Warehouse.
Environment Variables
| Variable | Description |
|---|---|
DATABRICKS_HOST | Workspace URL |
DATABRICKS_TOKEN | Access token |
DATABRICKS_CLUSTER_ID | Default cluster ID |