Installation
DAC is released as standalone binaries through GitHub Releases.
Install Script
curl -LsSf https://getbruin.com/install/dac | shThe installer installs the Bruin CLI first if bruin is not already available on your PATH, then downloads the latest DAC GitHub release for your platform and installs dac into ~/.local/bin by default.
DAC uses .bruin.yml connections and currently shells out to bruin query to execute dashboard SQL.
To install the latest edge build from main:
curl -LsSf https://getbruin.com/install/dac | sh -s -- --channel edgeTo install into a different directory:
curl -LsSf https://getbruin.com/install/dac | sh -s -- -b /usr/local/binTo install a specific version:
curl -LsSf https://getbruin.com/install/dac | sh -s -- v0.1.0Upgrading
Once dac is on your PATH, upgrade in place with:
dac upgradeThis re-runs the official installer to replace the current binary with the latest release on the same channel. See dac upgrade for flags, channel switching, and pinning a specific version.
DAC also checks GitHub once a day for newer releases on your channel and prints a one-line notice to stderr when one is available. Set DAC_NO_UPDATE_CHECK=1 or DO_NOT_TRACK=1 to disable.
Build from Source
If you are developing DAC itself:
git clone https://github.com/bruin-data/dac.git
cd dac
make deps
make buildThe binary is output under the repository bin/ directory. Add that directory to your PATH if you want to run it as dac.
Verify Installation
dac versionIf you will run dashboards locally, also verify that the Bruin CLI is on your PATH:
bruin --version