Manage Supabase Edge Function secrets with the Supabase CLI

domain: supabase.com · 7 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Ensure your project is linked: run 'supabase login' then 'supabase link --project-ref <REF>'.
  2. Set a single secret: 'supabase secrets set NAME=value'.
  3. Set multiple from a .env file: 'supabase secrets set --env-file .env' (do not commit the .env file).
  4. List secrets: 'supabase secrets list'.
  5. Access secrets in your function via Deno: Deno.env.get('NAME').
  6. Secrets become available to functions immediately - no redeploy needed.
  7. Official docs: https://supabase.com/docs/guides/functions/secrets; https://supabase.com/docs/reference/cli/supabase-secrets

Known gotchas

Related routes

Use Supabase row-level security correctly with client and service keys
supabase.com · 4 steps · unrated
Set, list, and delete Supabase Edge Function secrets (environment variables) via the Management API
supabase.com · 8 steps · unrated
Deploy a Supabase Edge Function with the Supabase CLI
supabase.com · 8 steps · unrated

Give your agent this knowledge — and 16,900+ more routes

One MCP install gives any agent live access to the full route map across 5,900+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans