@supacloud/cli 0.48.2 → 0.49.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 +66 -0
- package/dist/index.js +1295 -141
- package/package.json +2 -2
- package/skills/supacloud-cli/references/command-map.md +4 -1
package/README.md
CHANGED
|
@@ -5,6 +5,33 @@ Project-scoped CLI for SupaCloud users.
|
|
|
5
5
|
This package exposes only `supacloud-cli`. The bare `supacloud` name is reserved
|
|
6
6
|
for the compiled server binary installed at `/usr/local/bin/supacloud`.
|
|
7
7
|
|
|
8
|
+
## Application Starter
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
supacloud-cli app init --root ./orders --name orders
|
|
12
|
+
cd orders
|
|
13
|
+
bun install
|
|
14
|
+
bun run check
|
|
15
|
+
bun run dev
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
The initializer needs no platform credentials and never overwrites existing
|
|
19
|
+
projects. It includes typed state declarations, static AOP, strict compilation,
|
|
20
|
+
an Elysia service, memory governance tests and explicit development/test/staging/
|
|
21
|
+
production environment wrappers. The compiler is a development dependency.
|
|
22
|
+
The demo binds to loopback and cannot run in staging/production. Production
|
|
23
|
+
identity, persistence and durable governance must be supplied by the application.
|
|
24
|
+
See [Application Starter](../../docs/application-starter.md) for the full contract.
|
|
25
|
+
|
|
26
|
+
`app compile` and `app check` resolve `supacloud.config.ts` from `--root` (the
|
|
27
|
+
project directory). `app check` runs the complete compiler and artifact-drift
|
|
28
|
+
gate without writing; compile once and commit `generated/` before using it in CI.
|
|
29
|
+
Failed compilation preserves the previous generated artifacts.
|
|
30
|
+
Without a config file, an explicit `--root` retains the legacy source-directory
|
|
31
|
+
behavior.
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
8
35
|
Install:
|
|
9
36
|
|
|
10
37
|
```bash
|
|
@@ -240,6 +267,45 @@ query parameters and accepts only its authoritative JSON boolean `false`
|
|
|
240
267
|
read-back. The fixture binding comes from the validated disable receipt before
|
|
241
268
|
reporting success. Management endpoint projection is checked before and after.
|
|
242
269
|
|
|
270
|
+
### Release scope rebinding and inspection
|
|
271
|
+
|
|
272
|
+
Release scopes bind deployment manifests (functions, migrations, web assets) to
|
|
273
|
+
an exact 40-character base commit SHA. When upstream `main` advances with
|
|
274
|
+
unrelated fixes, `release scope_rebind` rebinds release manifests to the updated
|
|
275
|
+
base commit without manual JSON editing or risk of dirtying non-manifest fields.
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
# Rebind a single scope manifest to latest git main (or origin/main)
|
|
279
|
+
supacloud-cli release scope_rebind --file supacloud/fa/release-scopes/20260907-intake-p1-production.json
|
|
280
|
+
|
|
281
|
+
# Rebind multiple files (e.g. production and staging together)
|
|
282
|
+
supacloud-cli release scope_rebind --files "20260907-intake-p1-production.json,20260907-intake-p1-staging.json"
|
|
283
|
+
|
|
284
|
+
# Rebind all scopes matching a task ID or filename prefix in standard directories
|
|
285
|
+
supacloud-cli release scope_rebind --task 20260907-intake-p1
|
|
286
|
+
|
|
287
|
+
# Specify an explicit base commit SHA or git ref
|
|
288
|
+
supacloud-cli release scope_rebind --task 20260907-intake-p1 --base_commit origin/main
|
|
289
|
+
|
|
290
|
+
# Preview changes without modifying files
|
|
291
|
+
supacloud-cli release scope_rebind --task 20260907-intake-p1 --dry_run
|
|
292
|
+
|
|
293
|
+
# Inspect scope status, SHA-256 hash, and alignment with git HEAD / origin/main
|
|
294
|
+
supacloud-cli release scope_inspect --file 20260907-intake-p1-production.json
|
|
295
|
+
|
|
296
|
+
# Scaffold a new canonical release scope
|
|
297
|
+
supacloud-cli release scope_create \
|
|
298
|
+
--file supacloud/fa/release-scopes/20260907-intake-p1.json \
|
|
299
|
+
--task FA-INTAKE-P1 \
|
|
300
|
+
--ref abc123 \
|
|
301
|
+
--functions "fa-api,fa-worker" \
|
|
302
|
+
--migrations "20260907120000_init"
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
Scope actions run locally without requiring Management API credentials. Files
|
|
306
|
+
are formatted canonically with 2 spaces and sorted keys, and the authoritative
|
|
307
|
+
`scope_sha256` checksum is recalculated automatically.
|
|
308
|
+
|
|
243
309
|
The legacy `.env` fallback is unclassified and therefore does not enable the
|
|
244
310
|
production confirmation gate. Production automation must select a `prod` or
|
|
245
311
|
`production` profile, or set `SUPACLOUD_ENV=production` together with a complete
|