-
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Refringe edited this page Mar 8, 2026
·
1 revision
- Go 1.26 or later (for building from source)
- Git (for cloning the repository and version detection)
Clone the repository and build:
git clone https://github.com/refringe/anchor-lfs.git
cd anchor-lfs
make buildThe compiled binary is placed at bin/anchor-lfs. The build embeds version metadata (Git tag, commit hash, and build date) into the binary via linker flags.
| Command | Description |
|---|---|
make build |
Compile the binary to bin/anchor-lfs
|
make run |
Build and immediately run the server |
make clean |
Remove build artefacts (bin/ and coverage.out) |
If you prefer not to use Make:
go build -trimpath -ldflags="-s -w" -o anchor-lfs .After building, verify the binary runs:
./bin/anchor-lfs --helpOr check the embedded version info by starting the server and querying the root endpoint:
./bin/anchor-lfs &
curl -s http://localhost:5420/ | jq .
# {"version": "v1.0.0"}-
Configuration: Set up your
config.toml - Running the Server: Start the server
- Docker: Deploy with Docker instead