14 releases (stable)

new 22.0.0-rc.1 Nov 8, 2024
21.5.3 Oct 15, 2024
21.5.0 Sep 11, 2024
21.4.1 Aug 26, 2024
0.0.1 Oct 26, 2023

#3 in #stellar

Download history 134/week @ 2024-07-18 120/week @ 2024-07-25 212/week @ 2024-08-01 171/week @ 2024-08-08 274/week @ 2024-08-15 293/week @ 2024-08-22 128/week @ 2024-08-29 177/week @ 2024-09-05 238/week @ 2024-09-12 610/week @ 2024-09-19 235/week @ 2024-09-26 199/week @ 2024-10-03 569/week @ 2024-10-10 174/week @ 2024-10-17 107/week @ 2024-10-24 60/week @ 2024-10-31

930 downloads per month

Apache-2.0

385KB
9K SLoC

stellar-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

~61–82MB
~1.5M SLoC