Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: add docs for deploy all edge functions.

thorwebdev66455d5ebb8b
diff --git a/apps/docs/pages/guides/functions/cicd-workflow.mdx b/apps/docs/pages/guides/functions/cicd-workflow.mdx
index a1836c20b53..4cd57580e9e 100644
--- a/apps/docs/pages/guides/functions/cicd-workflow.mdx
+++ b/apps/docs/pages/guides/functions/cicd-workflow.mdx
@@ -24,7 +24,7 @@ jobs:
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
- PROJECT_ID: zdtdtxajzydjqzuktnqx
+ PROJECT_ID: your-project-id
steps:
- uses: actions/checkout@v3
@@ -33,7 +33,16 @@ jobs:
with:
version: 1.0.0
- - run: supabase functions deploy your-function-name --project-ref $PROJECT_ID
+ - run: supabase functions deploy --project-ref $PROJECT_ID
+```
+
+Since Supabase CLI [v1.62.0](https://github.com/supabase/cli/releases/tag/v1.62.0) you can deploy all functions with a single command.
+
+Individual function configuration like [JWT verification](/docs/reference/cli/config#functions.function_name.verify_jwt) and [import map location](/docs/reference/cli/config#functions.function_name.import_map) can be set via the `config.toml` file.
+
+```toml
+[functions.hello-world]
+verify_jwt = false
```
<div class="video-container">
diff --git a/apps/docs/pages/guides/functions/quickstart.mdx b/apps/docs/pages/guides/functions/quickstart.mdx
index be7537510fd..a01448526ab 100644
--- a/apps/docs/pages/guides/functions/quickstart.mdx
+++ b/apps/docs/pages/guides/functions/quickstart.mdx
@@ -41,6 +41,8 @@ This creates a function stub in your `supabase` folder at `./functions/hello-wor
## Deploy to production
+### Deploy a specific function
+
```bash
supabase functions deploy hello-world
```
@@ -56,6 +58,21 @@ If you want to use Edge Functions to handle webhooks (e.g. [Stripe payment webho
</Admonition>
+### Deploy all functions
+
+```bash
+supabase functions deploy
+```
+
+Since Supabase CLI [v1.62.0](https://github.com/supabase/cli/releases/tag/v1.62.0) you can deploy all functions with a single command. This is useful for example when [deploying with GitHub Actions](/docs/guides/functions/cicd-workflow).
+
+Individual function configuration like [JWT verification](/docs/reference/cli/config#functions.function_name.verify_jwt) and [import map location](/docs/reference/cli/config#functions.function_name.import_map) can be set via the `config.toml` file.
+
+```toml
+[functions.hello-world]
+verify_jwt = false
+```
+
## Invoking remote functions
You can invoke Edge Functions using curl:
diff --git a/examples/edge-functions/README.md b/examples/edge-functions/README.md
index 47e624783a9..c80b938b6e9 100644
--- a/examples/edge-functions/README.md
+++ b/examples/edge-functions/README.md
@@ -81,7 +81,7 @@ jobs:
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
- PROJECT_ID: zdtdtxajzydjqzuktnqx
+ PROJECT_ID: your-project-id
steps:
- uses: actions/checkout@v3
@@ -90,7 +90,16 @@ jobs:
with:
version: 1.0.0
- - run: supabase functions deploy your-function-name --project-ref $PROJECT_ID
+ - run: supabase functions deploy --project-ref $PROJECT_ID
+```
+
+Since Supabase CLI [v1.62.0](https://github.com/supabase/cli/releases/tag/v1.62.0) you can deploy all functions with a single command.
+
+Individual function configuration like [JWT verification](/docs/reference/cli/config#functions.function_name.verify_jwt) and [import map location](/docs/reference/cli/config#functions.function_name.import_map) can be set via the `config.toml` file.
+
+```toml
+[functions.hello-world]
+verify_jwt = false
```
## 👁⚡️👁