···10101111```bash
1212# Build
1313-go build -o herald .
1313+go build -ldflags "-X main.commitHash=$(git log -1 --format=%H)" -o herald .
14141515# Run the server
1616./herald serve
···1818# Or with a config file
1919./herald serve -c config.yaml
2020```
2121+2222+> **Note:** The commit hash is automatically detected at runtime if not embedded at build time.
21232224## Usage
2325