@supacloud/cli 0.92.0 → 0.94.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
@@ -13,7 +13,7 @@ are not supported.
13
13
 
14
14
  ## Project Setup and Environment Profiles
15
15
 
16
- For an existing frontend, the shortest path is:
16
+ For an existing SupaCloud application with a frontend, the shortest path is:
17
17
 
18
18
  ```sh
19
19
  supacloud init
@@ -26,6 +26,11 @@ supacloud --env test deploy
26
26
  overwriting an existing project configuration. `env list` and `env check` are
27
27
  local-only, redact credentials, and provide stable JSON with `--json` for CI or
28
28
  AI tooling. The real `.env.supacloud.*` files are added to `.gitignore`.
29
+ Fill in `SUPACLOUD_APPLICATION_ID` and the Management credentials in the
30
+ selected profile, and configure the application's current delivery build.
31
+ Standalone frontend deployment is no longer supported. Upgrade the CLI with
32
+ `npm install -g @supacloud/cli@latest` and upgrade the SupaCloud server together.
33
+ `deploy` checks the server protocol before building or uploading.
29
34
 
30
35
  ## Application Starter
31
36
 
@@ -356,6 +361,7 @@ target configuration:
356
361
 
357
362
  ```json
358
363
  {
364
+ "application": { "id": "orders", "environmentId": "test" },
359
365
  "targets": {
360
366
  "web": {
361
367
  "type": "frontend",
@@ -383,36 +389,24 @@ loopback development origins, with the default `:80` likewise omitted. Use
383
389
 
384
390
  ### Immutable frontend releases
385
391
 
386
- The `frontend` command keeps the existing deployment, Git, and tar.zst
387
- actions and also exposes the immutable prebuilt release workflow:
392
+ The `frontend` command retains release inspection and explicit operator rollback.
393
+ Publish through `supacloud deploy`, which delegates activation to the platform:
388
394
 
389
395
  ```bash
390
396
  supacloud frontend list_releases --ref abc123 --id web
391
397
  supacloud frontend get_active_release --ref abc123 --id web
392
398
  supacloud frontend get_release --ref abc123 --id web --release_id <sha256>
393
- supacloud frontend upload_release --ref abc123 --id web --archive_path ./dist.tar.zst
394
- supacloud frontend activate_release --ref abc123 --id web \
395
- --release_id <sha256> \
396
- --expected_active_release_id absent \
397
- --expected_activation_id absent \
398
- --mutation_id <retry-stable-uuid-v4>
399
399
  supacloud frontend rollback --ref abc123 --id web --release_id <retained-sha256>
400
400
  supacloud frontend rollback --ref abc123 --id web
401
401
  ```
402
402
 
403
- `upload_release` hashes and streams an existing regular tar.zst file without
404
- buffering the full archive. The Management API binds the upload to that SHA-256,
405
- and the CLI reads the immutable release back before reporting success.
406
- `activate_release` uses both the observed active release and activation IDs as
407
- optimistic concurrency tokens, then verifies the authoritative active release.
408
- Use the values returned by `get_active_release`; `absent` is valid only when no
409
- release has been activated. Production uploads, activations and rollback require the
410
- normal exact `--confirm-production <ref>` value, and
411
- `SUPACLOUD_READ_ONLY=true` blocks all mutations.
412
-
413
- `get_active_release` automatically handles older servers returning HTTP 404
414
- with a one-record history page and exact active artifact readback. It never
415
- falls back for authentication, integrity or server failures.
403
+ `deploy_git`, `deploy_upload`, `redeploy`, `upload_release` and `activate_release`
404
+ have been removed from `frontend`. Old invocations fail with an upgrade message,
405
+ without reading an archive or sending a request. Production rollback retains
406
+ the exact `--confirm-production <ref>` gate; read-only mode blocks mutations.
407
+
408
+ `get_active_release` requires the current server endpoint. An HTTP 404 returns
409
+ an upgrade/deployment-existence hint and never falls back to historical inventory.
416
410
  `rollback` without `--release_id` asks SupaCloud for a journal-verified previous
417
411
  immutable release, reads the current CAS identity and generates the mutation ID
418
412
  itself. An explicit `--release_id` remains available for a deliberate rollback
@@ -635,26 +629,23 @@ reporting success. Management endpoint projection is checked before and after.
635
629
 
636
630
  ### Internal release scope controls
637
631
 
638
- Scope files and manual release-controller operations are internal compatibility
639
- surfaces. The project-scoped FA deployment command is a proposed future
640
- contract and is not implemented yet. For current deployments, use the
641
- target-level one-command flow documented in
632
+ Do not generate, rebind or hash scope files as part of a deployment.
633
+ Use an application binding and the unified flow documented in
642
634
  [`docs/cli-guide.md`](../../docs/cli-guide.md), for example:
643
635
 
644
636
  ```bash
645
637
  supacloud deploy
646
- supacloud deploy --target web
647
- supacloud deploy --target api
648
638
  ```
649
639
 
650
640
  FA deployment policy and the boundary between platform-owned operations and
651
641
  FA-owned business features are documented in
652
642
  [`docs/fa-deployment-capability-boundary.md`](../../docs/fa-deployment-capability-boundary.md).
653
643
 
654
- Scope creation, rebinding, inspection and hash calculation are intentionally
655
- undocumented here. They remain available only for internal compatibility,
656
- audit and historical receipt migration. The future project-scoped flow will
657
- not require a scope file once its implementation lands.
644
+ `deploy --target`, `--id`, `--build_command`, `--output_dir`, `--plan`, `--diff`
645
+ and `--dry_run` are removed. Put build settings in `supacloud.json`; use
646
+ `app deploy-plan` for read-only review. Historical project-specific manifests
647
+ and standalone Function targets must move to application delivery configuration.
648
+ The CLI rejects them rather than falling back to a partial Web deployment.
658
649
 
659
650
  The legacy `.env` fallback is unclassified and therefore does not enable the
660
651
  production confirmation gate. Production automation must select a `prod` or