Crates.io | firewood-fwdctl |
lib.rs | firewood-fwdctl |
version | 0.0.12 |
created_at | 2025-06-21 01:16:36.110022+00 |
updated_at | 2025-08-26 18:01:47.891789+00 |
description | Command-line tool for Firewood, an embedded key-value store optimized for blockchain state. |
homepage | https://avalabs.org |
repository | https://github.com/ava-labs/firewood |
max_upload_size | |
id | 1720429 |
size | 95,300 |
fwdctl
is a small CLI designed to make it easy to experiment with firewood locally.
cargo build --release --bin fwdctl
To use
./target/release/fwdctl -h
fwdctl create
: Create a new firewood database.fwdctl get
: Get the code associated with a key in the database.fwdctl insert
: Insert a key/value pair into the generic key/value store.fwdctl delete
: Delete a key/value pair from the database.fwdctl root
: Get the root hash of the key/value trie.fwdctl dump
: Dump the contents of the key/value store.# Check available options when creating a database, including the defaults.
$ fwdctl create -h
# Create a new, blank instance of firewood using the default name "firewood.db".
$ fwdctl create firewood.db
# Get the value associated with a key in the database, if it exists.
fwdctl get KEY
# Insert a key/value pair into the database.
fwdctl insert KEY VALUE
# Delete a key from the database, along with the associated value.
fwdctl delete KEY