Install
FileDB v2 ships two binaries: filedb (server) and filedb-cli
(client). Pick whichever install path fits your environment.
Option 1 — Download a binary
Section titled “Option 1 — Download a binary”Prebuilt archives are attached to every GitHub Release for linux, darwin, and windows on amd64/arm64.
# Linux amd64curl -L https://github.com/srjn45/filedbv2/releases/latest/download/filedbv2_linux_amd64.tar.gz | tar xzsudo mv filedb filedb-cli /usr/local/bin/Option 2 — Docker
Section titled “Option 2 — Docker”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 /dataOr with Compose:
FILEDB_API_KEY=dev-key docker compose up -dgRPC is exposed on :5433, REST on :8080, and data persists in a named
filedb-data volume.
Option 3 — Build from source
Section titled “Option 3 — Build from source”Requires Go 1.22+.
git clone https://github.com/srjn45/filedbv2cd filedbv2make build # produces bin/filedb and bin/filedb-climake test # run the suite with the race detectorOption 4 — Embed it (no install)
Section titled “Option 4 — Embed it (no install)”If you only want the database inside a Go program, you don’t install anything — just add the module:
go get github.com/srjn45/filedbv2/filedb # ergonomic façade (recommended)go get github.com/srjn45/filedbv2/engine # lower-level storage engineSee the Embedding guide.
Verify
Section titled “Verify”filedb --versionfiledb-cli --versionContinue to the Quickstart.