Crates.io | soroban-cli |
lib.rs | soroban-cli |
version | 22.0.0-rc.1 |
source | src |
created_at | 2022-07-28 21:21:15.038464 |
updated_at | 2024-11-08 01:08:54.340681 |
description | Soroban CLI |
homepage | https://github.com/stellar/stellar-cli |
repository | https://github.com/stellar/stellar-cli |
max_upload_size | |
id | 634680 |
size | 527,703 |
CLI for interacting with the Stellar network and Soroban contracts locally in a test VM. Executes WASM files built using the rs-soroban-sdk.
Docs: https://developers.stellar.org
cargo install --locked stellar-cli
To install with the opt
feature, which includes a WASM optimization feature and wasm-opt built in:
cargo install --locked stellar-cli --features opt
Can invoke a contract method as a subcommand with different arguments. Anything after the slop (--
) is passed to the contract's CLI. You can use --help
to learn about which methods are available and what their arguments are including an example of the type of the input.
stellar invoke --id <CONTRACT_ID> --wasm <WASMFILE> -- --help
stellar invoke --id <CONTRACT_ID> --network futurenet -- --help