This skill guides Databricks CLI setup and use, including authentication, user-selected profiles, workspace resource operations, and bundle validation and deployment. It provides SQL and data-exploration commands, troubleshooting guidance, and rules for choosing related Databricks skills. It also describes a REST API fallback when CLI installation is blocked.
82%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Core skill for Databricks CLI, authentication, and data exploration.
For specific products, use dedicated skills:
For data discovery, exploration, and query generation — finding tables, answering natural-language questions about the data, or generating SQL — use databricks-data-discovery (it asks Genie One first, then falls back to manual exploration). Use the AI-tool commands below and Manual Data Exploration for tables you already know and SQL you already have, or to find tables yourself when Genie One isn't available, that skill isn't installed, or Genie can't find the data or answer the question.
CLI installed and current: the CLI must be >= v1.0.0. A CLI that is present but too old is not "good enough" — it must be upgraded, not worked around.
UPGRADE or INSTALL: STOP and follow that reference file to upgrade or install — do
not proceed or tell the user their CLI is fine.databricks-setup-local needs v1.16.0), that skill already detected the gap. A passing
v1.0.0 floor check is not enough: follow the Update / repair procedures to install the
latest stable, which satisfies any skill's floor.DATABRICKS_HOST and DATABRICKS_TOKEN environment variables if present in the shell. See the Databricks REST API docs.Authenticated: databricks auth profiles
databricks auth login --host <new workspace URL> --profile <name> once they paste the URL.NEVER auto-select a profile.
databricks auth profilesEach Bash command runs in a separate shell session.
# WORKS: --profile flag
databricks apps list --profile my-workspace
# WORKS: chained with &&
export DATABRICKS_CONFIG_PROFILE=my-workspace && databricks apps list
# DOES NOT WORK: separate commands
export DATABRICKS_CONFIG_PROFILE=my-workspace
databricks apps list # profile not set!When databricks --version is v1.27.0 or later, add --skills-invoked <skills> to every databricks CLI command
you run, where <skills> is a comma-separated list of the bare names of the Databricks skills loaded for this task,
for example databricks jobs list --skills-invoked databricks-core,databricks-jobs. Put it right after the
subcommand, before any -- separator, because arguments after -- go to another program (for example
databricks psql --skills-invoked databricks-core,databricks-lakebase --project <ID> -- -c "..."). Use bare skill
names only, with no plugin: prefix. Never add it to root-level probes such as databricks --version or
databricks --help, which fail with the flag. Leave it off on older CLIs, which reject the flag. Do not add it to
scripts or code written for the user.
The flag adds only these skill names, as skill/<name> entries in the CLI's User-Agent header. They go to the
Databricks workspace or account the command calls and, for some auth types, to the identity provider the CLI gets a
token from (for example Microsoft Entra ID). DATABRICKS_CLI_DISABLE_TELEMETRY=1 turns them off.
Use these to inspect tables and run SQL, instead of walking schemas list / tables list one schema at a time:
# discover table structure (columns, types, sample data, stats)
databricks experimental aitools tools discover-schema catalog.schema.table --profile <PROFILE>
# run ad-hoc SQL queries
databricks experimental aitools tools query "SELECT * FROM table LIMIT 10" --profile <PROFILE>
# find the default warehouse
databricks experimental aitools tools get-default-warehouse --profile <PROFILE>Names are literal. Use catalog/schema/table names exactly as given — never change a
hyphen to an underscore or otherwise normalize them. In SQL, backtick-quote any name part
with special characters (e.g. `my-catalog`.schema.table); unquoted hyphens cause a
parse error.
To find tables, see Finding Data above. See Manual Data Exploration for the full command surface, quoting rules, troubleshooting, and the fallback table search.
⚠️ CRITICAL: Some commands use positional arguments, not flags
# current user
databricks current-user me --profile <PROFILE>
# list resources
databricks apps list --profile <PROFILE>
databricks jobs list --profile <PROFILE>
databricks clusters list --profile <PROFILE>
databricks warehouses list --profile <PROFILE>
databricks pipelines list --profile <PROFILE>
databricks serving-endpoints list --profile <PROFILE>
# ⚠️ Unity Catalog — POSITIONAL arguments (NOT flags!)
databricks catalogs list --profile <PROFILE>
# ✅ CORRECT: positional args
databricks schemas list <CATALOG> --profile <PROFILE>
databricks tables list <CATALOG> <SCHEMA> --profile <PROFILE>
databricks tables get <CATALOG>.<SCHEMA>.<TABLE> --profile <PROFILE>
# Search one catalog by table name (case-sensitive; names are lowercase), no warehouse needed
databricks tables list-summaries <CATALOG> --table-name-pattern '%<KEYWORD>%' --limit 50 --profile <PROFILE>
# ❌ WRONG: these flags/commands DON'T EXIST
# databricks schemas list --catalog-name <CATALOG> ← WILL FAIL
# databricks tables list --catalog <CATALOG> ← WILL FAIL
# databricks sql-warehouses list ← doesn't exist, use `warehouses list`
# databricks execute-statement ← doesn't exist, use `experimental aitools tools query`
# databricks sql execute ← doesn't exist, use `experimental aitools tools query`
# When in doubt, check help:
# databricks schemas list --help
# get details
databricks apps get <NAME> --profile <PROFILE>
databricks jobs get --job-id <ID> --profile <PROFILE>
databricks clusters get --cluster-id <ID> --profile <PROFILE>
# bundles
databricks bundle init --profile <PROFILE>
databricks bundle validate --profile <PROFILE>
databricks bundle deploy -t <TARGET> --profile <PROFILE>
databricks bundle run <RESOURCE> -t <TARGET> --profile <PROFILE>| Error | Solution |
|---|---|
cannot configure default credentials | Use --profile flag or authenticate first |
configuration does not support OAuth tokens | The command requires OAuth (e.g., databricks apps logs). Re-authenticate with databricks auth login --host <URL> --profile <PROFILE>. See CLI Authentication. |
PERMISSION_DENIED | Check workspace/UC permissions |
RESOURCE_DOES_NOT_EXIST | Verify resource name/id and profile |
| Task | READ BEFORE proceeding |
|---|---|
| First time setup | CLI Installation |
| Auth issues / new workspace | CLI Authentication |
| Finding or exploring tables/schemas | databricks-data-discovery (see Finding Data); Manual Data Exploration for known tables and SQL, or as its fallback |
| Deploying jobs/pipelines | Use /databricks-dabs |
databricks/databricks-agent-skills
f17757a
databricksdatabricks authdatabricks auth profilesdatabricks auth logindatabricks appsdatabricks apps listdatabricks apps getdatabricks apps logsdatabricks jobsdatabricks jobs listdatabricks jobs getdatabricks clustersdatabricks clusters listdatabricks clusters getdatabricks warehousesdatabricks warehouses listdatabricks pipelinesdatabricks pipelines listdatabricks serving-endpointsdatabricks serving-endpoints listdatabricks catalogsdatabricks catalogs listdatabricks schemasdatabricks schemas listdatabricks tablesdatabricks tables listdatabricks tables getdatabricks tables list-summariesdatabricks experimentaldatabricks experimental aitoolsdatabricks experimental aitools toolsdatabricks experimental aitools tools discover-schemadatabricks experimental aitools tools querydatabricks experimental aitools tools get-default-warehousedatabricks current-userdatabricks current-user medatabricks bundledatabricks bundle initdatabricks bundle validatedatabricks bundle deploydatabricks bundle rundatabricks psqlDatabricks CLIAlso appears in
since Nov 4, 2026
last in sync Oct 8, 2026
since Sep 13, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.