34 releases (stable)

22.2.0 Jan 9, 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

#8 in #soroban

Download history 225/week @ 2024-10-07 659/week @ 2024-10-14 190/week @ 2024-10-21 89/week @ 2024-10-28 279/week @ 2024-11-04 282/week @ 2024-11-11 334/week @ 2024-11-18 116/week @ 2024-11-25 346/week @ 2024-12-02 256/week @ 2024-12-09 242/week @ 2024-12-16 38/week @ 2024-12-23 30/week @ 2024-12-30 289/week @ 2025-01-06 79/week @ 2025-01-13 125/week @ 2025-01-20

526 downloads per month
Used in 4 crates

Apache-2.0

435KB
11K 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

~48–68MB
~1M SLoC