@amaster.ai/runtime-cli 1.1.13-beta.0 → 1.1.14-beta.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 +29 -0
- package/dist/cli.cjs +398 -220
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +398 -220
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +398 -220
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +398 -220
- package/dist/index.js.map +1 -1
- package/dist/skill/SKILL.md +29 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -173,6 +173,15 @@ amaster entity bulk-delete default products --app myapp --ids 1,2,3
|
|
|
173
173
|
|
|
174
174
|
# Bulk delete by JSON array
|
|
175
175
|
amaster entity bulk-delete default products --app myapp --ids '[1,2,3]'
|
|
176
|
+
|
|
177
|
+
# Discover runtime datasources and models
|
|
178
|
+
amaster model datasources --app myapp
|
|
179
|
+
|
|
180
|
+
# Fetch CREATE TABLE statements for one datasource
|
|
181
|
+
amaster model table-schema source-123 --app myapp
|
|
182
|
+
|
|
183
|
+
# Limit schema output to selected tables
|
|
184
|
+
amaster model table-schema source-123 --app myapp --tables products,categories
|
|
176
185
|
```
|
|
177
186
|
|
|
178
187
|
For `amaster entity list`, explicit options such as `--page`, `--page-size`, `--fields`, `--relations`, and `--order-by` override the same keys inside `--query`. If you omit `--page` and `--page-size`, the CLI does not inject pagination defaults and forwards only the parameters you provided.
|
|
@@ -271,6 +280,17 @@ amaster entity bulk-delete <namespace> <entity> [options]
|
|
|
271
280
|
--ids <ids> # Comma-separated IDs, JSON array, or @file
|
|
272
281
|
```
|
|
273
282
|
|
|
283
|
+
### Model Discovery
|
|
284
|
+
|
|
285
|
+
```bash
|
|
286
|
+
amaster model datasources [options]
|
|
287
|
+
--app <app-code> # App code (uses default if not specified)
|
|
288
|
+
|
|
289
|
+
amaster model table-schema <source-id> [options]
|
|
290
|
+
--app <app-code> # App code (uses default if not specified)
|
|
291
|
+
--tables <tables> # Comma-separated table names, JSON array, or @file
|
|
292
|
+
```
|
|
293
|
+
|
|
274
294
|
#### Entity Parameter Examples
|
|
275
295
|
|
|
276
296
|
```bash
|
|
@@ -340,6 +360,15 @@ amaster entity bulk-update default products --app myapp \
|
|
|
340
360
|
|
|
341
361
|
# bulk-delete --ids
|
|
342
362
|
amaster entity bulk-delete default products --app myapp --ids 1,2,3
|
|
363
|
+
|
|
364
|
+
# model datasources
|
|
365
|
+
amaster model datasources --app bleulig7o
|
|
366
|
+
|
|
367
|
+
# model table-schema
|
|
368
|
+
amaster model table-schema source-ae0rbo4tg9a8 --app bleulig7o
|
|
369
|
+
|
|
370
|
+
# model table-schema --tables
|
|
371
|
+
amaster model table-schema source-ae0rbo4tg9a8 --app bleulig7o --tables products,categories
|
|
343
372
|
```
|
|
344
373
|
|
|
345
374
|
### BPM (Business Process Management)
|