Solana CLI Usage Reference
The Solana CLI is a powerful toolset for developers, validators, and power users to interact with the Solana blockchain.
βοΈ Environment & Configuration
View Active Configuration
solana config getSet RPC Cluster
solana config set --url https://api.devnet.solana.comSet Wallet Keypair
Generate a New Wallet
View Wallet Address
π° Wallet & Airdrops
Airdrop SOL (Devnet/Testnet Only)
Check Wallet Balance
Transfer SOL
π°οΈ Blockchain Data Queries
View Account Data
View Recent Blockhash
Get Transaction Details
Fetch Recent Transactions (Historical RPC Support Required)
π§ Epoch, Slot, and Leader Info
Epoch Info
Slot Info
Leader Schedule
π¦ Stake & Validator Operations
List Validators
Stake Account Details
Create Stake Account
Delegate Stake
π Diagnostics & Debugging
Network Ping
Show CLI Version
Compute Program Size & Fees
π File System & Permissions
Recommended Wallet Location
π§ Common Pitfalls & Solutions
Problem
Fix
π§Ύ Reference Command Summary
Action
Command
Last updated