diff --git a/docs/smart-contracts/getting-started/setup.mdx b/docs/smart-contracts/getting-started/setup.mdx index 30d1bdbeab..e0ae5ae1c9 100644 --- a/docs/smart-contracts/getting-started/setup.mdx +++ b/docs/smart-contracts/getting-started/setup.mdx @@ -1,7 +1,7 @@ --- sidebar_position: 0 title: Setup -description: Install and configure Rust to deploy smart contracts. +description: Install and configure Rust and CLI to deploy smart contracts. --- @@ -79,12 +79,29 @@ A popular editor is Visual Studio Code: ## Install the Stellar CLI -The [Stellar CLI](https://github.com/stellar/stellar-cli) can execute smart contracts in the same environment the contract will execute on network, however in a local sandbox. +The [Stellar CLI](https://github.com/stellar/stellar-cli) can execute smart contracts on futurenet, testnet, mainnet, as well as in a local sandbox. -Install the [latest released version](https://github.com/stellar/stellar-cli/releases) of Stellar CLI using `cargo install`. +### Install + +There are a few ways to install the [latest released version](https://github.com/stellar/stellar-cli/releases) of Stellar CLI. + +Install with cargo from source: + +```sh +cargo install --locked stellar-cli --features opt +``` + +Install with `cargo-binstall`: + +```sh +cargo install --locked cargo-binstall +cargo binstall -y stellar-cli +``` + +Install with Homebrew: ```sh -cargo install --locked stellar-cli +brew install stellar/tap/stellar-cli ``` :::info