Skip to content

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

chore: update cli reference doc (#29466)

Copplef0b135597dff
diff --git a/apps/docs/spec/cli_v1_commands.yaml b/apps/docs/spec/cli_v1_commands.yaml
index ef635e85bf0..175b14b3d56 100644
--- a/apps/docs/spec/cli_v1_commands.yaml
+++ b/apps/docs/spec/cli_v1_commands.yaml
@@ -1,7 +1,7 @@
clispec: '001'
info:
id: cli
- version: 1.192.5
+ version: 1.200.3
title: Supabase CLI
language: sh
source: https://github.com/supabase/cli
@@ -50,6 +50,23 @@ flags:
name: --network-id <string>
description: use the specified docker network instead of a generated one
default_value: ''
+ - id: output
+ name: --output <[ pretty | json | toml | yaml ]>
+ description: output format of status variables
+ default_value: pretty
+ accepted_values:
+ - id: pretty
+ name: pretty
+ type: '[ pretty | json | toml | yaml ]'
+ - id: json
+ name: json
+ type: '[ pretty | json | toml | yaml ]'
+ - id: toml
+ name: toml
+ type: '[ pretty | json | toml | yaml ]'
+ - id: yaml
+ name: yaml
+ type: '[ pretty | json | toml | yaml ]'
- id: workdir
name: --workdir <string>
description: path to a Supabase project directory
@@ -358,13 +375,15 @@ commands:
- id: supabase-stop
title: supabase stop
summary: Stop all local Supabase containers
- description: |2
+ description: |2-
Stops the Supabase local development stack.
Requires `supabase/config.toml` to be created in your current working directory by running `supabase init`.
All Docker resources are maintained across restarts. Use `--no-backup` flag to reset your local development data between restarts.
+
+ Use the `--all` flag to stop all local Supabase projects instances on the machine. Use with caution with `--no-backup` as it will delete all supabase local projects data.
examples:
- id: basic-usage
name: Basic usage
@@ -383,6 +402,11 @@ commands:
usage: supabase stop [flags]
subcommands: []
flags:
+ - id: all
+ name: --all
+ description: |
+ Stop all local Supabase instances from all projects across the machine.
+ default_value: 'false'
- id: no-backup
name: --no-backup
description: Deletes all data volumes after stopping.
@@ -600,23 +624,6 @@ commands:
description: |
Whether local validation of the SAML 2.0 Metadata URL should not be performed.
default_value: 'false'
- - id: output
- name: -o, --output <[ pretty | json | toml | yaml ]>
- description: Output format
- default_value: pretty
- accepted_values:
- - id: pretty
- name: pretty
- type: '[ pretty | json | toml | yaml ]'
- - id: json
- name: json
- type: '[ pretty | json | toml | yaml ]'
- - id: toml
- name: toml
- type: '[ pretty | json | toml | yaml ]'
- - id: yaml
- name: yaml
- type: '[ pretty | json | toml | yaml ]'
- id: project-ref
name: --project-ref <string>
description: Project ref of the Supabase project.
@@ -653,23 +660,6 @@ commands:
name: --metadata
description: Show SAML 2.0 XML Metadata only
default_value: 'false'
- - id: output
- name: -o, --output <[ pretty | json | toml | yaml ]>
- description: Output format
- default_value: pretty
- accepted_values:
- - id: pretty
- name: pretty
- type: '[ pretty | json | toml | yaml ]'
- - id: json
- name: json
- type: '[ pretty | json | toml | yaml ]'
- - id: toml
- name: toml
- type: '[ pretty | json | toml | yaml ]'
- - id: yaml
- name: yaml
- type: '[ pretty | json | toml | yaml ]'
- id: project-ref
name: --project-ref <string>
description: Project ref of the Supabase project.
@@ -693,23 +683,6 @@ commands:
usage: supabase sso remove <provider-id>
subcommands: []
flags:
- - id: output
- name: -o, --output <[ pretty | json | toml | yaml ]>
- description: Output format
- default_value: pretty
- accepted_values:
- - id: pretty
- name: pretty
- type: '[ pretty | json | toml | yaml ]'
- - id: json
- name: json
- type: '[ pretty | json | toml | yaml ]'
- - id: toml
- name: toml
- type: '[ pretty | json | toml | yaml ]'
- - id: yaml
- name: yaml
- type: '[ pretty | json | toml | yaml ]'
- id: project-ref
name: --project-ref <string>
description: Project ref of the Supabase project.
@@ -724,23 +697,6 @@ commands:
usage: supabase sso list
subcommands: []
flags:
- - id: output
- name: -o, --output <[ pretty | json | toml | yaml ]>
- description: Output format
- default_value: pretty
- accepted_values:
- - id: pretty
- name: pretty
- type: '[ pretty | json | toml | yaml ]'
- - id: json
- name: json
- type: '[ pretty | json | toml | yaml ]'
- - id: toml
- name: toml
- type: '[ pretty | json | toml | yaml ]'
- - id: yaml
- name: yaml
- type: '[ pretty | json | toml | yaml ]'
- id: project-ref
name: --project-ref <string>
description: Project ref of the Supabase project.
@@ -761,23 +717,6 @@ commands:
usage: supabase sso info
subcommands: []
flags:
- - id: output
- name: -o, --output <[ pretty | json | toml | yaml ]>
- description: Output format
- default_value: pretty
- accepted_values:
- - id: pretty
- name: pretty
- type: '[ pretty | json | toml | yaml ]'
- - id: json
- name: json
- type: '[ pretty | json | toml | yaml ]'
- - id: toml
- name: toml
- type: '[ pretty | json | toml | yaml ]'
- - id: yaml
- name: yaml
- type: '[ pretty | json | toml | yaml ]'
- id: project-ref
name: --project-ref <string>
description: Project ref of the Supabase project.
@@ -851,23 +790,6 @@ commands:
- id: saml
name: saml
type: '[ saml ]'
- - id: output
- name: -o, --output <[ pretty | json | toml | yaml ]>
- description: Output format
- default_value: pretty
- accepted_values:
- - id: pretty
- name: pretty
- type: '[ pretty | json | toml | yaml ]'
- - id: json
- name: json
- type: '[ pretty | json | toml | yaml ]'
- - id: toml
- name: toml
- type: '[ pretty | json | toml | yaml ]'
- - id: yaml
- name: yaml
- type: '[ pretty | json | toml | yaml ]'
- id: project-ref
name: --project-ref <string>
description: Project ref of the Supabase project.
@@ -2987,6 +2909,10 @@ commands:
name: --local
description: Resets the local database with local migrations.
default_value: 'true'
+ - id: no-seed
+ name: --no-seed
+ description: Skip running the seed script after reset.
+ default_value: 'false'
- id: version
name: --version <string>
description: Reset up to the specified version.
@@ -3138,7 +3064,7 @@ commands:
- id: supabase-db-lint
title: supabase db lint
summary: Checks local database for typing error
- description: |2
+ description: |2-
Lints local database for schema errors.
@@ -3147,6 +3073,14 @@ commands:
Runs `plpgsql_check` extension in the local Postgres container to check for errors in all schemas. The default lint level is `warning` and can be raised to error via the `--level` flag.
To lint against specific schemas only, pass in the `--schema` flag.
+
+ The `--fail-on` flag can be used to control when the command should exit with a non-zero status code. The possible values are:
+
+ - `none` (default): Always exit with a zero status code, regardless of lint results.
+ - `warning`: Exit with a non-zero status code if any warnings or errors are found.
+ - `error`: Exit with a non-zero status code only if errors are found.
+
+ This flag is particularly useful in CI/CD pipelines where you want to fail the build based on certain lint conditions.
examples:
- id: basic-usage
name: Basic usage
@@ -3182,6 +3116,20 @@ commands:
description: |
Lints the database specified by the connection string (must be percent-encoded).
default_value: ''
+ - id: fail-on
+ name: --fail-on <[ none | warning | error ]>
+ description: Error level to exit with non-zero status.
+ default_value: none
+ accepted_values:
+ - id: none
+ name: none
+ type: '[ none | warning | error ]'
+ - id: warning
+ name: warning
+ type: '[ none | warning | error ]'
+ - id: error
+ name: error
+ type: '[ none | warning | error ]'
- id: level
name: --level <[ warning | error ]>
description: Error level to emit.