@fugood/bricks-cli 2.26.0-beta.17 → 2.26.0-beta.19
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 +36 -1
- package/lib/1010.js +1 -1
- package/lib/1178.js +1 -1
- package/lib/1708.js +3 -3
- package/lib/2486.js +1 -1
- package/lib/6632.js +1 -1
- package/lib/6818.js +1 -1
- package/lib/7494.js +12 -3
- package/lib/907.js +314 -81
- package/lib/9320.js +23 -2
- package/lib/9439.js +2 -2
- package/lib/devtools.js +1 -1
- package/lib/index.js +90 -80
- package/lib/lib.js +334 -92
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -217,7 +217,13 @@ bricks app bind <app-id> [-b device-ids] [-u device-ids]
|
|
|
217
217
|
bricks app bind <app-id> [-b device-ids] [-u device-ids] [--dry-run] [-j|--json]
|
|
218
218
|
|
|
219
219
|
# Trigger automation
|
|
220
|
-
bricks app trigger <app-id> <test-id> [--play|--stop] [--setup-at-launch]
|
|
220
|
+
bricks app trigger <app-id> <test-id> [--play|--stop] [--setup-at-launch] [-g match-group]
|
|
221
|
+
|
|
222
|
+
# Application Control pages (Runtime Editor, Canvas Control, Device Control):
|
|
223
|
+
# issue a page token and print the URL of each page (needs an OAuth login: `bricks auth login`);
|
|
224
|
+
# --no-token prints the sign-in URLs only and works with any login
|
|
225
|
+
bricks app control-page <app-id> -t <short-edit,canvas-control,device-control,device-control-create-only> [--token-name name] [--expires-in days] [-e KEY=VALUE] [--no-token] [--dry-run] [-j|--json]
|
|
226
|
+
# The printed URL is <controller>/<page>.html?workspace_secret=…&application_id=…; set BRICKS_CONTROLLER_URL to override the controller origin.
|
|
221
227
|
|
|
222
228
|
# Preview a release without publishing
|
|
223
229
|
bricks app release <app-id> -c <config-path-or-json> [-n name] [--version version] [--changelogs text] [--dry-run] [-j|--json]
|
|
@@ -279,6 +285,32 @@ bricks group refresh <group-id> [--dry-run] [-j|--json]
|
|
|
279
285
|
bricks group monitor <group-id> [-i interval-seconds]
|
|
280
286
|
```
|
|
281
287
|
|
|
288
|
+
### Blueprints
|
|
289
|
+
|
|
290
|
+
A Blueprint is a workspace-level map of a site: its applications, modules, devices, Data Bank
|
|
291
|
+
properties and Media Flow boxes as nodes, with role cards and the edges between them. The CLI
|
|
292
|
+
reads Blueprints; edit them in CTOR. These commands need the `query_blueprint` token permission.
|
|
293
|
+
|
|
294
|
+
```bash
|
|
295
|
+
# List blueprints (name, node count, revision, Orchestrator run state)
|
|
296
|
+
bricks blueprint list [-k keyword] [-j|--json]
|
|
297
|
+
|
|
298
|
+
# Resolve a blueprint name or ID
|
|
299
|
+
bricks blueprint resolve <query> [-l limit] [-j|--json]
|
|
300
|
+
|
|
301
|
+
# Get blueprint details (overview, counts, run state, referenced entities with no node)
|
|
302
|
+
bricks blueprint get <blueprint-id> [-j|--json]
|
|
303
|
+
|
|
304
|
+
# Nodes with authored edges and edges derived from the workspace (bindings, used modules, ...)
|
|
305
|
+
bricks blueprint graph <blueprint-id> [-j|--json]
|
|
306
|
+
|
|
307
|
+
# Nodes grouped by kind; removed or moved entities are flagged as missing
|
|
308
|
+
bricks blueprint members <blueprint-id> [-j|--json]
|
|
309
|
+
|
|
310
|
+
# Print the projection text that the Blueprint Orchestrator gets as its context
|
|
311
|
+
bricks blueprint projection <blueprint-id>
|
|
312
|
+
```
|
|
313
|
+
|
|
282
314
|
### Media Flow
|
|
283
315
|
|
|
284
316
|
Media Flow commands require:
|
|
@@ -346,6 +378,9 @@ Notes:
|
|
|
346
378
|
- When no `-v/--value-file` is given, `set` keeps the current value (useful to change only tags or the definition).
|
|
347
379
|
- `-v` parses the input as JSON and falls back to a plain string (`-v '{"a":1}'` → object, `-v hello` → string).
|
|
348
380
|
- Revoking the auto-provisioned `manager` / `used-by-device` keys rotates them instead of deleting them.
|
|
381
|
+
- Space key values come back masked (last 4 characters) unless the login may read them: the
|
|
382
|
+
workspace owner, a role with `update-workspace`, or a token with the `manage_devtools` scope.
|
|
383
|
+
A key the login creates is always returned in full, and a masked key revokes by its full value.
|
|
349
384
|
- The Data Bank endpoint is derived from the configured BRICKS endpoint
|
|
350
385
|
(prod → `bank.bricks.tools`, beta → `bank-beta.bricks.tools`, dev → `localhost:8080`).
|
|
351
386
|
- Environment overrides for CI / custom setups: `BRICKS_BANK_SPACENAME` + `BRICKS_BANK_SPACEKEY`
|