# `mix llm_db.build`
[🔗](https://github.com/agentjido/llmdb/blob/main/lib/mix/tasks/llm_db.build.ex#L1)

Builds a canonical `snapshot.json` from configured sources.

The snapshot is always written to a local build output directory. Use
`--install` is a safe local-install alias that keeps all output under
`_build`. The serialized integration and release workflows use
`--install-source` to also update the tracked source snapshot.

## Usage

    mix llm_db.build
    mix llm_db.build --install
    mix llm_db.build --install-source
    mix llm_db.build --check
    mix llm_db.build --verify
    mix llm_db.build --output-dir tmp/llm_db/build
    mix llm_db.build --schema-version 2

## Options

  * `--check` - Verify the generated snapshot artifacts already match the
    expected output.
  * `--install` - Keep the built snapshot under `_build`. This safe local
    option does not change the tracked source snapshot.
  * `--install-source` - Also install the built snapshot into the tracked
    source snapshot. This option is for serialized integration and release
    automation.
  * `--verify` - Write a local build artifact, read it with strict integrity,
    rebuild from the same inputs, and require the same semantic snapshot ID.
  * `--output-dir` - Directory for local snapshot build artifacts.
  * `--schema-version` - Snapshot wire schema to build (`1` by default; `2`
    opts into a side-by-side sparse artifact). Sparse v2 cannot be installed as
    the packaged default in this minor release.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
