To set up the CLI and find information on how to use the CLI, run
$ ./scripts/setup.sh
$ cargo run
$ target/debug/fennel-cli help
To run the included testing suite, run:
$ ./scripts/setup.sh
$ ./scripts/build-test.sh
To run the local cryptography/Whiteflag RPC, run
$ ./scripts/setup.sh
$ cargo run --bin fennel-cli -- start-rpc
Add file
$ cargo run --bin fennel-ipfs -- add-file ./test.txt
Returns a CID for use with the other two commands.
Get file
$ cargo run --bin fennel-ipfs -- get-file <cid>
Returns the content of the file at the given CID.
Delete file
$ cargo run --bin fennel-ipfs -- delete-file <cid>
sh scripts/build-test.sh