Installation

Dolt

Dolt is a data format and a database. The Dolt database provides a command line interface and a MySQL compatible Server for reading and writing data. There are several options for installation, detailed in the following sections.

Linux

For Linux users we provide an installation script that will detect your architecture, download the appropriate binary, and place in /usr/local/bin:
1
sudo bash -c 'curl -L https://github.com/dolthub/dolt/releases/latest/download/install.sh | sudo bash'
Copied!
The use of sudo is required to ensure the binary lands in your path. The script can be examined before executing should you have any concerns.

Windows

winget

1
winget install dolt
Copied!

Chocolatey

1
choco install dolt
Copied!
We provide both .msi files and .zip files.

MSI Files

The easiest way to install Dolt on Windows is to use our MSI files that are provided with each release, they can be found in the Assets section of our release. Grab the latest here.

.zip Archive

For those preferring to install Dolt manually a zipped archive is provided with the requisite executables. It can be found in assets along with our latest release.

OSX

Homebrew

We publish a Homebrew formula with every release, so Mac users using Homebrew for package management can build Dolt from source with a single command:
1
$ brew install dolt
2
==> Downloading https://homebrew.bintray.com/bottles/dolt-0.18.3.catalina.bottle.tar.gz
3
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/c03cc532d5045fa090cb4e0f141883685de3765bf1d221e400c750b3ae89e328?response-content-disposition=attachment%3Bfilename%3D%22dolt-0.18.3.catalina.bottle.tar.gz%22&Policy=eyJTdGF0
4
######################################################################## 100.0%
5
==> Pouring dolt-0.18.3.catalina.bottle.tar.gz
6
🍺 /usr/local/Cellar/dolt/0.18.3: 7 files, 56.9MB
Copied!
This will install Dolt as follows:
1
$ ls -ltr $(which dolt)
2
lrwxr-xr-x 1 oscarbatori admin 30 Aug 26 16:49 /usr/local/bin/dolt -> ../Cellar/dolt/0.18.3/bin/dolt
Copied!

Install Script

For non-Homebrew OSX users, the download script for Linux can be used, as OSX is a *nix system. It will download the appropriate binary, and place it in /usr/local/bin:
1
sudo bash -c 'curl -L https://github.com/dolthub/dolt/releases/latest/download/install.sh | bash'
Copied!

Build from source

For those interested in building from source, it's relatively straight forward to do. Just clone the repo and use go install:
1
$ git clone [email protected]:dolthub/dolt.git
2
Cloning into 'dolt'...
3
remote: Enumerating objects: 25, done.
4
remote: Counting objects: 100% (25/25), done.
5
remote: Compressing objects: 100% (25/25), done.
6
remote: Total 87117 (delta 4), reused 6 (delta 0), pack-reused 87092
7
Receiving objects: 100% (87117/87117), 93.77 MiB | 13.94 MiB/s, done.
8
Resolving deltas: 100% (57066/57066), done.v
9
$ cd dolt/go && go install ./cmd/dolt ./cmd/git-dolt ./cmd/git-dolt-smudge
Copied!
This will create a binary named dolt at ~/go/bin/dolt, unless you have $GO_HOME set to something other than ~/go.

Set your config variables and connect to DoltHub

After installing Dolt, the first thing you should do is set config variables. This is the information that will be used on each Dolt commit that you push. See CLI reference. If you already have a DoltHub account, just run dolt login, which automatically sets the variables for you. This will also prompt you to create and save a new credential key on DoltHub, which allows the CLI to authenticate.
If you don't have a DoltHub account yet, you can set the config variables manually:
1
dolt config --global --add user.name <your name>
2
dolt config --global --add user.email <your email>
Copied!
After you sign up for DoltHub, run dolt login from the command line to complete authentication.

Conclusion

One important limitation is we do not support 32-bit architectures. If you need a 32-bit build, or you think we have missed an important software distribution channel please submit an issue and we will take a look promptly.
Last modified 1mo ago