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 (#27244)

Copple07e5fdccdbf7
diff --git a/apps/docs/spec/cli_v1_commands.yaml b/apps/docs/spec/cli_v1_commands.yaml
index 71c70429641..81bc3d8afe7 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.176.4
+ version: 1.178.2
title: Supabase CLI
language: sh
source: https://github.com/supabase/cli
@@ -1351,6 +1351,17 @@ commands:
- id: supabase-migration-squash
title: supabase migration squash
summary: Squash migrations to a single file
+ description: |2
+
+ Squashes local schema migrations to a single migration file.
+
+ The squashed migration is equivalent to a schema only dump of the local database after applying existing migration files. This is especially useful when you want to remove repeated modifications of the same schema from your migration history.
+
+ However, one limitation is that data manipulation statements, such as insert, update, or delete, are omitted from the squashed migration. You will have to add them back manually in a new migration file. This includes cron jobs, storage buckets, and any encrypted secrets in vault.
+
+ By default, the latest `<timestamp>_<name>.sql` file will be updated to contain the squashed migration. You can override the target version using the `--version <timestamp>` flag.
+
+ If your `supabase/migrations` directory is empty, running `supabase squash` will do nothing.
tags: []
links: []
usage: supabase migration squash [flags]