Installation Methods
There are multiple ways to install the Solana CLI tools depending on your platform and preferred workflow:Use the Solana Install Tool
The Agave installer is the simplest method to install and maintain the Solana CLI tools.MacOS & Linux
Run the installer
Install the latest Agave release:Replace
LATEST_AGAVE_RELEASE_VERSION with a specific release tag, or use one of the symbolic channel names:stable- Latest stable releasebeta- Beta release channeledge- Edge/development releases
Update PATH (if needed)
If prompted to update your PATH environment variable:Copy and paste the recommended command shown by the installer.
Windows
Open Command Prompt as Administrator
- Search for “Command Prompt” in the Windows search bar
- Right-click and select “Open as Administrator”
- Click “Yes” if prompted by User Account Control
Close and reopen Command Prompt
- Press Enter when the installer finishes
- Close the Administrator Command Prompt
- Open a new Command Prompt as a normal user
Download Prebuilt Binaries
If you prefer not to useagave-install, manually download and install the binaries.
Linux
Download the release
Navigate to Agave Releases and download:
MacOS
Download the release
Navigate to Agave Releases and download:
Windows
Download the release
Navigate to Agave Releases and download:
Build from Source
For advanced users who prefer to build from source or need custom configurations.Prerequisites
Rust
Install Rust from rust-lang.org:Linux (Debian/Ubuntu)
Install build dependencies:Linux (Other Distributions)
Use your distribution’s package manager:MacOS
Install Homebrew from brew.sh, then:Windows
For native Windows builds:- Install Build Tools for Visual Studio (2019 or later)
- Include C++ build tools in the installation
- Install LLVM
- Install Protocol Buffers and add to PATH
Build and Install
Download source code
Navigate to Agave Releases and download the Source Code archive.
Extract and build
Extract the code and build:The build process may take several minutes depending on your system.
Use Homebrew
For MacOS and Linux users who prefer Homebrew package management.Homebrew formulae are updated after each Solana release but may be outdated compared to the latest version.
Install via Homebrew
Updating the CLI
If you installed usingagave-install, update to the latest version:
Post-Installation
After installation, set up your CLI configuration:Troubleshooting
Command not found
Ifsolana command is not found after installation, ensure the PATH is correctly set:
~/.bashrc, ~/.zshrc, etc.) to make it permanent.
Version mismatch
Ensure your CLI version is compatible with the cluster you’re connecting to:Next Steps
CLI Overview
Learn about available CLI commands
Wallet Management
Create and manage wallets with solana-keygen