@apotech-os/cli 2.1.0 → 2.4.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 +19 -0
- package/dist/index.js +833 -56
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -77,6 +77,25 @@ WOPILO_API_KEY=$SECRET apotech-os deploy --remote production
|
|
|
77
77
|
| `apotech-os app:install --remote <name>` | Install/upgrade a published version |
|
|
78
78
|
| `apotech-os remote add --url <url> --as <name>` | Register a remote |
|
|
79
79
|
| `apotech-os login --remote <name>` | Obtain and store an API key |
|
|
80
|
+
| `apotech-os data objects` | List the objects the explorer can query |
|
|
81
|
+
| `apotech-os data schema <app>/<object>` | Fields, types, required and indexed flags |
|
|
82
|
+
| `apotech-os data list <app>/<object>` | Read rows, with `--filter` / `--sort` / `--json` |
|
|
83
|
+
| `apotech-os data count <app>/<object>` | Count rows matching a filter |
|
|
84
|
+
|
|
85
|
+
The `data` group is strictly read-only. It needs a key **linked to a user**
|
|
86
|
+
(`apotech-os login`, not a key pasted from the admin UI) whose platform role is
|
|
87
|
+
**ADMIN** — it reads raw rows across every app space. Core objects are addressed
|
|
88
|
+
under the reserved slug `_core`:
|
|
89
|
+
|
|
90
|
+
```sh
|
|
91
|
+
apotech-os data list _core/shopify-order --filter '{"name":{"contains":"1001"}}' --json
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
`--filter` / `--search` / `--sort` are the server's own JSON grammar, passed
|
|
95
|
+
through untouched; operators are `eq neq contains ncontains gt lt gte lte empty
|
|
96
|
+
nempty`. `--limit` is a total row count (default 50, max 1000) — the command
|
|
97
|
+
pages for you. `--json` prints the raw `{items, nextCursor}` envelope, which is
|
|
98
|
+
what a script or an agent should read.
|
|
80
99
|
|
|
81
100
|
`app:upgrade` is an alias of `app:install` — an upgrade is just an install at a
|
|
82
101
|
higher version. `app:build` / `app:publish` / `app:install` are the discrete
|