Appearance
Installation
The diver CLI lets you keep dashboards as *.diver.yml files next to your code, preview them, and publish them to your workspace. It's a single program with nothing else to install.
Every version is published on the Releases page, with a download for each system:
| System | Download |
|---|---|
| macOS with Apple Silicon (M1 and later) | diver-<version>-aarch64-apple-darwin.tar.gz |
| macOS with an Intel processor | diver-<version>-x86_64-apple-darwin.tar.gz |
| Windows (64-bit) | diver-<version>-x86_64-pc-windows.zip |
macOS
With Homebrew
If you use Homebrew, install the CLI with:
bash
brew install withdiver/tap/diverHomebrew picks the right download for your Mac. To update to a new version later, run:
bash
brew upgrade diverWithout Homebrew
Run this in Terminal. It downloads the latest version for your Mac and installs it in /usr/local/bin:
bash
VERSION=$(curl -fsSLI -o /dev/null -w '%{url_effective}' https://github.com/withdiver/diver-cli/releases/latest | sed 's#.*/v##')
ARCH=$(uname -m | sed 's/arm64/aarch64/')
curl -fsSL "https://github.com/withdiver/diver-cli/releases/download/v$VERSION/diver-$VERSION-$ARCH-apple-darwin.tar.gz" | tar -xz
sudo mkdir -p /usr/local/bin
sudo mv diver /usr/local/bin/sudo asks for your Mac password, because /usr/local/bin belongs to the system.
Downloaded it in a browser?
macOS blocks programs downloaded in a browser that aren't from an identified developer. After unpacking, run xattr -d com.apple.quarantine diver once to allow it, then move it to /usr/local/bin. Downloads with curl, like the command above, aren't affected.
Windows
- Download
diver-<version>-x86_64-pc-windows.zipfrom the Releases page. - Unpack it and move
diver.exeto a folder of its own, for exampleC:\Program Files\Diver. - Add that folder to your
PATH: search for Edit the system environment variables, select Environment Variables, then edit Path and add the folder. - Open a new terminal so it picks up the change.
The first time you run diver.exe, Windows may warn that it's from an unknown publisher. Select More info, then Run anyway.
Linux
There's no Linux build yet.
Verify a download
Each release includes a SHA256SUMS file. To check that a download is intact, compare its checksum with the matching line in that file:
bash
shasum -a 256 diver-<version>-aarch64-apple-darwin.tar.gzOn Windows, use Get-FileHash diver-<version>-x86_64-pc-windows.zip in PowerShell.
Check the installation
Once diver is on your PATH, check that it runs:
bash
diver --versionTo see every command, run:
bash
diver --help| Command | What it does |
|---|---|
diver login | Connects the CLI to your workspace. See Authorization. |
diver validate | Checks your dashboard files without saving anything. See Validate. |
diver preview | Uploads your dashboards privately so you can check them. See Preview. |
diver stop-preview | Deletes your previews. See Delete a preview. |
diver publish | Publishes your dashboards to the workspace. See Publish. |
diver sources | Lists the data sources you can use in *.diver.yml files, and their tables and columns. See Sources. |
diver setup | Switches the workspace the CLI works in. See Switch workspace. |
diver skill install | Installs the skill that teaches Claude Code to build dashboards. See Building dashboards with Claude Code. |
Configuration
The CLI keeps its settings in ~/.diver/config and creates the file the first time it needs it. You don't need to edit it by hand: diver login and diver setup fill it in.
Next steps
- Log in to connect the CLI to your workspace.
- Learn the dashboard language used in
*.diver.ymlfiles. - Follow the guide to publish your first dashboard.