Skip to main content

Overview

Configure and manage Dolt database settings, server lifecycle, and version control operations. Beads uses a dolt sql-server that auto-starts transparently when needed.

Syntax

Subcommands

Server Lifecycle

start

Start the Dolt SQL server for this project:
The server runs in the background on a per-project port derived from the project path. PID and logs are stored in .beads/.

stop

Stop the Dolt SQL server:

status

Show Dolt server status:

Configuration

show

Show current Dolt configuration with connection test:
Output:

set

Set a configuration value:
Configuration Keys: Examples:
Use --update-config to also write to config.yaml for team-wide defaults.

test

Test connection to Dolt server:
Verifies:
  1. Server is reachable at configured host:port
  2. Connection can be established
  3. Remote connectivity (for configured remotes)

Version Control

commit

Create a Dolt commit from pending changes:
Useful in batch mode when changes accumulate across multiple bd commands. Also needed before push operations that require a clean working set.

push

Push commits to Dolt remote:
For Hosted Dolt, set DOLT_REMOTE_USER and DOLT_REMOTE_PASSWORD environment variables.

pull

Pull commits from Dolt remote:
Merges remote changes into local database.

Remote Management

remote add

Add a Dolt remote (both SQL server and CLI):
Examples:
For Hosted Dolt:

remote list

List configured Dolt remotes (SQL server + CLI):
Shows remotes from both surfaces and detects discrepancies.

remote remove

Remove a Dolt remote (both SQL server and CLI):

Maintenance

clean-databases

Drop stale test/polecat databases from Dolt server:
Removes leftover databases from interrupted tests (prefixes: testdb_*, doctest_*, doctortest_*, beads_pt*, beads_vr*, beads_t*).

killall

Kill all orphan Dolt server processes:
Finds and terminates dolt sql-server processes not tracked by the canonical PID file.

Environment Variables

Configuration Precedence

Settings are resolved in order:
  1. Environment variables (BEADS_DOLT_*) - highest priority
  2. metadata.json - local overrides (gitignored)
  3. config.yaml - team defaults (committed)

Dolt Sync Workflows

Team Collaboration

Setup (once per developer):
Daily workflow:

Backup and Recovery

Setup backup remote:
Regular backups:
Restore from backup:

Multi-Machine Sync

Machine A:
Machine B:

Examples

View Current Configuration

Change Database Name

Configure Remote Access

Setup Custom Data Directory

Batch Commit Workflow

Setup DoltHub Remote

Troubleshoot Connection Issues

Troubleshooting

Server Connection Failed

Cause: Server not running or wrong port Solution:

Remote Not Found

Cause: Remote registered in CLI but not SQL server Solution:

Push Failed: Uncommitted Changes

Cause: Dolt requires clean working set Solution:

Data Directory Not Found

Cause: Custom data-dir path doesn’t exist Solution:

Orphan Server Processes

Cause: Server crashed or PID file lost Solution:
  • bd init - Initialize with Dolt backend
  • bd backup - Backup operations (alternative to remotes)
  • bd doctor - Health checks including Dolt connectivity
  • bd compact - Includes Dolt garbage collection

See Also