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

#1 in #soroban-cli

Download history 237/week @ 2024-12-17 29/week @ 2024-12-24 46/week @ 2024-12-31 299/week @ 2025-01-07 63/week @ 2025-01-14 136/week @ 2025-01-21 137/week @ 2025-01-28 89/week @ 2025-02-04 137/week @ 2025-02-11 120/week @ 2025-02-18 121/week @ 2025-02-25 300/week @ 2025-03-04 369/week @ 2025-03-11 303/week @ 2025-03-18 149/week @ 2025-03-25 277/week @ 2025-04-01

1,112 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

~50–72MB
~1.5M SLoC