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
- Run the installer in a macOS, Linux, or WSL 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.
-
Restart your terminal so the new commands are available on your
PATH. -
Verify every tool:
$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):
Installed Versions:Rust: rustc x.y.z (...)Solana CLI: solana-cli x.y.z (..., client:Agave)Anchor CLI: anchor-cli x.y.zSurfpool CLI: surfpool x.y.zNode.js: vx.y.zYarn: 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
Install Dependencies
Install each tool individually or troubleshoot the one-command installer.
Solana CLI Basics
Configure clusters, manage keypairs, and use common Solana CLI commands.
Anchor CLI Basics
Create, build, test, and deploy Anchor projects.
Surfpool CLI Basics
Run a local validator and inspect it with Surfpool Studio.
Is this page helpful?