This page takes you from nothing to a working ver setup with one local context and one snapshot.
Install
cargo install ver-vcsgit clone https://github.com/AstraBert/ver.git
cd ver
cargo install --path crates/verInitialize ver globally
ver ctx init --globalThis creates ~/.ver/, the home of contexts.toml, the file where all your contexts are registered.
Create a context
A context pairs a filesystem backend (where blobs and history live) with a KV backend (where snapshots and names live). Scaffold one:
ver ctx scaffold myproject --fs local --kv embeddedThis adds an empty myproject entry to ~/.ver/contexts.toml. Fill in the paths:
current = "myproject"
[fs.myproject]
base_directory = "/absolute/path/to/myproject"
[kv.myproject]
redb_path = "/absolute/path/to/myproject/.ver/kv.redb"Switch to the context and initialize the project:
ver ctx switch myproject
ver ctx initver ctx init creates the .ver/blobsdb/ and .ver/snapshots_history/ directories under the context’s base directory, and the redb database file.
Take your first snapshot
cd /absolute/path/to/myproject
echo "hello" > hello.txt
ver snap full --name my-first-snapshotver chunks every tracked file, stores the chunks in the blob store, and records the snapshot under the name you gave it.
See it work
ver log # snapshot history
echo "world" >> hello.txt
ver snap full --name second # another snapshot
ver goto my-first-snapshot # restore the first state
cat hello.txt # -> "hello"