fdb

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

README

fdb

CLI for FoundationDB, the Record Layer, and SQL. Run local development clusters, work with protobuf records and indexes under fdb rl, and query relational schemas with fdb sql.

CLI documentation is the canonical user guide:

Build from a checkout

From the repository root, using the Go version in go.mod:

go build -o .tmpbuild/fdb ./cmd/fdb &&
export PATH="$PWD/.tmpbuild:$PATH" &&
fdb version

The renamed CLI has not had a tagged release yet. The installer and tagged Go installation require a published root-module release containing cmd/fdb (and matching fdb archives for the installer); use the checkout build above until then. See the installation guide. The Bazel entry point is just fdb <args> (bazelisk run //cmd/fdb -- <args>).

Start a local cluster

With Docker running:

fdb dev up &&
fdb tx read-version

fdb dev up initializes FoundationDB and activates a context. The default config is ~/.fdb/config.yaml (override with FDB_CONFIG); fdb config path prints its location. Continue with the protobuf or SQL tutorial.

Remove the development container and its data when finished:

fdb dev down

Development

Run just test from the repository root for the standard CLI unit and bounded integration coverage. Docker is required for integration tests. See AGENTS.md for validation lanes. The SQL source assets remain in demo/.

Documentation

Overview

fdb — fdb.dev CLI for FoundationDB, Record Layer, and SQL.

A package of the root module fdb.dev, so `go install fdb.dev/cmd/fdb@vX.Y.Z` builds it at the project's release tag.

Directories

Path Synopsis
gen
internal
cmd
Package cmd builds the fdb command tree.
Package cmd builds the fdb command tree.
config
Package config loads and writes the fdb YAML config file (default location: ~/.fdb/config.yaml) using protoconfig.
Package config loads and writes the fdb YAML config file (default location: ~/.fdb/config.yaml) using protoconfig.
meta
Package meta loads a RecordMetaData from a Context's MetadataSource:
Package meta loads a RecordMetaData from a Context's MetadataSource:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL