37 releases (stable)

22.6.0 Mar 18, 2025
22.2.0 Jan 9, 2025
22.1.0 Dec 18, 2024
22.0.0 Nov 19, 2024
0.0.2 Jul 30, 2022

#16 in #soroban

Download history 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 271/week @ 2025-02-28 328/week @ 2025-03-07 319/week @ 2025-03-14 175/week @ 2025-03-21

1,116 downloads per month
Used in 4 crates

Apache-2.0

500KB
13K 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

~52–73MB
~1.5M SLoC