| Crates.io | brk_cli |
| lib.rs | brk_cli |
| version | 0.1.0-beta.0 |
| created_at | 2025-02-23 23:54:54.569524+00 |
| updated_at | 2026-01-25 13:28:48.027691+00 |
| description | A command line interface to run a BRK instance |
| homepage | https://bitcoinresearchkit.org |
| repository | https://github.com/bitcoinresearchkit/brk |
| max_upload_size | |
| id | 1566745 |
| size | 85,108 |
Command-line interface for running a Bitcoin Research Kit instance.
blk*.dat filesrustup update
RUSTFLAGS="-C target-cpu=native -C target-feature=+bmi1,+bmi2,+avx2" cargo install --locked brk_cli --version "$(cargo search brk_cli | head -1 | awk -F'"' '{print $2}')"
The SIMD flags (bmi1, bmi2, avx2) significantly improve pcodec decompression performance.
Portable build (without native CPU optimizations):
cargo install --locked brk_cli
brk
Indexes the blockchain, computes datasets, starts the server on localhost:3110, and waits for new blocks.
Note: When more than 10,000 blocks behind, indexing completes before the server starts to free up memory from fragmentation that occurs during large syncs. The web interface at localhost:3110 won't be available until sync finishes.
brk -h # Show all options
brk -V # Show version
Options are saved to ~/.brk/config.toml after first use.
~/.brk/
├── config.toml Configuration
└── log Logs
<brkdir>/ Indexed data (default: ~/.brk)