> ## Documentation Index
> Fetch the complete documentation index at: https://scaffoldstacks.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Prerequisites

> Set up your development environment for Scaffold Stacks

Install the tools below before using Scaffold Stacks. All versions listed are minimums.

## Contents

* [Requirements](#requirements)
* [Install the CLI](#install-the-cli)
* [Verify installation](#verify-installation)
* [Rust](#rust)
* [Node.js](#nodejs)
* [Clarinet](#clarinet)
* [Stacks wallet](#stacks-wallet)
* [Docker (optional)](#docker-optional)

## Requirements

| Tool              | Minimum version | Required for                     |
| ----------------- | --------------- | -------------------------------- |
| Rust              | 1.75+           | Building and installing the CLI  |
| Node.js           | 20+             | Frontend and contract tests      |
| Clarinet          | 3.21+           | Contract toolchain               |
| Leather or Xverse | latest          | Testnet and mainnet wallet flows |
| Docker Desktop    | latest          | Local devnet only                |

## Install the CLI

```bash theme={null}
cargo install stacksdapp
stacksdapp --version
```

Or build from source:

```bash theme={null}
git clone https://github.com/scaffold-stack/scaffold-stack.git
cd scaffold-stack
cargo install --path cli
```

## Verify installation

```bash theme={null}
stacksdapp doctor
```

Checks Rust, Node.js, Clarinet 3.21+, Docker (for devnet), and git.

To verify manually:

```bash theme={null}
rustc --version && node --version && clarinet --version
```

If `doctor` passes, continue to the [quickstart](/quickstart).

## Rust

```bash theme={null}
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update
```

Verify:

```bash theme={null}
rustc --version
```

## Node.js

```bash theme={null}
# Using nvm (recommended)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install 20
nvm use 20
```

Verify:

```bash theme={null}
node --version
npm --version
```

## Clarinet

Scaffold Stacks templates target Clarinet SDK 3.21.

```bash theme={null}
# macOS with Homebrew
brew install clarinet

# Or build from source
git clone https://github.com/stx-labs/clarinet
cd clarinet
cargo install --path .
```

Verify:

```bash theme={null}
clarinet --version
```

## Stacks wallet

Install a browser wallet and create a testnet account:

* [Leather](https://leather.io/)
* [Xverse](https://www.xverse.app/)

## Docker (optional)

Required only for [local devnet](/local-devnet):

```bash theme={null}
# macOS
brew install --cask docker
```
