@supacloud/cli 0.65.1 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -771,6 +771,7 @@ supacloud-cli lite migrate --project_dir .
|
|
|
771
771
|
supacloud-cli lite status --project_dir .
|
|
772
772
|
supacloud-cli lite db_diff --project_dir . --file add_accounts
|
|
773
773
|
supacloud-cli lite db_pull --project_dir . --file remote_schema
|
|
774
|
+
supacloud-cli lite db_pull --project_dir . --file reviewed_schema --baseline
|
|
774
775
|
supacloud-cli lite gen_types --project_dir . --output src/database.types.ts
|
|
775
776
|
supacloud-cli lite snapshot_create --project_dir . --output backups/lite.tar.gz
|
|
776
777
|
supacloud-cli lite doctor --project_dir . --json
|
|
@@ -788,6 +789,13 @@ adapter. Lite actions are local-only, so Management API context and project
|
|
|
788
789
|
refs are not required. The `supabase` module remains the official CLI adapter;
|
|
789
790
|
use it for upstream Supabase CLI actions and Management-backed remote pushes.
|
|
790
791
|
|
|
792
|
+
Lite `db_pull` writes a non-executable draft directory by default and never marks
|
|
793
|
+
the live delta applied implicitly. `--baseline` is only for a reviewed change
|
|
794
|
+
already present in that database. Diff/pull require matching applied migration
|
|
795
|
+
history, inspect live state without applying migrations, and verify supported
|
|
796
|
+
DDL in a disposable shadow. Unsupported drift fails closed. Preserve any
|
|
797
|
+
`.sql.pending` baseline file and inspect the ledger before recovery.
|
|
798
|
+
|
|
791
799
|
## Official Supabase CLI adapter
|
|
792
800
|
|
|
793
801
|
The `supabase` command group is a thin, allowlisted adapter around the official
|
|
@@ -796,6 +804,7 @@ SupaCloud credentials:
|
|
|
796
804
|
|
|
797
805
|
```bash
|
|
798
806
|
supacloud-cli supabase version
|
|
807
|
+
supacloud-cli supabase init --workdir .
|
|
799
808
|
supacloud-cli supabase migration_new --name add_accounts
|
|
800
809
|
supacloud-cli supabase db_diff --schema public --name add_accounts
|
|
801
810
|
supacloud-cli supabase db_reset --no_seed
|
|
@@ -822,7 +831,42 @@ supacloud-cli supabase push --ref abc123 --dir supabase/migrations
|
|
|
822
831
|
`push` uses only `SUPACLOUD_API_TOKEN` for the SupaCloud Management API. That
|
|
823
832
|
token, upstream access tokens, database passwords, and secret/key environment
|
|
824
833
|
variables are removed from the official CLI child process, and command output
|
|
825
|
-
is redacted.
|
|
834
|
+
is redacted. Upstream access-token forwarding is separately opt-in through
|
|
835
|
+
`SUPACLOUD_FORWARD_SUPABASE_ACCESS_TOKEN=1`. The child can still read the official
|
|
836
|
+
CLI's saved login or project dotenv files; this is not a credential sandbox.
|
|
837
|
+
|
|
838
|
+
### Declarative schemas, configuration and local stacks
|
|
839
|
+
|
|
840
|
+
These commands require a compatible official CLI. Pin and check its version;
|
|
841
|
+
the adapter does not install a new CLI or replace an existing schema authority.
|
|
842
|
+
`init` preserves existing configuration and inherits the installed CLI's defaults.
|
|
843
|
+
|
|
844
|
+
```bash
|
|
845
|
+
supacloud-cli supabase db_schema_declarative_generate --db_url "$SUPACLOUD_DB_URL"
|
|
846
|
+
supacloud-cli supabase db_schema_declarative_sync --name add_accounts --strict_coverage
|
|
847
|
+
supacloud-cli supabase db_diff --diff_engine pg-delta --name add_accounts
|
|
848
|
+
supacloud-cli supabase config_pull --ref upstream-project
|
|
849
|
+
supacloud-cli supabase config_pull --ref upstream-project --dry_run=false --yes
|
|
850
|
+
supacloud-cli supabase stack_start --workdir .
|
|
851
|
+
supacloud-cli supabase stack_status --workdir .
|
|
852
|
+
SUPACLOUD_ENABLE_NATIVE_STACK=1 supacloud-cli supabase stack_prepare --workdir . --runtime native
|
|
853
|
+
SUPACLOUD_ENABLE_NATIVE_STACK=1 supacloud-cli supabase stack_start --workdir . --runtime native --preparation on-demand
|
|
854
|
+
supacloud-cli supabase stack_stop --workdir .
|
|
855
|
+
supacloud-cli supabase stack_destroy --workdir . --confirm_destroy --yes
|
|
856
|
+
```
|
|
857
|
+
|
|
858
|
+
Declarative sync generates without applying unless `--apply` is explicit.
|
|
859
|
+
Generate uses the supplied DSN or the upstream linked project; overwriting schema
|
|
860
|
+
files requires `--overwrite`. Declarative commands default to experimental mode,
|
|
861
|
+
which can be omitted with `--experimental=false`.
|
|
862
|
+
|
|
863
|
+
Config pull reads the official Supabase control plane, defaults to dry-run, and
|
|
864
|
+
requires the configured context's project ref when present. It is not a
|
|
865
|
+
SupaCloud settings migration. Native stack mode is alpha, off by default and
|
|
866
|
+
requires the environment opt-in above; start/prepare otherwise use Docker
|
|
867
|
+
explicitly. Destruction needs both confirmations. Upstream owns per-directory
|
|
868
|
+
state and ports. Full boundaries and acceptance gates are documented in
|
|
869
|
+
`docs/select-agent-backend.md` in the source repository.
|
|
826
870
|
|
|
827
871
|
`push` requires a resolved project ref; pass `--ref` explicitly or set
|
|
828
872
|
`SUPACLOUD_PROJECT_REF`. Relative migration directories are resolved against
|