@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 +23 -32
- package/dist/index.js +234 -559
- package/dist/shared/deployment-upgrade.d.ts +2 -0
- package/dist/shared/tools/app-tools.d.ts +1 -1
- package/dist/shared/tools/application-schemas.d.ts +2 -8
- package/dist/shared/tools/application-tools.d.ts +2 -5
- package/dist/shared/tools/deploy-tools.d.ts +0 -8
- package/dist/shared/tools/developer-experience-tools.d.ts +1 -1
- package/dist/shared/tools/frontend-release-control.d.ts +1 -0
- package/dist/shared/tools/project-deployment.d.ts +1 -0
- package/dist/shared/tools/remote-dev-tools.d.ts +1 -1
- package/dist/tool-runtime.js +25 -0
- package/package.json +4 -4
- package/skills/supacloud/SKILL.md +9 -0
- package/skills/supacloud/references/command-map.md +3 -5
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
|
|
387
|
-
|
|
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`
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
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
|
-
|
|
639
|
-
|
|
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
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
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
|