2.1 KiB
2.1 KiB
versiond admin skill (C++ port)
Operate the local versiond-cli file-versioning service. Binary: build/versiond-cli. See README.md, INSTALL.md, CLI.md, PLAN.md, REGISTRY.md, AGENTS.md.
Health first (see CLI.md)
./build/versiond-cli stats(aliasstatus) showsversions=X blobs=Y../build/versiond-cli rootslists watch roots.- HTTP if
serveruns:GET /api/health. See README.md.
Deploy (see INSTALL.md)
- Build:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build -j - Test:
ctest --test-dir build -V - Serve:
./build/versiond-cli serve(127.0.0.1:9922, never non-loopback). - Env
VERSIOND_HOME(default/tmp/versiond), configconfig/config.toml, indexdata/index.sqlite.
Capture (see CLI.md, PLAN.md)
add <dir>: add root and ingest now.ingest <path>: version one file, reason manual.snapshot <path>: version one file, reason snapshot.- Cap
max_file_bytes(default 10 MiB). - Never: node_modules, venv, target, hidden dirs, *.pyc, *.o, .so, .min.js, .map, temps (.tmp, ~$, ##, *~, 4913).
Retention (see CLI.md, REGISTRY.md)
purge: cleanup old versions perkeep_days(default 5), outputs purge=N.gc: remove unreferenced blobs, outputs gc=N.sync: push to remote SFTP via [remote] config, outputs sync=N.
Recovery (see CLI.md, README.md)
- Reinstall per INSTALL.md, restore config dir.
history <path>picks digest.show <digest>verifies content.diff <digestA> <digestB>verifies delta.restore <digest> <dst>restores, parents created.
Destructive (see AGENTS.md)
remove <dir>only untracks root, data stays.purgeandgcdelete: runhistoryandstatsfirst.- Verify with
showanddiffbeforerestore. - Targets must stay inside allowed roots, symlinks refused.
Troubleshooting (see README.md, INSTALL.md)
- 0 versions: run
roots, re-add. - ingest skip: over max_file_bytes or ignored pattern.
- sync fail: check [remote] config and quota.
- serve refuse: non-loopback bind attempted.
- Full ref: CLI.md. Build: INSTALL.md. Map: PLAN.md. Provenance: REGISTRY.md. Rules: AGENTS.md.