Local Installation

Set up a local Solana development environment with the automated installer. It installs Rust, the Solana CLI, Anchor CLI, Surfpool CLI, Node.js, and Yarn on macOS, Linux, or Windows through WSL.

Windows requires WSL

In Windows PowerShell, run wsl --install, restart Windows if prompted, then run the installation commands below in the Ubuntu terminal. See the manual installation guide for the complete WSL setup.

Quick installation

  1. Run the installer in a macOS, Linux, or WSL terminal:
Terminal
$
curl --proto '=https' --tlsv1.2 -sSfL https://solana-install.solana.workers.dev | bash

You can review the installer source before running it. The installer detects supported Linux package managers and installs their system dependencies automatically.

  1. Restart your terminal so the new commands are available on your PATH.

  2. Verify every tool:

Terminal
$
rustc --version
$
solana --version
$
anchor --version
$
surfpool --version
$
node --version
$
yarn --version

A successful installation returns output in this form (version numbers change as tools are released):

Example output
Installed Versions:
Rust: rustc x.y.z (...)
Solana CLI: solana-cli x.y.z (..., client:Agave)
Anchor CLI: anchor-cli x.y.z
Surfpool CLI: surfpool x.y.z
Node.js: vx.y.z
Yarn: x.y.z

Installer failed or a command is missing

Follow the manual installation guide to install or troubleshoot each dependency individually.

Local development resources

Is this page helpful?

Table of Contents

Edit Page
© 2026 Solana Foundation. All rights reserved.