@crunchdao/cli) is a unified command-line interface for the Crunch Protocol, covering Coordinator management, Cruncher operations, competition lifecycle, staking, and model tools.
Installation
Requires Node.js 16 or higher. For Python model tools, also install
pip install crunch-cli.Command Structure
The CLI is organized by functional domains:Global Options
These options can be used with any command and override configuration file values:Network & Connection
Output & Logging
Execution Control
Usage Examples
Configuration
The CLI stores global configuration at~/.crunch/config.json. Use the config commands to manage settings instead of passing flags every time.
Config Commands
Default Configuration
Valid Network Values
Option Precedence
Configuration values are resolved in this order (highest to lowest priority):- Command-line flags (e.g.,
--network devnet) - Config file values (
~/.crunch/config.json) - Built-in defaults
Security Considerations
Wallet Security
- Store keypair files in secure, encrypted locations
- Use appropriate file permissions:
chmod 600 wallet.json - Never commit wallet files to version control
- Use different wallets for different environments
Network Verification
Always verify your configuration before critical operations:Troubleshooting
Common Issues
“Insufficient SOL for transaction”Debug Mode
Enable verbose output to troubleshoot issues:Python Model Bridge
Themodel domain delegates to the Python crunch-cli companion:
crunch-cli model commands will prompt you to install it.