What the CLI Does
The Orquestra CLI provides three main capabilities:- Scan entire Solana clusters for executable programs
- Check which programs have on-chain Anchor IDL
- Export results to CSV for analysis
- Discovering programs with on-chain IDLs for automatic API generation
- Analyzing the Solana program ecosystem
- Building program registries and discovery tools
- Importing programs into Orquestra without manual IDL upload
Installation
The CLI is part of the Orquestra monorepo in thepackages/cli package:
Available Commands
| Command | Purpose | Output |
|---|---|---|
scan | Discover all executable programs on a cluster | programs.csv |
check-idl | Check which programs have on-chain Anchor IDL | program_idl_status.csv |
full | Run both scan + check-idl sequentially | Both CSVs |
Quick Start
Scan Programs
Discover all executable programs on Solana mainnet:Check On-Chain IDL
Check which programs have Anchor IDL accounts:Full Pipeline
Run both commands sequentially:Global Options
All commands support these options:| Option | Description | Default | Required |
|---|---|---|---|
--rpc-url <url> | Solana RPC endpoint URL | $SOLANA_RPC_URL env | ✅ |
--out-dir <dir> | Output directory for CSV files | ./output | ❌ |
--rps <n> | Max requests per second (rate limit) | 10 | ❌ |
--resume | Resume from previous checkpoint | false | ❌ |
--help | Show help message | - | ❌ |
Output Files
| File | Description | Can be deleted? |
|---|---|---|
programs.csv | Final program list | ❌ Keep |
program_idl_status.csv | Final IDL status | ❌ Keep |
.program-list.json | Intermediate data for check-idl | ✅ After check-idl completes |
.checkpoint-scan.json | Resume checkpoint for scan | ✅ After scan completes |
.checkpoint-idl.json | Resume checkpoint for check-idl | ✅ After check-idl completes |
Rate Limiting Strategies
Public RPCs
Public RPCs likeapi.mainnet-beta.solana.com have strict rate limits:
- Use
--rps 2to--rps 5 - Expect frequent 429 errors; the tool will retry automatically
- Consider using
--max-programsto limit scope
Premium RPCs
Premium RPCs (Helius, QuickNode, etc.) have higher rate limits:- Use
--rps 10to--rps 50depending on tier - More reliable for large scans
- Recommended for full cluster scans
Example Use Cases
Find All Anchor Programs
Quick Survey of Top 100 Programs
Check Specific DeFi Protocols
Next Steps
Scanning Programs
Learn how to discover programs on-chain
Checking IDL
Verify which programs have Anchor IDL