|
1 | 1 |
|
2 | 2 | >>> [CLI] bundle generate dashboard --help |
3 | | -Generate configuration for a dashboard |
| 3 | +Generate bundle configuration for an existing Databricks dashboard. |
| 4 | + |
| 5 | +This command downloads an existing AI/BI dashboard and creates bundle files |
| 6 | +that you can use to deploy the dashboard to other environments or manage it as code. |
| 7 | + |
| 8 | +Examples: |
| 9 | + # Import dashboard by workspace path |
| 10 | + databricks bundle generate dashboard --existing-path /Users/me/sales-dashboard \ |
| 11 | + --key sales_dash |
| 12 | + |
| 13 | + # Import dashboard by ID |
| 14 | + databricks bundle generate dashboard --existing-id abc123 --key analytics_dashboard |
| 15 | + |
| 16 | + # Watch for changes to keep bundle in sync with UI modifications |
| 17 | + databricks bundle generate dashboard --resource my_dashboard --watch --force |
| 18 | + |
| 19 | +What gets generated: |
| 20 | +- Dashboard configuration YAML file with settings and a reference to the dashboard definition |
| 21 | +- Dashboard definition (.lvdash.json) file with layout and queries |
| 22 | + |
| 23 | +Sync workflow for dashboard development: |
| 24 | +When developing dashboards, you can modify them in the Databricks UI and sync |
| 25 | +changes back to your bundle: |
| 26 | + |
| 27 | +1. Make changes to dashboard in the Databricks UI |
| 28 | +2. Run: databricks bundle generate dashboard --resource my_dashboard --force |
| 29 | +3. Commit changes to version control |
| 30 | +4. Deploy to other environments with: databricks bundle deploy --target prod |
| 31 | + |
| 32 | +The --watch flag continuously polls for remote changes and updates your local |
| 33 | +bundle files automatically, useful during active dashboard development. |
4 | 34 |
|
5 | 35 | Usage: |
6 | 36 | databricks bundle generate dashboard [flags] |
|
0 commit comments