Skip to content

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

fix: updated CLI docs

Lakshan Perera96bf5da6d529
diff --git a/spec/cli_v1_commands.yaml b/spec/cli_v1_commands.yaml
index c15f3125a2d..a63a953750c 100644
--- a/spec/cli_v1_commands.yaml
+++ b/spec/cli_v1_commands.yaml
@@ -206,7 +206,7 @@ commands:
SERVICE_ROLE_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU"
STUDIO_URL="http://localhost:54323"
- id: output-custom-name
- name: Customize the names of exported variables
+ name: Customise the names of exported variables
code: supabase status -o env --override-name auth.anon_key=SUPABASE_ANON_KEY --override-name auth.service_role_key=SUPABASE_SERVICE_KEY
response: |
Stopped services: [supabase_inbucket_cli supabase_rest_cli supabase_studio_cli]
@@ -247,12 +247,15 @@ commands:
- id: supabase-start
title: supabase start
summary: Start containers for Supabase local development
- description: |-
+ description: |2
+
Starts the Supabase local development stack.
Requires `supabase/config.toml` to be created in your current working directory by running `supabase init`.
All service containers are started by default. You can exclude those not needed by passing in `-x` flag.
+
+ Health checks are automatically added to verify the started containers. Use `--ignore-health-check` flag to ignore these errors.
examples:
- id: basic-usage
name: Basic usage
@@ -268,6 +271,13 @@ commands:
Excluding container: supabase/studio:20221214-4eecc99
Seeding data supabase/seed.sql...
Started supabase local development setup.
+ - id: ignore-health-check
+ name: Ignore service health checks
+ code: supabase start --ignore-health-check
+ response: |
+ Seeding data supabase/seed.sql...
+ service not healthy: [supabase_storage_cli]
+ Started supabase local development setup.
tags:
- local-dev
links: []
@@ -279,6 +289,10 @@ commands:
description: |
Names of containers to not start. [gotrue, realtime, storage-api, imgproxy, kong, inbucket, postgrest, pgadmin-schema-diff, migra, postgres-meta, studio, deno-relay]
default_value: '[]'
+ - id: ignore-health-check
+ name: --ignore-health-check
+ description: Ignore unhealthy services and exit 0
+ default_value: 'false'
- id: supabase-secrets
title: supabase secrets
summary: Manage Supabase secrets
@@ -595,7 +609,8 @@ commands:
- id: supabase-login
title: supabase login
summary: Authenticate using an access token
- description: |-
+ description: |2
+
Connect the Supabase CLI to your Supabase account by logging in with your [personal access token](https://app.supabase.com/account/tokens).
Your access token is stored securely in [native credentials storage](https://github.com/zalando/go-keyring#dependencies). If native credentials storage is unavailable, it will be written to a plain text file at `~/.supabase/access-token`.
@@ -620,7 +635,8 @@ commands:
- id: supabase-link
title: supabase link
summary: Link to a Supabase project
- description: |-
+ description: |2
+
Link your local development project to a hosted Supabase project.
PostgREST configurations are fetched from the Supabase platform and validated against your local configuration file.
@@ -659,7 +675,8 @@ commands:
- id: supabase-init
title: supabase init
summary: Initialize a local project
- description: |-
+ description: |2
+
Initialize configurations for Supabase local development.
A `supabase/config.toml` file is created in your current working directory. This configuration is specific to each local project.
@@ -673,7 +690,7 @@ commands:
code: supabase init
response: Finished supabase init.
- id: from-workdir
- name: Initialize from an existing directory
+ name: Initialise from an existing directory
code: supabase init --workdir .
response: Finished supabase init.
tags:
@@ -738,6 +755,7 @@ commands:
subcommands:
- supabase-functions-delete
- supabase-functions-deploy
+ - supabase-functions-download
- supabase-functions-new
- supabase-functions-serve
flags: []
@@ -770,6 +788,20 @@ commands:
usage: supabase functions new <Function name>
subcommands: []
flags: []
+ - id: supabase-functions-download
+ title: supabase functions download
+ summary: Download a Function from Supabase
+ description: |
+ Download source code of a Function from the linked Supabase project.
+ tags: []
+ links: []
+ usage: supabase functions download <Function name> [flags]
+ subcommands: []
+ flags:
+ - id: project-ref
+ name: --project-ref <string>
+ description: Project ref of the Supabase project.
+ default_value: ''
- id: supabase-functions-deploy
title: supabase functions deploy
summary: Deploy a Function to Supabase
diff --git a/spec/common-cli-sections.json b/spec/common-cli-sections.json
index 1407e6fa344..bbd5c2fa0df 100644
--- a/spec/common-cli-sections.json
+++ b/spec/common-cli-sections.json
@@ -248,6 +248,12 @@
"title": "Delete a function",
"slug": "supabase-functions-delete",
"type": "cli-command"
+ },
+ {
+ "id": "supabase-functions-download",
+ "title": "supabase functions download",
+ "slug": "supabase-functions-download",
+ "type": "cli-command"
}
]
},