@nitishxyz/solar
v0.1.14
Published
A powerful CLI tool for Solana developers that simplifies common development tasks
Maintainers
Readme
Solar CLI
A powerful command-line interface tool for Solana developers that simplifies common development tasks.
Features
- 🔑 Generate and manage Solana keypairs
- 💫 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)
Development
Prerequisites
- Bun v1.1.42 or higher
- Node.js 18 or higher
Setup
- Clone the repository:
git clone https://github.com/nitishxyz/solar.git
cd solar- Install dependencies:
bun install- Run in development mode:
bun run cli.tsBuilding
Build the project:
bun run buildThe built files will be in the dist directory.
Installation
From NPM
npm install -g @nitishxyz/solarFrom Source
npm install -g .Usage
Interactive Mode
Start the interactive CLI interface:
solar
# or
solar -iCommand Mode
solar <command> [options]Available Commands
Configuration
solar 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 pathKeypair Management
solar keygen [options]
-g, --global Save to global keypair location
solar keyinfo <file>
View keypair informationAirdrop
solar airdrop <address>
Request 1 SOL airdrop for developmentSync with Solana CLI
solar sync
Sync configuration with Solana CLIConfiguration
Solar 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.
Supported Networks
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
Contributing
- 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
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Built with Bun
- Uses Solana Web3.js
