Installation
Usage
Coordinator Management Commands
register
Register a new Coordinator with the protocol.
Usage:
name- Unique name for the coordinator
- Coordinator name must be unique
- Wallet must have sufficient SOL for account creation
- Name should be descriptive and professional
get
Get Coordinator details by owner address.
Usage:
owner- Owner address of the Coordinator (optional, defaults to current wallet)
get-config
Get Coordinator configuration from the protocol.
Usage:
Competition Lifecycle Management
create
Create a new competition (crunch).
Usage:
name- Name of the crunchpayoutAmount- Payout amount in USDC (default: 10)maxModelsPerCruncher- Maximum models per Cruncher (default: 2)
- Must be an approved coordinator
- Competition name must be unique
- Must have sufficient SOL for account creation
start
Start a competition.
Usage:
crunchName- Name of the crunch to start
- Competition must be in created state
- Must be the Coordinator who created the competition
address
Get the account address for a competition.
Usage:
crunchName- Name of the crunch
get
Get detailed information about a competition.
Usage:
name- Name of the crunch
end
End a competition.
Usage:
crunchName- Name of the crunch to end
- Competition must be in active state
- Must be the Coordinator who created the competition
Reward and Financial Management
deposit-reward
Deposit reward USDC to a competition.
Usage:
crunchName- Name of the crunchamount- Amount in USDC to deposit
- Must have sufficient USDC balance
- Competition must exist
margin
Execute margin payout for a competition.
Usage:
crunchName- Name of the crunch
drain
Drain USDC from a competition.
Usage:
crunchName- Name of the crunch
--show-solscan- Show Solscan links for transactions
Checkpoint Management
checkpoint-create
Creates a checkpoint for payout distribution.
Usage:
crunchName- Name of the crunchprizeFileName- Path to prize JSON file containing payout distribution
--dryrun- Perform a dry run without executing transactions
timestamp- Unix timestamp in milliseconds (required)model- Model identifier receiving the prize (required)prize- Prize amount in micro USDC (amount to transfer * (10^6)) (required)prizeId- Unique identifier for the prize (optional)
checkpoint-get-current
Get the current checkpoint information.
Usage:
crunchName- Name of the crunch
checkpoint-get-address
Get the address of a specific checkpoint.
Usage:
crunchName- Name of the crunchcheckpointIndex- Index of the checkpoint
Configuration
The CLI uses a configuration system for managing settings. Use theconfig commands to manage your configuration:
Configuration Options
network(string) - Solana network (localnet, devnet, mainnet)wallet(string) - Path to wallet keypair fileloglevel(string) - Log level (debug, info, warn, error)
Default Configuration
Command Reference Summary
| Category | Command | Description |
|---|---|---|
| Coordinator Management | register | Register as a Coordinator |
get | Get Coordinator details | |
get-config | Get Coordinator configuration | |
| Competition Lifecycle | crunch create | Create a new competition |
crunch start | Start a competition | |
crunch address | Get competition address | |
crunch get | Get competition details | |
crunch end | End a competition | |
| Financial Management | crunch deposit-reward | Deposit USDC rewards |
crunch margin | Execute margin payout | |
crunch drain | Withdraw remaining USDC | |
| Checkpoint Management | crunch checkpoint-create | Create reward checkpoint |
crunch checkpoint-get-current | Get current checkpoint | |
crunch checkpoint-get-address | Get checkpoint address | |
| Configuration | config | Configuration management |
Competition Workflow
- Setup: Register as Coordinator using
register - Create: Create competition using
crunch create - Fund: Deposit rewards using
crunch deposit-reward - Launch: Start competition using
crunch start - Monitor: Check status using
crunch get - Distribute: Create checkpoints using
crunch checkpoint-create - Complete: End competition using
crunch end - Cleanup: Drain remaining funds using
crunch drain
Related Packages
- @crunchdao/cruncher-cli - Participant operations (cruncher registration, claiming rewards)
- See Global Options for shared configuration options
Best Practices
- Secure Wallets: Keep Coordinator wallet keys secure
- Documentation: Keep track of checkpoint indices and prize distributions