bake doctor
What it checks
bash
bake doctor
Runs a comprehensive diagnostic of your environment:
| Check | What it verifies |
|---|---|
| Node.js | Version โฅ 18 |
| Git | Installed and accessible |
| WSL | (Windows) WSL relay functional |
| Wallet | Keypair exists and is valid |
| Cluster | RPC endpoint reachable |
| Balance | Sufficient SOL/COOK for deploy |
| Project | Anchor.toml detected (if in project dir) |
Output format
bake doctor โ Node.js v20.11.0 โ Git 2.43.0 โ WSL Ubuntu (relay functional) โ Wallet ~/.config/solana/id.json โ Cluster cookie (https://rpc.cookiescan.io) โ Balance 12.5 COOK โ Project my-program (Anchor.toml found) All checks passed!
Exit codes
0โ all checks passed (including warnings)- Non-zero โ genuine failure detected
Flags
| Flag | Description |
|---|---|
--json | Structured JSON output |
--ci | Plain, color-free output |
Troubleshooting
If bake doctor reports failures, see Troubleshooting for known failure signatures and fixes.