Installation
Prerequisites
- Rust: 1.85.0 or later
- Docker (optional, for ScyllaDB)
Install Rust
If you don't have Rust installed, use rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Verify installation:
rustc --version
cargo --version
Clone the Repository
git clone https://github.com/cambriannetwork/knowledgeflow_db.git
cd knowledgeflow_db
Build from Source
# Build all crates
cargo build --release
# Run tests
cargo test
# Build CLI tool
cargo build -p kfdb --release
The compiled binary will be at target/release/kfdb.
Install CLI (Optional)
To install the CLI globally:
cargo install --path crates/kfdb
Then you can run:
kfdb --help
Docker Setup (Optional)
If you want to use ScyllaDB storage backend:
# Start ScyllaDB
docker-compose up -d
# Verify it's running
docker ps