The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: update cli reference doc (#39469)
Copple6245ba538401
diff --git a/apps/docs/spec/cli_v1_commands.yaml b/apps/docs/spec/cli_v1_commands.yamlindex 153dc0f52f0..a0e6dca64e6 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: 2.48.3+ version: 2.54.10title: Supabase CLIlanguage: shsource: https://github.com/supabase/cli@@ -78,7 +78,7 @@ flags:name: --workdir <string>description: path to a Supabase project directorydefault_value: ''- - id: 'yes'+ - id: "yes"name: --yesdescription: answer yes to all promptsdefault_value: 'false'@@ -1772,6 +1772,10 @@ commands:name: --project-ref <string>description: Project ref of the Supabase project.default_value: ''+ - id: skip-pooler+ name: --skip-pooler+ description: Use direct connection instead of pooler.+ default_value: 'false'- id: supabase-inspecttitle: supabase inspectsummary: Tools to inspect your Supabase project@@ -1824,6 +1828,7 @@ commands:- supabase-inspect-db-replication-slots- supabase-inspect-db-role-stats- supabase-inspect-db-table-stats+ - supabase-inspect-db-traffic-profile- supabase-inspect-db-vacuum-statsflags: []- id: supabase-inspect-db-vacuum-stats@@ -1865,6 +1870,52 @@ commands:name: --localdescription: Inspect the local database.default_value: 'false'+ - id: supabase-inspect-db-traffic-profile+ title: supabase inspect db traffic-profile+ summary: |+ Show read/write activity ratio for tables based on block I/O operations+ description: |2+++ This command analyzes table I/O patterns to show read/write activity ratios based on block-level operations. It combines data from PostgreSQL's `pg_stat_user_tables` (for tuple operations) and `pg_statio_user_tables` (for block I/O) to categorize each table's workload profile.+++ The command classifies tables into categories:+ - **Read-Heavy** - Read operations are more than 5x write operations (e.g., 1:10, 1:50)+ - **Write-Heavy** - Write operations are more than 20% of read operations (e.g., 1:2, 1:4, 2:1, 10:1)+ - **Balanced** - Mixed workload where writes are between 20% and 500% of reads+ - **Read-Only** - Only read operations detected+ - **Write-Only** - Only write operations detected++ ```+ SCHEMA │ TABLE │ BLOCKS READ │ WRITE TUPLES │ BLOCKS WRITE │ ACTIVITY RATIO+ ───────┼──────────────┼─────────────┼──────────────┼──────────────┼────────────────────+ public │ user_events │ 450,234 │ 9,004,680│ 23,450 │ 20:1 (Write-Heavy)+ public │ users │ 89,203 │ 12,451│ 1,203 │ 7.2:1 (Read-Heavy)+ public │ sessions │ 15,402 │ 14,823│ 2,341 │ ≈1:1 (Balanced)+ public │ cache_data │ 123,456 │ 0│ 0 │ Read-Only+ auth │ audit_logs │ 0 │ 98,234│ 12,341 │ Write-Only+ ```++ **Note:** This command only displays tables that have had both read and write activity. Tables with no I/O operations are not shown. The classification ratio threshold (default: 5:1) determines when a table is considered "heavy" in one direction versus balanced.++ tags: []+ links: []+ usage: supabase inspect db traffic-profile+ subcommands: []+ flags:+ - id: db-url+ name: --db-url <string>+ description: |+ Inspect the database specified by the connection string (must be percent-encoded).+ default_value: ''+ - id: linked+ name: --linked+ description: Inspect the linked project.+ default_value: 'true'+ - id: local+ name: --local+ description: Inspect the local database.+ default_value: 'false'- id: supabase-inspect-db-table-statstitle: supabase inspect db table-statssummary: |@@ -3114,7 +3165,7 @@ commands:default_value: '[]'- id: use-copyname: --use-copy- description: Uses copy statements in place of inserts.+ description: Use copy statements in place of inserts.default_value: 'false'- id: supabase-db-difftitle: supabase db diff@@ -3391,6 +3442,10 @@ commands:name: --name <string>description: Rename the preview branch.default_value: ''+ - id: notify-url+ name: --notify-url <string>+ description: URL to notify when branch is active healthy.+ default_value: ''- id: persistentname: --persistentdescription: Switch between ephemeral and persistent branch.@@ -3491,6 +3546,10 @@ commands:usage: supabase branches create [name] [flags]subcommands: []flags:+ - id: notify-url+ name: --notify-url <string>+ description: URL to notify when branch is active healthy.+ default_value: ''- id: persistentname: --persistentdescription: Whether to create a persistent branch.diff --git a/apps/docs/spec/common-cli-sections.json b/apps/docs/spec/common-cli-sections.jsonindex b6cd3b5c097..43ece8d6f38 100644--- a/apps/docs/spec/common-cli-sections.json+++ b/apps/docs/spec/common-cli-sections.json@@ -240,21 +240,9 @@"type": "cli-command","items": [{- "id": "supabase-inspect-db-calls",- "title": "Show most frequently run queries",- "slug": "supabase-inspect-db-calls",- "type": "cli-command"- },- {- "id": "supabase-inspect-db-long-running-queries",- "title": "Show long running queries",- "slug": "supabase-inspect-db-long-running-queries",- "type": "cli-command"- },- {- "id": "supabase-inspect-db-outliers",- "title": "Show queries ordered by total execution time",- "slug": "supabase-inspect-db-outliers",+ "id": "supabase-inspect-db-bloat",+ "title": "Show estimated database bloat",+ "slug": "supabase-inspect-db-bloat","type": "cli-command"},{@@ -264,69 +252,39 @@"type": "cli-command"},{- "id": "supabase-inspect-db-locks",- "title": "Show queries taking exclusive locks",- "slug": "supabase-inspect-db-locks",+ "id": "supabase-inspect-db-calls",+ "title": "Show most frequently run queries",+ "slug": "supabase-inspect-db-calls","type": "cli-command"},{- "id": "supabase-inspect-db-total-index-size",- "title": "Show total size of all indexes",- "slug": "supabase-inspect-db-total-index-size",+ "id": "supabase-inspect-db-db-stats",+ "title": "Show statistics related to database usage",+ "slug": "supabase-inspect-db-db-stats","type": "cli-command"},{- "id": "supabase-inspect-db-index-sizes",+ "id": "supabase-inspect-db-index-stats","title": "Show sizes of individual indexes",- "slug": "supabase-inspect-db-index-sizes",- "type": "cli-command"- },- {- "id": "supabase-inspect-db-index-usage",- "title": "Show information about index efficiency",- "slug": "supabase-inspect-db-index-usage",- "type": "cli-command"- },- {- "id": "supabase-inspect-db-unused-indexes",- "title": "Show indexes with low usage",- "slug": "supabase-inspect-db-unused-indexes",- "type": "cli-command"- },- {- "id": "supabase-inspect-db-total-table-sizes",- "title": "Show total size of all tables",- "slug": "supabase-inspect-db-total-table-sizes",- "type": "cli-command"- },- {- "id": "supabase-inspect-db-table-sizes",- "title": "Show sizes of individual tables",- "slug": "supabase-inspect-db-table-sizes",+ "slug": "supabase-inspect-db-index-stats","type": "cli-command"},{- "id": "supabase-inspect-db-table-index-sizes",- "title": "Show index sizes of individual tables",- "slug": "supabase-inspect-db-table-index-sizes",- "type": "cli-command"- },- {- "id": "supabase-inspect-db-cache-hit",- "title": "Show cache hit rates for tables and indices",- "slug": "supabase-inspect-db-cache-hit",+ "id": "supabase-inspect-db-locks",+ "title": "Show queries taking exclusive locks",+ "slug": "supabase-inspect-db-locks","type": "cli-command"},{- "id": "supabase-inspect-db-table-record-counts",- "title": "Show estimated number of rows per table",- "slug": "supabase-inspect-db-table-record-counts",+ "id": "supabase-inspect-db-long-running-queries",+ "title": "Show long running queries",+ "slug": "supabase-inspect-db-long-running-queries","type": "cli-command"},{- "id": "supabase-inspect-db-seq-scans",- "title": "Show number of sequential scans for all tables",- "slug": "supabase-inspect-db-seq-scans",+ "id": "supabase-inspect-db-outliers",+ "title": "Show queries ordered by total execution time",+ "slug": "supabase-inspect-db-outliers","type": "cli-command"},{@@ -336,15 +294,21 @@"type": "cli-command"},{- "id": "supabase-inspect-db-role-connections",+ "id": "supabase-inspect-db-role-stats","title": "Show number of active connections","slug": "supabase-inspect-db-role-connections","type": "cli-command"},{- "id": "supabase-inspect-db-bloat",- "title": "Show estimated database bloat",- "slug": "supabase-inspect-db-bloat",+ "id": "supabase-inspect-db-table-stats",+ "title": "Show sizes of individual tables",+ "slug": "supabase-inspect-db-table-stats",+ "type": "cli-command"+ },+ {+ "id": "supabase-inspect-db-traffic-profile",+ "title": "Show read / write activity ratio for tables",+ "slug": "supabase-inspect-db-traffic-profile","type": "cli-command"},{