@fugood/bricks-cli 2.26.0-beta.20 → 2.26.0-beta.22

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
@@ -170,9 +170,18 @@ bricks device list [-k keyword] [-j|--json]
170
170
  # Resolve a device name or ID
171
171
  bricks device resolve <query> [-l limit] [-j|--json]
172
172
 
173
- # Get device details
173
+ # Get device details (incl. stored Lock, Activity Log and Local Sync settings)
174
174
  bricks device get <device-id> [-j|--json]
175
175
 
176
+ # Update device settings (only the given settings change; other ENV variables are kept)
177
+ bricks device update <device-id> [-n name] [-d description] [--tags a,b] [--dry-run] [-j|--json]
178
+ bricks device update <device-id> [-e KEY=VALUE ...] [--env-json '{"KEY":"value"}'] [--unset-env KEY ...]
179
+ bricks device update <device-id> [--[no-]activity-log] [--activity-log-filter filter] [--[no-]activity-log-screenshot]
180
+ bricks device update <device-id> [--[no-]local-sync] [--local-sync-priority 0-9] [--[no-]local-sync-dynamic-latency] [--local-sync-latency-offset ms]
181
+ bricks device update <device-id> --lock | --unlock
182
+ # --lock / --unlock run alone. A locked device refuses other updates: unlock it first.
183
+ # ENV changes reach the running app after `bricks device refresh <device-id>` (not automatic).
184
+
176
185
  # Bind a new device with passcode
177
186
  bricks device bind <passcode> [-n device-name]
178
187
  bricks device bind <passcode> [--dry-run] [-j|--json]
@@ -206,8 +215,8 @@ bricks app resolve <query> [-l limit] [-j|--json]
206
215
  # Get application details
207
216
  bricks app get <app-id> [-c|--composed] [-j|--json]
208
217
 
209
- # Update application
210
- bricks app update <app-id> [-n name] [-d description] [-c config-json] [-f config-file] [--validate]
218
+ # Update application (`-t ''` clears the tags; a locked application refuses all changes until --unlock)
219
+ bricks app update <app-id> [-n name] [-d description] [-t tags] [--lock|--unlock] [-c config-json] [-f config-file] [--validate]
211
220
 
212
221
  # Short edit application (requires valid shortIds from app config)
213
222
  bricks app short-edit <app-id> -l '[{"shortId":"<subspace-short-id>","path":"property.name","content":"value"}]'
@@ -215,6 +224,12 @@ bricks app short-edit <app-id> -l '[{"shortId":"<subspace-short-id>","path":"pro
215
224
  # Bind/unbind devices
216
225
  bricks app bind <app-id> [-b device-ids] [-u device-ids]
217
226
  bricks app bind <app-id> [-b device-ids] [-u device-ids] [--dry-run] [-j|--json]
227
+ # Set the viewport of new or bound devices (JSON or a JSON file keyed by device ID).
228
+ # Fields: x, y, width, height, rotate, type (rotate|scroll), rotateType (crop|fit|physical-rotate),
229
+ # scrollType (crop|fit), maintainAspectRatio, forceDeviceRatio, mirrorHorizontal, mirrorVertical, content.
230
+ # Fields not given keep the current viewport, else the root layout (full size at 0,0).
231
+ # A bound device keeps its other settings (automation, cron tests, control toggles, env).
232
+ bricks app bind <app-id> --viewport '{"<device-id>":{"x":0,"y":0,"width":960,"height":540,"rotate":90}}' [--dry-run] [-j|--json]
218
233
 
219
234
  # Trigger automation
220
235
  bricks app trigger <app-id> <test-id> [--play|--stop] [--setup-at-launch] [-g match-group]
@@ -228,6 +243,11 @@ bricks app control-page <app-id> -t <short-edit,canvas-control,device-control,de
228
243
  # Preview a release without publishing
229
244
  bricks app release <app-id> -c <config-path-or-json> [-n name] [--version version] [--changelogs text] [--dry-run] [-j|--json]
230
245
 
246
+ # List release versions, then switch the platform config to one (ID or name).
247
+ # The local CTOR project is not changed. Unreleased changes are dropped: confirm, or pass -y.
248
+ bricks app versions <app-id> [-j|--json]
249
+ bricks app switch-version <app-id> <version-id-or-name> [-y|--yes] [--dry-run] [-j|--json]
250
+
231
251
  # Diagnose a config: schema validation + semantic lint rules
232
252
  # (data-update-race, redundant-rect-overlay, off-grid-frame, out-of-bounds-frame,
233
253
  # wait-async-no-op, missing-result-param, unused-data-node, z-order-cover,