supabase · Supabase Docs
Supabase Getting Started with Edge Functions
A step-by-step guide to initializing a Supabase project, generating a TypeScript Edge Function using the CLI, testing the function in a local Docker environment, and deploying it to the Supabase edge network.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Supabase Getting Started with Edge Functions
A step-by-step guide to initializing a Supabase project, generating a TypeScript Edge Function using the CLI, testing the function in a local Docker environment, and deploying it to the Supabase edge network.
When To Use
Use when you need to set up, develop locally, and deploy a new TypeScript Edge Function using the Supabase CLI and Deno runtime.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/supabase-getting-started-with-edge-functions-workflow-guide.md | A guide covering the creation, local testing, and deployment of Supabase Edge Functions using the Supabase CLI. | Questions about a guide covering the creation, local testing, and deployment of Supabase Edge Functions using the Supabase CLI. |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-qui.bash | A bash script containing the initial CLI commands to initialize a new Supabase project and prepare for Edge Functions development. | Exact payloads, commands, or snippets shown in A bash script containing the initial CLI commands to initialize a new Supabase project and prepare for Edge Functions... |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-qui-2.bash | A sequence of bash commands to initialize a Supabase project and prepare for Edge Function development. | Exact payloads, commands, or snippets shown in A sequence of bash commands to initialize a Supabase project and prepare for Edge Function development. |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-new.bash | A bash command used to initialize a new Supabase Edge Function named hello-world. | Exact payloads, commands, or snippets shown in A bash command used to initialize a new Supabase Edge Function named hello-world. |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-tsx.tsx | A TypeScript React-style example of a Supabase Edge Function using the withSupabase wrapper to handle requests and JSON responses. | Exact payloads, commands, or snippets shown in A TypeScript React-style example of a Supabase Edge Function using the withSupabase wrapper to handle requests and JS... |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-qui-3.bash | Bash commands for starting Supabase services and serving a local edge function. | Exact payloads, commands, or snippets shown in Bash commands for starting Supabase services and serving a local edge function. |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-cur.bash | A curl command used to send a POST request to a locally running Supabase Edge Function with a JSON payload. | Exact payloads, commands, or snippets shown in A curl command used to send a POST request to a locally running Supabase Edge Function with a JSON payload. |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-hel.json | A JSON object containing a simple message payload used for testing Supabase Edge Functions. | Exact payloads, commands, or snippets shown in A JSON object containing a simple message payload used for testing Supabase Edge Functions. |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-log.bash | A bash command used to authenticate the Supabase CLI for managing edge functions. | Exact payloads, commands, or snippets shown in A bash command used to authenticate the Supabase CLI for managing edge functions. |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-qui-4.bash | A sequence of bash commands to list projects and initialize the Supabase CLI for edge functions development. | Exact payloads, commands, or snippets shown in A sequence of bash commands to list projects and initialize the Supabase CLI for edge functions development. |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-lin.bash | A bash command to link a local development environment to a specific Supabase project using a project reference ID. | Exact payloads, commands, or snippets shown in A bash command to link a local development environment to a specific Supabase project using a project reference ID. |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-dep.bash | A bash command used to deploy a Supabase Edge Function named hello-world. | Exact payloads, commands, or snippets shown in A bash command used to deploy a Supabase Edge Function named hello-world. |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-dep-2.bash | A bash command used to deploy Supabase Edge Functions to the cloud. | Exact payloads, commands, or snippets shown in A bash command used to deploy Supabase Edge Functions to the cloud. |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-dep-3.bash | A bash command to deploy a Supabase Edge Function named hello-world using the API flag. | Exact payloads, commands, or snippets shown in A bash command to deploy a Supabase Edge Function named hello-world using the API flag. |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-cur-2.bash | A curl command demonstrating how to invoke a deployed Supabase Edge Function using a POST request with an API key and JSON payload. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to invoke a deployed Supabase Edge Function using a POST request with an API key and... |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-hel-2.json | A JSON object containing a message property used as a sample payload for a Supabase Edge Function request. | Exact payloads, commands, or snippets shown in A JSON object containing a message property used as a sample payload for a Supabase Edge Function request. |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-js-.jsx | A JSX code snippet demonstrating how to use the Supabase client to invoke an edge function with a request body. | Exact payloads, commands, or snippets shown in A JSX code snippet demonstrating how to use the Supabase client to invoke an edge function with a request body. |
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-hel.jsx | A JSX code snippet demonstrating how to call a Supabase Edge Function using the fetch API with a POST request. | Exact payloads, commands, or snippets shown in A JSX code snippet demonstrating how to call a Supabase Edge Function using the fetch API with a POST request. |
What This Skill Covers
- Learn how to create, test, and deploy your first Edge Function using the Supabase CLI.
- Main sections:
Prerequisites,Step 1: Create or configure your project,Step 2: Create your first function,Step 3: Test your function locally,Function not starting locally?.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://supabase.com/docs/guides/functions/quickstart