Install the Stellar CLI
Stellar CLI
There are a few ways to install the latest released version of Stellar CLI.
Install the latest version from source:
cargo install --locked stellar-cli --features opt
Install with cargo-binstall
:
cargo install --locked cargo-binstall
cargo binstall -y stellar-cli
Install with Homebrew (macOS, Linux):
brew install stellar-cli
Installation with Experimental Features
To use the potentially unreleased bleeding edge CLI functionalities, install from git:
cargo install --locked stellar-cli --features opt --git https://github.com/stellar/stellar-cli.git
Set up Autocomplete
The Stellar CLI supports some autocompletion. To set up, run the following commands:
stellar completion --shell <SHELL>
Possible SHELL values are bash
, elvish
, fish
, powershell
, zsh
, etc.
To enable autocomplete in the current bash shell, run:
source <(stellar completion --shell bash)
To enable autocomplete permanently, run:
echo "source <(stellar completion --shell bash)" >> ~/.bashrc
See Video Tutorial
Video Tutorial: https://developers.stellar.org/meetings/2024/06/27