A powerful command-line interface tool for Solana developers that simplifies common development tasks.
- 🛠️ Automated development environment setup
- 🔍 Development environment verification
- 🔄 Easy CLI updates with automatic package manager detection
- 🔑 Generate and manage Solana keypairs
- 👛 View wallet information
- 💫 Request SOL airdrops for development
- ⚙️ Flexible configuration management (global & local)
- 🔄 Sync settings with Solana CLI
- 💻 Interactive mode for easier usage
- 🌐 Support for multiple networks (localnet, devnet, testnet, mainnet)
- Bun v1.1.42 or higher
- Node.js 18 or higher
- Clone the repository:
git clone https://github.com/nitishxyz/solar.git
cd solar- Install dependencies:
bun install- Run in development mode:
bun run cli.tsBuild the project:
bun run buildThe built files will be in the dist directory.
npm install -g @nitishxyz/solarnpm install -g .Start the interactive CLI interface:
solar
# or
solar -isolar <command> [options]solar setup
Set up development environment (installs Rust, Solana CLI, and Anchor)
solar doctor
Verify development environment dependencies
solar upgrade
Update Solar CLI to the latest versionsolar config [options] [network]
-g, --global Use global configuration
-l, --local Use local configuration (default)
-s, --show Show current configuration
-i, --init Initialize configuration file
-k, --keypair <path> Set keypair pathsolar wallet
View current wallet information
solar keygen [options]
-g, --global Save to global keypair location
solar keyinfo <file>
View keypair informationsolar airdrop [address]
Request 1 SOL airdrop for development
If no address is provided, uses the current configured walletsolar sync
Sync configuration with Solana CLISolar CLI supports both global and local configuration:
- Global config:
~/.config/solar/config.json - Local config:
./solar-config.json(in project directory)
Local configuration takes precedence over global configuration.
localnet: http://127.0.0.1:8899devnet: https://api.devnet.solana.comtestnet: https://api.testnet.solana.commainnet: https://api.mainnet-beta.solana.com- Custom RPC URL
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Bun
- Uses Solana Web3.js
