35 releases (stable)

new 22.3.0 Mar 5, 2025
22.1.0 Dec 18, 2024
22.0.0 Nov 19, 2024
21.5.3 Oct 15, 2024
0.0.2 Jul 30, 2022

#391 in Magic Beans

Download history 345/week @ 2024-11-15 145/week @ 2024-11-22 335/week @ 2024-11-29 258/week @ 2024-12-06 252/week @ 2024-12-13 66/week @ 2024-12-20 29/week @ 2024-12-27 206/week @ 2025-01-03 159/week @ 2025-01-10 119/week @ 2025-01-17 132/week @ 2025-01-24 98/week @ 2025-01-31 118/week @ 2025-02-07 121/week @ 2025-02-14 124/week @ 2025-02-21 137/week @ 2025-02-28

517 downloads per month
Used in 4 crates

Apache-2.0

480KB
12K SLoC

soroban-cli

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

Install

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

Usage

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.

Example

stellar invoke --id <CONTRACT_ID> --wasm <WASMFILE> -- --help
stellar invoke --id <CONTRACT_ID> --network futurenet -- --help

Dependencies

~51–72MB
~1.5M SLoC