| name | databricks-bundle |
| description | Manage Databricks Asset Bundles (DABs) for infrastructure as code. Use when user wants to:
(1) Initialize a new bundle project from templates
(2) Deploy jobs, pipelines, or apps to workspaces
(3) Run jobs/pipelines from bundle definitions
(4) Generate bundle config from existing resources
(5) Manage multi-environment deployments (dev/staging/prod)
Triggers: "bundle", "DAB", "deploy to databricks", "init project", "databricks.yml"
|
Databricks Asset Bundles CLI
Use databricks bundle <command> --help for detailed flags.
Workflow
databricks bundle init default-python
databricks bundle validate
databricks bundle deploy --target dev
databricks bundle run my_job
Init
databricks bundle init
databricks bundle init default-python
databricks bundle init default-sql
databricks bundle init dbt-sql
databricks bundle init mlops-stacks
databricks bundle init <git-url>
Validate & Deploy
databricks bundle validate
databricks bundle validate --target prod
databricks bundle deploy
databricks bundle deploy --target prod
databricks bundle deploy --auto-approve
databricks bundle deploy --var="env=prod"
databricks bundle deploy --fail-on-active-runs
Run
databricks bundle run my_job
databricks bundle run my_job --params="date=2024-01-01"
databricks bundle run my_job --only="task1,task2"
databricks bundle run my_job --no-wait
databricks bundle run my_pipeline --full-refresh-all
databricks bundle run my_pipeline --refresh="table1,table2"
databricks bundle run my_job -- arg1 arg2
databricks bundle run my_job -- --key value
Generate from Existing
databricks bundle generate job --existing-job-id 123 --key my_job
databricks bundle generate pipeline --existing-pipeline-id abc --key my_pipe
databricks bundle generate job --existing-job-id 123 --key my_job --bind
Bindings
databricks bundle deployment bind my_job 123
databricks bundle deployment unbind my_job
Other
databricks bundle summary
databricks bundle destroy --auto-approve
databricks bundle sync
References
- databricks.yml - Annotated config with jobs, pipelines, variables, targets
- ci-cd.md - GitHub Actions and Azure DevOps examples