Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions docs/smart-contracts/getting-started/setup.mdx
Original file line number Diff line number Diff line change
@@ -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.
---

<head>
Expand Down Expand Up @@ -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
Expand Down