b verify
Check every managed artifact (binaries and env files) against b.lock checksums. Exits with code 0 if all artifacts match, or code 1 if any mismatches are found.
Usage
Examples
Verify all artifacts
Example output when everything is clean:
Example output with mismatches:
Use in CI/CD
Use b verify in CI pipelines to ensure the working tree matches the lock file:
How it works
For each entry in b.lock:
- Binaries: Computes SHA-256 of the installed binary file and compares against the lock checksum
- Env files: Computes SHA-256 of each synced file at its destination path and compares against the lock checksum
A mismatch means the file on disk differs from what was last synced — either due to local edits, corruption, or a missing file.
Flags
| Flag | Description |
|---|---|
-h, --help | help for verify |
Global Flags
| Flag | Description |
|---|---|
-c, --config string | Path to configuration file (current: /home/fentas/github/fentas/b/.bin/b.yaml) |
--force | Force operations, overwriting existing binaries |
-q, --quiet | Quiet mode |
-v, --version | Print version information and quit |
Was this section helpful?