The Solana CLI provides developers and users with a set of commands to interact with the Solana blockchain, manage wallets, and perform various network operations.
Ensure you have the following installed:
Open PowerShell as Administrator.
Run the following command to download and install Solana CLI:
powershell
Copy code
Invoke-WebRequest -Uri <https://release.solana.com/v1.14.16/solana-install-init-x86_64-pc-windows-msvc.exe> -OutFile solana-install-init.exe
./solana-install-init.exe v1.14.16
Note: Replace v1.14.16 with the latest Solana CLI version if necessary.
Open PowerShell and run:
powershell
Copy code
$Env:Path += ";C:\\Users\\<YourUsername>\\.local\\share\\solana\\install\\active_release\\bin"
Replace <YourUsername>
with your actual username.
Run the following command to confirm installation:
powershell
Copy code
solana --version
Install Solana CLI Using Homebrew:
Open Terminal and run the following command:
bash
Copy code
brew install solana
Alternative: Install via Solana Script:
If you prefer not to use Homebrew, use the Solana installation script:
bash
Copy code
sh -c "$(curl -sSfL <https://release.solana.com/v1.14.16/install>)"
Note: Replace v1.14.16 with the latest version if needed.
Verify Installation:
Run the following command to confirm installation:
bash
Copy code
solana --version