dbmd-cli 0.2.4

The `dbmd` command-line tool for db.md — the open database in plain files. A thin wrapper over dbmd-core: validate, search, query, graph, write, index, and log over a db.md store. Zero AI dependencies.
# dbmd-cli

The **`dbmd`** command-line tool for **db.md — the open database in
plain files**.

`db.md` is a database made of markdown files: records are markdown with
YAML frontmatter, relationships are wiki-links, the directory is the
database, the frontmatter is the schema, and your agent is the query
engine. `dbmd` is a single deterministic binary that performs every
db.md file/data operation; all logic lives in
[`dbmd-core`](https://crates.io/crates/dbmd-core) and the binary is a
thin arg-parse/format wrapper.

## Install

```sh
cargo install dbmd-cli
```

This installs the `dbmd` binary. Alternatives: `brew install
carloslfu/tap/dbmd`, or a prebuilt, checksummed, provenance-attested
tarball from the [GitHub releases](https://github.com/carloslfu/db.md/releases).

## Use

```sh
# create a store
mkdir -p db/{sources,records,wiki} && dbmd fm init db/DB.md

# operate it
dbmd write db/records/contacts/sarah.md --type contact --summary "..."
dbmd search "(revenue|sales|ARR)" --in records
dbmd graph backlinks db/records/contacts/sarah.md
dbmd validate db/

# load the canonical spec into an agent's system prompt
dbmd spec
```

Every subcommand supports `--json` and `--help`; none prompt
interactively.

## Design

- **Zero AI dependencies.** No model calls, no embeddings, no vectors — ever. Your own agent harness (Claude Code, Codex, or any tool) supplies the intelligence; `dbmd` is the fast, deterministic tool it drives.
- **Embedded ripgrep**; built-in document extraction; permissive licensing only.

Full reference and SPEC: run `dbmd spec`, or see
<https://github.com/carloslfu/db.md>.

## License

Apache-2.0. Copyright 2026 Carlos Galarza. See `LICENSE` and `NOTICE`.