Appearance
Preview
Use diver preview to test dashboards from your local *.diver.yml files before you publish them to the workspace.
Preview is designed for iteration. It uploads your local resources into a personal preview dashboard group, opens that group in Diver, and keeps the dashboards out of the shared workspace list until you publish them.
bash
diver preview dashboards.diver.ymlHow previews work
Each preview belongs to your user account and is stored in a personal preview dashboard group. Running the command again with the same resource name updates the existing preview instead of creating a new public dashboard.
Preview dashboards can be reviewed in the product like any other dashboard in a group, but they are not published workspace dashboards. This keeps local work in progress out of the main dashboard list.
Each file gets its own preview group, named "Preview: " followed by the file's name. The group always matches the file: dashboards you remove from the file are deleted from the group on the next preview.
The command prints a link to each preview group and each dashboard in it. When it previews several files, it opens only the first group in the browser.
Preview one file
Pass a specific resource file when you only want to preview one dashboard package:
bash
diver preview dashboards.diver.ymlPreview a project
Run the command without a file to discover every *.diver.yml file below the current directory:
bash
diver previewThis is useful when a repository contains multiple dashboard resources.
Print links without opening the browser
Use --no-open to print URLs without opening the browser:
bash
diver preview --no-openShare a preview
Dashboards are shared through dashboard groups. To let teammates review a preview, share the personal preview dashboard group from Diver.
Direct sharing of an individual preview dashboard is not supported. When the dashboard is ready for everyone in the workspace, publish it with diver publish.
Delete a preview
Previews stay until you delete them. Use diver stop-preview to delete a preview together with its dashboards. It finds files the same way diver preview does:
bash
diver stop-preview dashboards.diver.yml
diver stop-previewTo delete every preview you have in the workspace, including ones whose files no longer exist:
bash
diver stop-preview --allIf you preview pull requests in CI, run diver stop-preview when the pull request closes so its previews don't pile up.
You can also delete a preview in Diver from its menu on the Your previews tab of the dashboard list. Running diver preview again later creates the preview anew.
Before you run preview
Make sure the source names referenced in the YAML exist in Diver. Source resource names are managed in the web app and can be listed locally with:
bash
diver sources