0.1.14 • Published 1 year ago

@nitishxyz/solar v0.1.14

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

  1. Clone the repository:
git clone https://github.com/nitishxyz/solar.git
cd solar
  1. Install dependencies:
bun install
  1. Run in development mode:
bun run cli.ts

Building

Build the project:

bun run build

The built files will be in the dist directory.

Installation

From NPM

npm install -g @nitishxyz/solar

From Source

npm install -g .

Usage

Interactive Mode

Start the interactive CLI interface:

solar
# or
solar -i

Command 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 path

Keypair Management

solar keygen [options]
  -g, --global    Save to global keypair location

solar keyinfo <file>
  View keypair information

Airdrop

solar airdrop <address>
  Request 1 SOL airdrop for development

Sync with Solana CLI

solar sync
  Sync configuration with Solana CLI

Configuration

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

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

0.1.14

1 year ago

0.1.13

1 year ago

0.1.12

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago