Crunch Protocol CLI
A command-line interface for the Crunch Protocol, allowing for Coordinator Management, Crunch Management and Staking Operations.
Documentation: https://protocol.crunchdao.com/cli/
Installation
npm install -g @crunchdao/cli
Quick Start
crunch-cli config set network devnet
crunch-cli config set wallet ~/.config/solana/devnet.json
crunch-cli config show
crunch-cli coordinator register "MyCoordinator"
Command Structure
The CLI is organized by functional domains rather than user roles:
crunch-cli coordinator - Coordinator-specific operations
crunch-cli cruncher - Participant/cruncher operations
crunch-cli staking - All staking-related operations
crunch-cli crunch - Crunch competition management and participation
crunch-cli model - Model & simulation tools (requires: pip install crunch-cli)
crunch-cli config - Global configuration management
Global Options
All commands support these global options:
-n, --network <network> - Solana network (mainnet-beta|testnet|devnet|localhost)
-w, --wallet <path> - Path to wallet keypair file
-u, --url <url> - Custom RPC URL (overrides network)
-o, --output <format> - Output format (json|table|yaml)
-v, --verbose - Enable verbose logging
-q, --quiet - Suppress non-error output
--dry-run - Show what would be executed without running
--timeout <seconds> - Command timeout in seconds
Examples
Staking Operations
crunch-cli staking deposit 1000
crunch-cli staking delegate 7x8yF...3k9L 500
crunch-cli staking positions
crunch-cli staking rewards
crunch-cli staking claim
Model Management
crunch-cli cruncher model add "DataSci2024" "bot1" "submission123" "resource456" "gpu" "start"
crunch-cli cruncher model list "DataSci2024"
crunch-cli cruncher model update "DataSci2024" "bot1" '{"state": "stop"}'
Python Model & Simulation Tools
pip install crunch-cli
crunch-cli model list
crunch-cli model run baseline
crunch-cli model validate scenario.yaml
Configuration
The CLI uses a global configuration file stored at ~/.crunch/config.json:
crunch-cli config set network devnet
crunch-cli config set wallet ~/.config/solana/devnet.json
crunch-cli config show
crunch-cli config validate
Contributing
Please see the main repository's contributing guidelines.
License
MIT