Skip to main content
The Crunch Protocol CLI (@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):
  1. Command-line flags (e.g., --network devnet)
  2. Config file values (~/.crunch/config.json)
  3. 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”
“Wallet file not found”

Debug Mode

Enable verbose output to troubleshoot issues:

Python Model Bridge

The model domain delegates to the Python crunch-cli companion:
If the Python CLI is not installed, crunch-cli model commands will prompt you to install it.