Crates.io | shadow-drive-cli |
lib.rs | shadow-drive-cli |
version | 0.7.2 |
source | src |
created_at | 2022-12-20 02:54:29.34076 |
updated_at | 2023-08-19 00:39:11.338123 |
description | The Rust CLI for GenesysGo's Shadow Drive |
homepage | |
repository | https://github.com/GenesysGo/shadow-drive-rust |
max_upload_size | |
id | 741913 |
size | 250,208 |
This is a CLI for Shadow Drive written using the Shadow Drive Rust crate. It is largely a clap
wrapper around that crate.
Although there is already a CLI for Shadow Drive written in Typescript, I wanted something
with identical interface to the official Solana CLI -k/--keypair
and -u/--url
arguments.
You can pass all the same signer types ("prompt", "stdin", etc), but be aware that Ledger still does not support
general message signing, and you therefore cannot perform most Shadow Network operations
using a hardware wallet yet.
This is an opinionated CLI, choosing V2 storage accounts where applicable.
The CLI also works with authenticated GenesysGo Premium RPC Endpoints. See
the --auth
flag for more details.
Build the binary like a standard Rust crate.
cargo build
The CLI looks for a Solana CLI config file. Configure your signing key there using the usual solana config set -k <SIGNER>
, or pass one in using the -k/--keypair
argument. If no -k/--keypair
argument is used and no config file is found, this CLI defaults to the same keypair path as the Solana CLI's default, located at .config/solana/id.json
.
For further usage details, there is extensive help text built into the binary.
$ target/debug/shadow-drive-cli --help