15 stable releases

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.1 Oct 26, 2023

#5 in #stellar

Download history 96/week @ 2024-10-26 168/week @ 2024-11-02 172/week @ 2024-11-09 281/week @ 2024-11-16 103/week @ 2024-11-23 229/week @ 2024-11-30 130/week @ 2024-12-07 225/week @ 2024-12-14 47/week @ 2024-12-21 23/week @ 2024-12-28 211/week @ 2025-01-04 95/week @ 2025-01-11 72/week @ 2025-01-18 72/week @ 2025-01-25 66/week @ 2025-02-01 68/week @ 2025-02-08

287 downloads per month

Apache-2.0

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

Install with Homebrew (macOS, Linux):

brew install stellar-cli

Install the latest version from source:

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–69MB
~1M SLoC