Skip to content

Install

FileDB v2 ships two binaries: filedb (server) and filedb-cli (client). Pick whichever install path fits your environment.

Prebuilt archives are attached to every GitHub Release for linux, darwin, and windows on amd64/arm64.

Terminal window
# Linux amd64
curl -L https://github.com/srjn45/filedbv2/releases/latest/download/filedbv2_linux_amd64.tar.gz | tar xz
sudo mv filedb filedb-cli /usr/local/bin/
Terminal window
docker run -d \
-p 5433:5433 -p 8080:8080 \
-v $(pwd)/data:/data \
-e FILEDB_API_KEY=my-secret-key \
ghcr.io/srjn45/filedbv2:latest serve --data /data

Or with Compose:

Terminal window
FILEDB_API_KEY=dev-key docker compose up -d

gRPC is exposed on :5433, REST on :8080, and data persists in a named filedb-data volume.

Requires Go 1.22+.

Terminal window
git clone https://github.com/srjn45/filedbv2
cd filedbv2
make build # produces bin/filedb and bin/filedb-cli
make test # run the suite with the race detector

If you only want the database inside a Go program, you don’t install anything — just add the module:

Terminal window
go get github.com/srjn45/filedbv2/filedb # ergonomic façade (recommended)
go get github.com/srjn45/filedbv2/engine # lower-level storage engine

See the Embedding guide.

Terminal window
filedb --version
filedb-cli --version

Continue to the Quickstart.