14 stable releases

new 22.1.0 Dec 18, 2024
22.0.0 Nov 19, 2024
21.5.3 Oct 15, 2024
21.2.0 Jul 16, 2024
0.0.1 Oct 26, 2023

#5 in #stellar

Download history 316/week @ 2024-08-26 92/week @ 2024-09-02 263/week @ 2024-09-09 161/week @ 2024-09-16 688/week @ 2024-09-23 257/week @ 2024-09-30 234/week @ 2024-10-07 502/week @ 2024-10-14 122/week @ 2024-10-21 66/week @ 2024-10-28 206/week @ 2024-11-04 154/week @ 2024-11-11 297/week @ 2024-11-18 73/week @ 2024-11-25 240/week @ 2024-12-02 158/week @ 2024-12-09

780 downloads per month

Apache-2.0

455KB
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

~48–67MB
~1M SLoC