Home/Docs/Get Started/bake doctor

Environment health check and diagnostics.

bake doctor

What it checks

bash
bake doctor

Runs a comprehensive diagnostic of your environment:

CheckWhat it verifies
Node.jsVersion โ‰ฅ 18
GitInstalled and accessible
WSL(Windows) WSL relay functional
WalletKeypair exists and is valid
ClusterRPC endpoint reachable
BalanceSufficient SOL/COOK for deploy
ProjectAnchor.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

FlagDescription
--jsonStructured JSON output
--ciPlain, color-free output

Troubleshooting

If bake doctor reports failures, see Troubleshooting for known failure signatures and fixes.

Sourced from local MDX in docs/content/docs