databricks by databricks/databricks-agent-skills
npx skills add https://github.com/databricks/databricks-agent-skills --skill databricksDatabricks CLI、身份验证和数据探索的核心技能。
针对特定产品,请使用专用技能:
databricks --version 进行检查。
databricks auth profiles
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
databricks auth profiles每个 Bash 命令都在 独立的 shell 会话 中运行。
# 有效:使用 --profile 标志
databricks apps list --profile my-workspace
# 有效:使用 && 连接命令
export DATABRICKS_CONFIG_PROFILE=my-workspace && databricks apps list
# 无效:分开的命令
export DATABRICKS_CONFIG_PROFILE=my-workspace
databricks apps list # 配置文件未设置!
使用这些工具代替手动浏览目录/模式/表:
# 发现表结构(列、类型、样本数据、统计信息)
databricks experimental aitools tools discover-schema catalog.schema.table --profile <PROFILE>
# 运行即席 SQL 查询
databricks experimental aitools tools query "SELECT * FROM table LIMIT 10" --profile <PROFILE>
# 查找默认仓库
databricks experimental aitools tools get-default-warehouse --profile <PROFILE>
详情请参阅 数据探索。
⚠️ 至关重要:某些命令使用位置参数,而非标志
# 当前用户
databricks current-user me --profile <PROFILE>
# 列出资源
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 — 使用位置参数(而非标志!)
databricks catalogs list --profile <PROFILE>
# ✅ 正确:位置参数
databricks schemas list <CATALOG> --profile <PROFILE>
databricks tables list <CATALOG> <SCHEMA> --profile <PROFILE>
databricks tables get <CATALOG>.<SCHEMA>.<TABLE> --profile <PROFILE>
# ❌ 错误:这些标志/命令不存在
# databricks schemas list --catalog-name <CATALOG> ← 将会失败
# databricks tables list --catalog <CATALOG> ← 将会失败
# databricks sql-warehouses list ← 不存在,请使用 `warehouses list`
# databricks execute-statement ← 不存在,请使用 `experimental aitools tools query`
# databricks sql execute ← 不存在,请使用 `experimental aitools tools query`
# 如有疑问,请查看帮助:
# databricks schemas list --help
# 获取详细信息
databricks apps get <NAME> --profile <PROFILE>
databricks jobs get --job-id <ID> --profile <PROFILE>
databricks clusters get --cluster-id <ID> --profile <PROFILE>
# 捆绑包
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>
| 错误 | 解决方案 |
|---|---|
cannot configure default credentials | 使用 --profile 标志或先进行身份验证 |
PERMISSION_DENIED | 检查工作区/UC 权限 |
RESOURCE_DOES_NOT_EXIST | 验证资源名称/ID 和配置文件 |
每周安装数
92
代码仓库
GitHub 星标数
28
首次出现
2026年2月14日
安全审计
安装于
github-copilot77
opencode77
cursor76
kimi-cli75
gemini-cli75
amp75
Core skill for Databricks CLI, authentication, and data exploration.
For specific products, use dedicated skills:
CLI installed : Run databricks --version to check.
Authenticated : databricks auth profiles
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!
Use these instead of manually navigating catalogs/schemas/tables:
# 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>
See Data Exploration for details.
⚠️ 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>
# ❌ 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 |
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 |
| Exploring tables/schemas | Data Exploration |
| Deploying jobs/pipelines | Asset Bundles |
Weekly Installs
92
Repository
GitHub Stars
28
First Seen
Feb 14, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
github-copilot77
opencode77
cursor76
kimi-cli75
gemini-cli75
amp75
Supabase Postgres 最佳实践指南 - 8大类别性能优化规则与SQL示例
65,900 周安装