Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Databricks CLI

$ databricks Official High Risk
Databricks · Workspace & SaaS · Databricks License · macos / linux / windows

Databricks 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.

FCRS-1.0 Score
89 /100
Good
Medium Confidence
Zero-Friction Install
brew install databricks/tap/databricks
CLI vs MCP Decision CLI Preferred vs MCP

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

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

Modern Go Cobra CLI with universal -o json / --output json, -p profile switching, and full non-interactive service principal auth.

  • Global -o json flag across API command groups
  • databricks bundle validate provides structured pre-deploy checks
Trust & Safety 21 / 25

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 validate catches bundle config errors before deployment
Setup & Portability 13 / 15

Single compiled Go binary distributed via Homebrew tap, winget, curl installer, and GitHub releases.

  • brew install databricks/tap/databricks and cross-platform binaries
Utility & Efficiency 14 / 15

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
Maintenance & Lineage 9 / 10

Official Databricks repository (databricks/cli) actively maintained by Databricks.

  • Official Databricks GitHub organization
Docs & Verifiability 9 / 10

Comprehensive official Databricks CLI docs and built-in --help schemas.

  • Official docs at docs.databricks.com/en/dev-tools/cli/

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Service Account Config File
Credential Storage

Stores profiles in ~/.databrickscfg and OAuth token caches in ~/.databricks/, or reads DATABRICKS_HOST / DATABRICKS_TOKEN / OAuth M2M service principal env vars.

Side Effects
Read-Only Local Write Remote Write Destructive Billing Impact
Cost & Quotas

CLI is free (Databricks License); workspace compute, DBUs, and cloud infrastructure incur usage charges.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect current Databricks user as JSON
databricks current-user me -o json

Verifies active workspace authentication and user/service-principal identity.

List Databricks clusters as JSON
databricks clusters list -o json

Retrieves cluster IDs, state, and runtime versions in structured JSON.

Controlled Writes & Previews

Validate a Databricks Asset Bundle for dev
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 json output and -p <profile> isolation.
  • + First-class databricks bundle validate enables 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.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI