@omni-commerce/cli 0.10.0 → 0.12.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 +16 -0
- package/dist/index.js +1556 -47
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @omni-commerce/cli
|
|
2
2
|
|
|
3
|
+
CLI 0.12.0 adds `omni catalog query`, durable `omni bulk start/status/results`, and `omni commerce start-verification`.
|
|
4
|
+
|
|
3
5
|
Command-line client for the OmniCommerce API. Generated from the same OpenAPI spec as `@omni-commerce/sdk`.
|
|
4
6
|
|
|
5
7
|
```bash
|
|
@@ -10,7 +12,21 @@ omni products list --q lamp
|
|
|
10
12
|
|
|
11
13
|
Login opens your browser. Sign in, confirm the terminal code, and approve an
|
|
12
14
|
organization to save credentials in `~/.omni/config.json` (mode `0600`).
|
|
15
|
+
Browser login acts as your user with your current role and store permissions,
|
|
16
|
+
including campaign approvals assigned to you. Ordinary API keys act as automation.
|
|
13
17
|
Use `omni auth login --no-browser` to open the printed URL yourself, or
|
|
14
18
|
`omni auth login --api-key omni_sk_...` to save an existing key for automation.
|
|
15
19
|
|
|
16
20
|
See the [CLI docs](https://docs.omnicommerce.sg/cli/omni-cli).
|
|
21
|
+
|
|
22
|
+
Edit campaign promotions and windows with typed flags:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
omni campaigns update-offers --campaign-id C --expected-revision 4 --offer-ids OFFER_A,OFFER_B --discount-value 15
|
|
26
|
+
omni campaigns update-windows --campaign-id C --expected-revision 4 --window-ids WINDOW_A --ends-at 2027-08-04T00:00:00+08:00
|
|
27
|
+
omni products list --detail summary --include-summary false
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Campaign updates preserve omitted fields. Running changes remain proposals until
|
|
31
|
+
the named approver approves them. Use `--help`, `--schema`, and `--dry-run` to
|
|
32
|
+
inspect a command. Product `--detail full` preserves the existing list response.
|