The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs(cli): update commands reference
Bobbie Soedirgoac3592c1da92
diff --git a/web/sidebar_spec_cli.js b/web/sidebar_spec_cli.jsindex 5fa5724ce5f..9e5d12c2c9e 100644--- a/web/sidebar_spec_cli.js+++ b/web/sidebar_spec_cli.js@@ -9,7 +9,7 @@ module.exports = {{type: 'category',label: 'Command reference',- items: ['reference/cli/supabase-help', 'reference/cli/supabase-init', 'reference/cli/supabase-start', 'reference/cli/supabase-db-branch-list', 'reference/cli/supabase-db-branch-create', 'reference/cli/supabase-db-branch-delete', 'reference/cli/supabase-db-switch', 'reference/cli/supabase-db-changes', 'reference/cli/supabase-db-commit', 'reference/cli/supabase-db-reset', 'reference/cli/supabase-db-remote-set', 'reference/cli/supabase-db-remote-commit', 'reference/cli/supabase-db-push', 'reference/cli/supabase-migration-new'],+ items: ['reference/cli/supabase-help', 'reference/cli/supabase-login', 'reference/cli/supabase-link', 'reference/cli/supabase-init', 'reference/cli/supabase-start', 'reference/cli/supabase-stop', 'reference/cli/supabase-db-branch-list', 'reference/cli/supabase-db-branch-create', 'reference/cli/supabase-db-branch-delete', 'reference/cli/supabase-db-switch', 'reference/cli/supabase-db-changes', 'reference/cli/supabase-db-commit', 'reference/cli/supabase-db-reset', 'reference/cli/supabase-db-remote-set', 'reference/cli/supabase-db-remote-commit', 'reference/cli/supabase-db-push', 'reference/cli/supabase-functions-delete', 'reference/cli/supabase-functions-deploy', 'reference/cli/supabase-functions-new', 'reference/cli/supabase-functions-serve', 'reference/cli/supabase-migration-new', 'reference/cli/supabase-secrets-list', 'reference/cli/supabase-secrets-set', 'reference/cli/supabase-secrets-unset'],collapsed: true,},{diff --git a/web/spec/cli.yml b/web/spec/cli.ymlindex c42c94d7448..6530db3a41d 100644--- a/web/spec/cli.yml+++ b/web/spec/cli.yml@@ -8,6 +8,7 @@ info:- [x] Running Supabase locally- [x] Managing database migrations+ - [x] Creating and developing Edge Functions- [x] Pushing your local changes to production- [ ] Manage your Supabase Account- [ ] Manage your Supabase Projects@@ -95,8 +96,11 @@ info:- name: 'Command reference'items:- supabase help+ - supabase login+ - supabase link- supabase init- supabase start+ - supabase stop- supabase db branch list- supabase db branch create- supabase db branch delete@@ -107,7 +111,14 @@ info:- supabase db remote set- supabase db remote commit- supabase db push+ - supabase functions delete+ - supabase functions deploy+ - supabase functions new+ - supabase functions serve- supabase migration new+ - supabase secrets list+ - supabase secrets set+ - supabase secrets unset- name: 'Config reference'items:- Config reference@@ -124,6 +135,33 @@ pages:supabase help [command]```+ supabase login:+ description: |+ Authenticate using an access token.++ ### Generating a new access token++ - Navigate to https://app.supabase.io/account/tokens+ - Generate New Token+ - Copy newly created token and past++ examples:+ - name: Usage+ sh: |+ ```sh+ supabase login+ ```++ supabase link:+ description: |+ Link to a Supabase project.+ examples:+ - name: Usage+ sh: |+ ```sh+ supabase link --ref abcdefghijklmnopqrst+ ```+supabase init:description: |Initialize a project to use Supabase CLI.@@ -144,6 +182,16 @@ pages:supabase start```+ supabase stop:+ description: |+ Stop the Supabase local development setup.+ examples:+ - name: Usage+ sh: |+ ```sh+ supabase stop+ ```+supabase db branch list:description: |List branches.@@ -253,6 +301,46 @@ pages:supabase db push [--dry-run]```+ supabase functions delete:+ description: |+ Delete a Function from the linked Supabase project. This does NOT remove the Function locally.+ examples:+ - name: Usage+ sh: |+ ```sh+ supabase functions delete <Function name>+ ```++ supabase functions deploy:+ description: |+ Deploy a Function to the linked Supabase project.+ examples:+ - name: Usage+ sh: |+ ```sh+ supabase functions deploy <Function name>+ ```++ supabase functions new:+ description: |+ Create a new Function locally.+ examples:+ - name: Usage+ sh: |+ ```sh+ supabase functions new <Function name>+ ```++ supabase functions serve:+ description: |+ Serve a Function locally.+ examples:+ - name: Usage+ sh: |+ ```sh+ supabase functions serve <Function name>+ ```+supabase migration new:description: |Create an empty migration.@@ -263,6 +351,40 @@ pages:supabase migration new <migration name>```+ supabase secrets list:+ description: |+ List all secrets in the linked project.+ examples:+ - name: Usage+ sh: |+ ```sh+ supabase secrets list+ ```++ supabase secrets set:+ description: |+ Set a secret(s) to the linked Supabase project.++ Flags:++ `--from-stdin`: Read secrets in .env format from stdin.+ examples:+ - name: Usage+ sh: |+ ```sh+ supabase secrets set [flags] <NAME=VALUE> ...+ ```++ supabase secrets unset:+ description: |+ Unset a secret(s) from the linked Supabase project.+ examples:+ - name: Usage+ sh: |+ ```sh+ supabase secrets unset <NAME> ...+ ```+Config reference:description: |The config file resides in `supabase/config.toml` after you run `supabase init`.diff --git a/web/spec/supabase.yml b/web/spec/supabase.ymlindex 442faef9f4e..942e0a19270 100644--- a/web/spec/supabase.yml+++ b/web/spec/supabase.yml@@ -972,6 +972,16 @@ pages:title: 'invoke()'description: |Invokes a Supabase Function. See the [guide](/docs/guides/api) for details on writing Functions.++ :::caution++ Supabase Functions are in Experimental release until 1 August 2022. There will breaking changes. Do not use them in Production.++ :::++ We have released Supabase Functions to gather feedback. You're welcome to try them out and send us feedback but we strongly advise against using them for anything in production.+ There will be breaking changes with no notice.+$ref: '@supabase/functions-js.FunctionsClient.invoke'notes: |- Requires an Authorization header.