{"slug": "databricks-genie-code-cli-ga-v0-5-1-complete-technical-q-a-install-ui-vs-cli", "title": "Databricks Genie Code CLI (GA, v0.5.1): Complete Technical Q&A — Install, UI vs. CLI, Local Python, Unity Gateway & Billing", "summary": "Databricks released Genie Code CLI v0.5.1 to general availability on November 18, 2026, a terminal-native engineering agent for macOS, Linux, and Windows that edits repository files, queries Unity Catalog data through Genie, and deploys Databricks Asset Bundles under a user's personal OAuth U2M identity. The tool requires Databricks CLI 1.0.0 or later, uses local skills directories and AGENTS.md rather than the workspace's .assistant/skills/, and supports headless JSON execution via genie exec --output-schema. It draws on a unified Genie Code budget with a 150 DBU/month free tier, auditable through system.billing.usage filtered to the GENIE_CODE_CLI surface.", "body_md": "*Updated November 28, 2026, for Databricks Genie Code CLI GA (v0.5.1).*\n\nDatabricks Genie Code CLI reached General Availability on November 18, 2026, bringing a terminal-native engineering agent to macOS, Linux, and Windows workstations. Below is a complete technical Q&A covering installation, UI vs. CLI architecture, local Python workflows, headless JSON execution, and SQL billing audits.\n\n**Short answer:** Databricks Genie Code CLI (GA v0.5.1) is a local terminal AI agent that edits repository files, queries Unity Catalog data through Genie, and deploys Databricks Asset Bundles under your personal OAuth U2M identity. Install Databricks CLI >= 1.0.0 first, then run the official install script.\n\n```\n# Prerequisite: Databricks CLI >= 1.0.0\ndatabricks --version\n\n# Install Genie Code CLI (macOS / Linux)\ncurl -fsSL https://github.com/databricks/genie-code-cli/releases/latest/download/install.sh | bash\ngenie --version\ngenie doctor --summary\n```\n\n**Short answer:** Workspace Genie Code runs inside Databricks notebooks and SQL editors using `.assistant/skills/` and workspace instructions, whereas Genie Code CLI runs locally in your terminal using `~/.genie/skills/`, `.agents/skills/`, and repository-root `AGENTS.md`. Both share one unified Genie Code budget and 150 DBU/month free tier.\n\n`pytest` unit tests, and Databricks Asset Bundles (`databricks bundle validate`).\n**Short answer:** Yes—Genie Code CLI runs in local macOS, Linux, and Windows terminals as well as integrated terminals inside VS Code, Cursor, and JetBrains IDEs. However, headless remote SSH tunnels are not supported because interactive OAuth U2M login requires a local browser callback.\n\nAuthenticate once on your workstation so your active Databricks CLI profile supplies short-lived OAuth tokens automatically:\n\n```\ndatabricks auth login --host https://<your-workspace>.cloud.databricks.com\ncd my-lakehouse-repo && genie\n```\n\n**Short answer:** Sign in with `databricks auth login`, verify connectivity via `genie doctor --summary`, and run local Polars or DuckDB scripts against Parquet/CSV files while querying Unity Catalog metadata or governed metrics through `databricks genie ask` without launching a browser.\n\n```\ndatabricks auth login --host https://<your-workspace>.cloud.databricks.com\ngenie doctor --summary\ndatabricks genie ask \"Compare local ./data/orders.parquet row counts with main.sales.orders_gold using DuckDB\"\n```\n\n**Short answer:** Use `genie exec --output-schema` with `< /dev/null` to run Genie Code CLI non-interactively and enforce a strict JSON schema on the response, making it reliable for automated data quality checks and pre-commit scripts.\n\n```\ngenie exec --output-schema ./schemas/dq_check.json \\\n  \"Check ./data/events.parquet for null user_ids and duplicate event_ids\" < /dev/null\n```\n\n**Short answer:** Genie Code CLI is billed under the unified Genie Code budget (including 150 free DBUs/month). Query `system.billing.usage` joined with `system.billing.list_prices`, filtering `billing_origin_product = 'GENIE'` and `usage_metadata.genie.surface = 'GENIE_CODE_CLI'` to calculate exact dollar cost.\n\n```\nSELECT\n  u.usage_date,\n  u.usage_metadata.genie.surface AS surface,\n  ROUND(SUM(u.usage_quantity), 4) AS total_dbus,\n  ROUND(SUM(u.usage_quantity * lp.pricing.default), 2) AS estimated_usd\nFROM system.billing.usage u\nJOIN system.billing.list_prices lp\n  ON u.sku_name = lp.sku_name\n  AND u.cloud = lp.cloud\n  AND u.usage_end_time >= lp.price_start_time\n  AND (lp.price_end_time IS NULL OR u.usage_end_time < lp.price_end_time)\nWHERE u.billing_origin_product = 'GENIE'\n  AND u.usage_metadata.genie.surface = 'GENIE_CODE_CLI'\n  AND u.usage_date >= CURRENT_DATE() - INTERVAL 30 DAYS\nGROUP BY ALL\nORDER BY u.usage_date DESC;\n```\n\n", "url": "https://wpnews.pro/news/databricks-genie-code-cli-ga-v0-5-1-complete-technical-q-a-install-ui-vs-cli", "canonical_source": "https://dev.to/saurabhanilagrawal/databricks-genie-code-cli-ga-v051-complete-technical-qa-install-ui-vs-cli-local-1f45", "published_at": "2026-11-28 09:37:15+00:00", "updated_at": "2026-11-28 09:43:41.967351+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools", "ai-tools", "large-language-models"], "entities": ["Databricks", "Genie Code CLI", "Unity Catalog", "Databricks Asset Bundles", "VS Code", "Cursor", "JetBrains"], "also_reported_by": [], "takeaway": "Genie Code CLI runs locally with ~/.genie/skills/ and AGENTS.md, requires Databricks CLI >= 1.0.0 and interactive OAuth U2M login (no headless SSH), and bills under the GENIE_CODE_CLI surface of the shared 150 DBU/month Genie Code budget.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/databricks-genie-code-cli-ga-v0-5-1-complete-technical-q-a-install-ui-vs-cli", "markdown": "https://wpnews.pro/news/databricks-genie-code-cli-ga-v0-5-1-complete-technical-q-a-install-ui-vs-cli.md", "text": "https://wpnews.pro/news/databricks-genie-code-cli-ga-v0-5-1-complete-technical-q-a-install-ui-vs-cli.txt", "jsonld": "https://wpnews.pro/news/databricks-genie-code-cli-ga-v0-5-1-complete-technical-q-a-install-ui-vs-cli.jsonld"}}