@crunchdao/coordinator-cli@crunchdao/cruncher-cli
Command-Line Options
These options can be used with any CLI command:Network Options
-n, --network <network>- Solana network to connect to- Values:
localnet,devnet,mainnet - Default: Uses value from global configuration
- Values:
Wallet Options
-w, --wallet <wallet>- Path to wallet keypair file- Format: Absolute or relative file path
- Default: Uses value from global configuration
Logging Options
-l, --loglevel <level>- Set logging verbosity- Values:
debug,info,warn,error - Default: Uses value from global configuration
- Values:
Usage Examples
Basic Usage
Development and Testing
Global Configuration
Instead of specifying options repeatedly, you can set them globally using the configuration system:Network Endpoints
Each network option connects to specific Solana RPC endpoints:| Network | Endpoint | Use Case |
|---|---|---|
localnet | http://127.0.0.1:8899 | Local development and testing |
devnet | https://api.devnet.solana.com | Staging and integration testing |
mainnet | https://api.mainnet-beta.solana.com | Production deployment |
Option Precedence
Configuration values are resolved in this order (highest to lowest priority):- Command-line flags (
--network devnet) - Active configuration (values in CLI config files)
- Default values (built-in CLI defaults)
Security Considerations
Wallet Security
- Store keypair files in secure, encrypted locations
- Use appropriate file permissions (recommended:
chmod 600) - Never commit wallet files to version control
- Use different wallets for different environments
Network Verification
Always verify you’re connected to the intended network:Troubleshooting
Common Issues
- “Insufficient SOL for transaction”