Databricks CLI
$ databricks Official High RiskDatabricks CLI (databricks) is the modern Go rewrite covering Databricks workspaces, clusters, SQL warehouses, Unity Catalog, jobs, and Databricks Asset Bundles (DABs). Global -o json output, -p profile selection, and bundle validate make it a top-tier enterprise data CLI for agents.
brew install databricks/tap/databricks Databricks CLI is essential for Asset Bundles (databricks bundle validate/deploy), cluster/job control, and Unity Catalog operations with native -o json.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Modern Go Cobra CLI with universal -o json / --output json, -p profile switching, and full non-interactive service principal auth.
- Global
-o jsonflag across API command groups databricks bundle validateprovides structured pre-deploy checks
Supports OAuth U2M/M2M service principals, profile isolation (~/.databrickscfg), and bundle validate, though compute/data mutations carry high cost/risk.
- Service principal OAuth M2M avoids personal admin tokens
bundle validatecatches bundle config errors before deployment
Single compiled Go binary distributed via Homebrew tap, winget, curl installer, and GitHub releases.
brew install databricks/tap/databricksand cross-platform binaries
Covers the entire Databricks REST API surface plus DABs (bundle), secrets, Unity Catalog, and workspace files.
- Auto-generated SDK-backed commands stay aligned with Databricks APIs
Official Databricks repository (databricks/cli) actively maintained by Databricks.
- Official Databricks GitHub organization
Comprehensive official Databricks CLI docs and built-in --help schemas.
- Official docs at docs.databricks.com/en/dev-tools/cli/
Security, Auth & Guardrails
Stores profiles in ~/.databrickscfg and OAuth token caches in ~/.databricks/, or reads DATABRICKS_HOST / DATABRICKS_TOKEN / OAuth M2M service principal env vars.
CLI is free (Databricks License); workspace compute, DBUs, and cloud infrastructure incur usage charges.
# Databricks CLI Agent Rules - Always pass `-p <dev-profile>` (or set `DATABRICKS_CONFIG_PROFILE`) and `-t dev` for Asset Bundles. - Run `databricks bundle validate -t dev` before any `bundle deploy`. - Require human approval before starting expensive GPU clusters, deleting Unity Catalog tables, or running `bundle destroy`.
Agent-Ready Command Recipes
Safe Read-Only Queries
databricks current-user me -o json
Verifies active workspace authentication and user/service-principal identity.
databricks clusters list -o json
Retrieves cluster IDs, state, and runtime versions in structured JSON.
Controlled Writes & Previews
databricks bundle validate -t dev
Validates databricks.yml bundle syntax and target configuration locally/against workspace without deploying.
Strengths for Agents
- + Fast Go binary with consistent
-o jsonoutput and-p <profile>isolation. - + First-class
databricks bundle validateenables safe IaC validation before deployment. - + Supports OAuth M2M service principals and unified authentication across Databricks SDKs.
Caveats & Pitfalls
- ! Starting large clusters or triggering jobs can rapidly accrue cloud and DBU costs.
- ! Distributed under the proprietary Databricks License rather than Apache/MIT.