working-with-dolt
Use when working with Dolt — the version-controlled SQL database that branches, diffs, merges, and clones like Git while speaking the MySQL wire protocol ("Git for data"). Covers the full `dolt` CLI (
Files257
View on GitHubSKILL.mdskills/working-with-dolt/SKILL.md
GitHubWorking with Dolt (dolt)
Offline reference for Dolt — "Git for data": a SQL database you can branch, diff, merge, and clone like a Git repo, speaking the MySQL wire protocol so existing drivers/ORMs connect unchanged. Pinned to a known version (see PINNED_VERSION).
The CLI pages in references/cli/ are generated verbatim from the installed pinned dolt binary; the conceptual docs in references/docs/ are fetched from the official dolthub.com docs. Every generated/fetched file carries source/fetched_at/sha256 frontmatter.
How to use this skill
- CLI reference: read
references/cli/_index.mdfor the command list, thenreferences/cli/<command>.md(or<command>__<subcommand>.mdfor groups likeschema,table,remote,conflicts,creds,docs,ci) for exact synopsis/flags — these are the literal output ofdolt <command> --helpat the pinned version. - Concepts / SQL versioning / install / Hosted / DoltHub:
grepreferences/docs/. Files are slugified by full path, e.g.introduction__installation__mac.md,sql-reference__version-control-features.md,concepts__dolt__git.md. Start fromintroduction__what-is-dolt.md. - Dolt under beads:
references/beads-integration.md— how the shareddolt sql-serverbacks beads (port 3308,~/.beads/shared-server), server maintenance, Dolt-level troubleshooting, and clean project bootstrap. - If the installed
doltdiffers fromPINNED_VERSION, the CLI reference may not match — bump the pin and regenerate (make update-working-with-dolt), or rundolt <cmd> --helpdirectly.
Pinning model (what "pinned" means here)
- CLI pages are version-EXACT. They are the byte-for-byte
--helpoutput of the pinneddoltbinary (2.1.7). The binary isbrew pin'd so weekly upgrades don't drift it. - Website docs are a SNAPSHOT, not a version pin. dolthub.com's docs are not URL-versioned (no
/v2.1.7/paths), soreferences/docs/reflects the docs as of the last fetch — recorded by each file'sfetched_at/sha256. Treat them as "current," and verify version-specific behavior against the live binary.
Behavioral guidance
- The CLI reference reflects the pinned version only. If live
dolt <cmd> --helpdisagrees, trust the binary and surface the drift. - Dolt needs a working data directory and (for history) commits; it is not a drop-in for an arbitrary MySQL — it's MySQL-wire-compatible but Git-versioned underneath. Reach for it when you need who-changed-what-when, branchable data, or agent-safe (revertible) writes.
- For how Joe runs beads on Dolt (
--shared-server, the shared server on port 3308, bootstrapping,bd dolt …), thebd-level recovery checklist lives inbeads-operations. This skill owns the Dolt-native layer;beads-operationsowns thebd-command layer. Cross-reference, don't duplicate.
Reference map
references/cli/_index.md— top-leveldolt --helpcommand list.references/cli/<command>.md— per-command--help(NAME/SYNOPSIS/DESCRIPTION/OPTIONS).references/cli/<command>__<subcommand>.md— group subcommands (e.g.schema__export.md,remote.mdhas no subpages since its subcommands are positional).references/docs/*.md— official dolthub.com docs, slugified by path.references/beads-integration.md— Dolt-as-beads-backend runbook (hand-written).
Related skills
beads-operations— running/troubleshooting beads day-to-day (bdcommands, the shared-server conventions, compaction recovery).working-with-beads— thebdCLI reference at its pinned version.working-with-git— Dolt's version-control model mirrors Git; the Git reference helps with the branch/merge/diff mental model.