doctor
Read-only Databricks health check: CLI, profiles, auth validity via one API call. Add `full`…
Set up Databricks CLI auth: install check, then an OAuth / PAT / service-principal profile (workspace or account-level), then verify."}}
> /plugin marketplace add databricks/databricks-agent-skills > /plugin install databricks@databricks-agent-skills
How it fires
How this command gets triggered: by you, by Claude, or both.
/setupContext preview
What this command does when you run it.
Set up Databricks CLI auth: install check, then an OAuth / PAT / service-principal profile (workspace or account-level), then verify."}}
{{description: "Set up Databricks CLI auth: install check, then an OAuth / PAT / service-principal profile (workspace or account-level), then verify."
argument-hint: "[workspace-or-account-url]"
allowed-tools: Bash(databricks:*), Read|name: databricks-setup
description: "Set up Databricks CLI auth: install check, then an OAuth / PAT / service-principal profile (workspace or account-level), then verify."}}Guide the user through Databricks CLI authentication. Use the **databricks-core** skill for the authoritative auth details; this command is the step-by-step wrapper around it.
1. **CLI present?** `databricks --version`. If it's missing, follow the install steps in the databricks-core skill (`databricks-cli-install.md`). In sandboxed environments (Cursor, containers), print the install command and ask the user to run it in their own terminal. Don't try to install into the sandbox. 2. **Existing profiles?** `databricks auth profiles`. Show what's already configured. If a working profile exists, ask whether to reuse it or add a new one. 3. **Pick an auth method** (ask the user; {{`$1` may be a workspace or account console URL|they may have typed a workspace or account console URL after the command}}):
`databricks auth login --host <workspace-url> --profile <name>`. Opens a browser. Best for laptops. If the user doesn't know their workspace URL, plain `databricks auth login --profile <name>` opens login.databricks.com to sign in and pick a workspace. URLs copied from the browser may carry `?w=<workspace-id>` or `account_id=` query params; the CLI accepts them, but quote the URL so the shell doesn't interpret the `?`.
(`accounts.cloud.databricks.com`, `accounts.azuredatabricks.net`, `accounts.gcp.databricks.com`), also pass the account ID: `databricks auth login --host <account-url> --account-id <uuid> --profile <name>`. Ask for the account ID if it isn't in the URL (it's the UUID shown in the account console address bar).
a personal access token. This command prompts on stdin, so don't run it yourself (it hangs without a TTY): ask the user to run it in their own terminal, then continue once it's done. The same applies to `databricks auth login` when no browser can open (headless or sandboxed sessions).
CI/automation; never a personal PAT in CI.
are already injected, so no setup is needed. 4. **Confirm before writing** any profile; auth writes to `~/.databrickscfg`. 5. **Verify**: `databricks current-user me --profile <name>` returns the expected user. For account-level profiles, `current-user me` doesn't exist; use `databricks auth describe --profile <name>` and check the resolved host and account ID.
Never echo tokens or secrets back. Never auto-select a profile. When done, suggest `{{/databricks:doctor|/databricks-doctor}}` for a full health check.
Build on Databricks with AI coding agents such as Claude Code, Cursor, Codex, and GitHub Copilot. This repository provides the skills and agent plugins for Databricks AI Tools.
Repo: databricks/databricks-agent-skills
Read-only Databricks health check: CLI, profiles, auth validity via one API call. Add `full`…
Read-only Databricks health check: CLI, profiles, auth validity via one API call. Add `full`…
Set up Databricks CLI auth: install check, then an OAuth / PAT / service-principal profile…