You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8acc7a3
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/main.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ func main() {
38
38
Clispec: "001",
39
39
Info: InfoDoc{
40
40
Id: "cli",
41
-
Version: "1.34.5",
41
+
Version: "1.42.0",
42
42
Title: strings.TrimSpace(root.Short),
43
43
Description: forceMultiLine("Supabase CLI provides you with tools to develop your application locally, and deploy your application to the Supabase platform."),
Copy file name to clipboardExpand all lines: docs/supabase/link.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,4 +6,6 @@ PostgREST configurations are fetched from the Supabase platform and validated ag
6
6
7
7
Optionally, database settings can be validated if you provide a password. Your database password is saved in native credentials storage if available.
8
8
9
+
> If you do not want to be prompted for the database password, such as in a CI environment, you may specify it explicitly via the `SUPABASE_DB_PASSWORD` environment variable.
10
+
9
11
Some commands like `db dump`, `db push`, and `db remote commit` require your project to be linked first.
Lists migration history in both local and remote databases.
4
+
5
+
Requires your local project to be linked to a remote database by running `supabase link`. For self-hosted databases, you can pass in the connection parameters using `--db-url` flag.
6
+
7
+
> Note that URL strings must be escaped according to [RFC 3986](https://www.rfc-editor.org/rfc/rfc3986).
8
+
9
+
Local migrations are stored in `supabase/migrations` directory while remote migrations are tracked in `supabase_migrations.schema_migrations` table. Only the timestamps are compared to identify any differences.
10
+
11
+
In case of discrepancies between the local and remote migration history, you can resolve them using the `migration repair` command.
A `supabase/migrations` directory will be created if it does not already exists in your current `workdir`. All schema migration files must be created in this directory following the pattern `<timestamp>_<name>.sql`.
6
+
7
+
Outputs from other commands like `db diff` may be piped to `migration new <name>` via stdin.
Requires your local project to be linked to a remote database by running `supabase link`.
6
+
7
+
If your local and remote migration history goes out of sync, you can repair the remote history by marking specific migrations as `--status applied` or `--status reverted`. Marking as `reverted` will delete an existing record from the migration history table while marking as `applied` will insert a new record.
8
+
9
+
For example, your migration history table may look like this after running `db remote commit` for the first time.
Shows status of the Supabase local development stack.
4
+
5
+
Requires the local development stack to be started by running `supabase start` or `supabase db start`.
6
+
7
+
You can export the connection parameters for [initializing supabase-js](https://supabase.com/docs/reference/javascript/initializing) locally by specifying the `-o env` flag. Supported parameters include `JWT_SECRET`, `ANON_KEY`, and `SERVICE_ROLE_KEY`.
0 commit comments