Using DigStore in your project
This is the day-to-day workflow: point a store at your build output, commit deployments as you ship, and manage multiple stores in one workspace.
Capture a build directory
DigStore is built for build output. Point a store at the directory your build produces:
# in your project root
digstore init site --dir dist
Now add/urn/status operate relative to dist/. Build, then capture:
npm run build # produces dist/
digstore add -A # stage everything under the content root (dist/)
digstore commit -m "v1"
commit anchors the new root on Chia mainnet (blocks until confirmed, spends XCH), then seals the deployment, compiles the module, and writes a local URN manifest (urns.json / urns.txt) — your index of every shareable URN for that deployment. See On-chain anchoring.
Change or override the content root anytime:
digstore dir build/site # set the active store's content root
digstore -C ./dist add -A # override for just this command
Staging area
Staging works like Git's index:
digstore add path/to/file # stage one file
digstore add . src/*.css # stage paths / globs
digstore add -A # stage the whole content root
digstore staged # list staged files + size + remaining headroom
digstore unstage # clear the staging area
Each store is capped at 128 MB of staged content. add, status, staged, and stores all show remaining capacity; add refuses content that would exceed the cap.
Multiple stores per workspace
One .dig/ workspace can hold many stores, each with its own content, keys, and history:
digstore init site --dir dist
digstore init docs --dir build/docs
digstore stores # list stores; * marks the active one + capacity
digstore use site # switch the active store
Pick which store a command targets:
digstore --store site add -A # target "site" regardless of the active store