Solana CLI Helper
Generate and learn Solana CLI commands. Create complex commands with a simple GUI interface.
📋 Command Categories
⚡ Available Commands
🔧 Command Categories
Wallet Management
- •
solana-keygen
- Generate keypairs - •
solana balance
- Check SOL balance - •
solana transfer
- Send SOL - •
solana airdrop
- Request airdrop
Token Operations
- •
spl-token create-token
- Create token - •
spl-token create-account
- Token account - •
spl-token mint
- Mint tokens - •
spl-token transfer
- Transfer tokens
📋 Program Commands
Development
- •
solana program deploy
- Deploy program - •
solana program show
- Program info - •
solana program close
- Close program - •
anchor build
- Build Anchor program
Account Operations
- •
solana account
- Account info - •
solana rent
- Rent calculation - •
solana create-account
- Create account
🌐 Network Commands
Configuration
- •
solana config set
- Set cluster/keypair - •
solana config get
- Show config - •
solana cluster-version
- Cluster info
Monitoring
- •
solana block
- Block info - •
solana transaction-history
- TX history - •
solana ping
- Network ping
⚡ Quick Actions
Common Workflows
- • Setup new wallet
- • Deploy program to devnet
- • Create and mint token
- • Transfer SOL/tokens
- • Check account balances
Developer Tools
- • Generate command templates
- • Copy to clipboard
- • Export as shell script
- • Parameter validation
📦 Installation Guide
Solana CLI
# Install Solana CLI
sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
# Verify installation
solana --version
SPL Token CLI
# Install SPL Token CLI
cargo install spl-token-cli
# Verify installation
spl-token --version
Anchor CLI
# Install Anchor CLI
cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
# Install latest Anchor
avm install latest && avm use latest
Environment Setup
# Add to PATH (add to ~/.bashrc or ~/.zshrc)
export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
💡 Pro Tips
CLI Efficiency
- • Use aliases for frequently used commands
- • Create shell scripts for complex workflows
- • Use
--help
flag for command details - • Store keypairs securely with proper permissions
Development Workflow
- • Test on devnet before mainnet
- • Use different keypairs for different environments
- • Monitor transaction logs for debugging
- • Keep backups of important keypairs
Security Best Practices
- • Never share private keys or seed phrases
- • Use hardware wallets for mainnet
- • Verify addresses before transactions
- • Double-check network settings
Troubleshooting
- • Check RPC endpoint connectivity
- • Verify sufficient SOL for transactions
- • Use
--verbose
for detailed logs - • Update CLI tools regularly