Crates.io | flowsnet |
lib.rs | flowsnet |
version | 0.1.2 |
source | src |
created_at | 2022-11-25 04:55:54.103134 |
updated_at | 2022-11-25 08:35:21.908435 |
description | Client tool for flows.network |
homepage | |
repository | https://github.com/flows-network/flowsnet-cli |
max_upload_size | |
id | 722575 |
size | 78,047 |
Command line tool for interacting with flows.network platform
You need to install WasmEdge runtime to run the wasm in your local environment.
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -v 0.11.2
You may need to install clang if your operating system is Linux.
flowsnet is published as a rust binary crate, so you can install it using cargo:
cargo install flowsnet
flowsnet requires three arguments:
-f, --flow <FLOW> Flow identity in flows.network
-w, --wasm <WASM> Wasm path in the local file system
-p, --port <PORT> Port of the local service
You can find the flow identity in your flow detail on the flows.network platform.
The wasm path is the path of the wasm file, which is built from your rust function code.
flowsnet will start a server to receive requests from the flows.network platform, and the port is for the service to listen.