Home/Docs/Reference/Environment Variables

Environment variables that affect bake's behavior.

Environment Variables

CLI environment variables

VariableDefaultDescription
BAKE_CI(unset)Set to 1 to force CI mode (no prompts, no spinners)
BAKE_JSON(unset)Set to 1 to force JSON output mode
BAKE_MOCK_RECIPE_BOOK(unset)Set to 1 to use mock Recipe Book (for testing)
BAKE_DASHBOARD_URLhttps://bakeacookie.vercel.appBase URL for the web dashboard (used by bake dashboard and deploy success links)
ANCHOR_WALLET~/.config/solana/id.jsonPath to wallet keypair
ANCHOR_PROVIDER_URL(from bake use)RPC endpoint URL

Dashboard environment variables

VariableDefaultDescription
NEXT_PUBLIC_RPC_URLhttps://rpc.cookiescan.ioSolana/Cookie Chain RPC endpoint
NEXT_PUBLIC_RECIPE_BOOK_PROGRAM_ID56Vj61zFW4hHV6wdjnisrHtVwWDqyjixjpBgnoRJvzxLRecipe Book program address

Notes

  • BAKE_MOCK_RECIPE_BOOK=1 is useful for testing command orchestration without touching a real chain
  • BAKE_CI and BAKE_JSON disable all interactive prompts โ€” safe for CI/CD pipelines
  • ANCHOR_PROVIDER_URL and ANCHOR_WALLET follow Anchor conventions
Sourced from local MDX in docs/content/docs