From bf8b32a8a95e62c644b0b49486190252d3174709 Mon Sep 17 00:00:00 2001 From: Jane Wang Date: Fri, 28 Jun 2024 16:14:38 -0400 Subject: [PATCH 1/2] List all install methods of stellar cli --- .../smart-contracts/getting-started/setup.mdx | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/docs/smart-contracts/getting-started/setup.mdx b/docs/smart-contracts/getting-started/setup.mdx index 30d1bdbeab..70bf21a501 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,31 @@ 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 From 7128c3691eb062496e7db6b89bfa5b4168aaa553 Mon Sep 17 00:00:00 2001 From: Jane Wang Date: Fri, 28 Jun 2024 16:14:51 -0400 Subject: [PATCH 2/2] List all install methods of stellar cli --- docs/smart-contracts/getting-started/setup.mdx | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/smart-contracts/getting-started/setup.mdx b/docs/smart-contracts/getting-started/setup.mdx index 70bf21a501..e0ae5ae1c9 100644 --- a/docs/smart-contracts/getting-started/setup.mdx +++ b/docs/smart-contracts/getting-started/setup.mdx @@ -85,14 +85,12 @@ The [Stellar CLI](https://github.com/stellar/stellar-cli) can execute smart cont 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