@drip-apex/apex-cli 0.16.0 → 0.18.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/AGENTS.md +2 -0
- package/README.md +32 -2
- package/dist/cli.js +1387 -820
- package/package.json +1 -1
- package/skills/apex-cli/SKILL.md +6 -0
package/AGENTS.md
CHANGED
|
@@ -71,6 +71,8 @@ the first writes: `apex experiments create`, `apex goals create`,
|
|
|
71
71
|
- Stale workspace or filesystem: pull fresh files, reapply your edits, and plan again.
|
|
72
72
|
- Server limit errors: read the JSON error details; Apex includes server-owned limits when available.
|
|
73
73
|
|
|
74
|
+
- Windows text corruption: use UTF-8 console settings; Apex repairs reversible Windows-1252 arguments and warns on stderr for U+FFFD. Set `APEX_ARGV_ENCODING=off` to disable repair.
|
|
75
|
+
|
|
74
76
|
## Platform Shop Administration
|
|
75
77
|
|
|
76
78
|
- `apex admin shops archive <shopId>` archives a shop; headless callers must
|
package/README.md
CHANGED
|
@@ -191,13 +191,15 @@ including every subcommand, argument, option, and alias.
|
|
|
191
191
|
- `apex simulate` — simulate data-layer triggers without emitting events.
|
|
192
192
|
- `apex experiments status [folder-or-id]` — read context, file versions, QA, and handover next steps without writing. Defaults to the current pulled folder.
|
|
193
193
|
- `apex experiments` — create, inspect, operate, and synchronize experiments.
|
|
194
|
+
- `apex results` — inspect, preview, and import historical CSV or JSON test results.
|
|
194
195
|
Use `apex experiments screenshots <id-or-slug>` to force-assign every capture, including control, to its variation server-side for deterministic screenshots. Resume a job that outlives the CLI timeout with `--job <id>`; polling continues without creating another job, and the stored job's devices and variations win, so `--devices`/`--variations` are ignored (the CLI warns). The command attaches terminal jobs to the QA run by default; use `--no-attach-qa` to opt out. Choose devices with `--devices`, filter treatments with `--variations`, and use `--json` for the signed result payload. Use `apex experiments qa evidence` with `--job`, repeatable `--file`, or `--records` to write QA evidence directly.
|
|
196
|
+
- `apex commerce` — look up Shopify products, live prices and costs for commerce drafts.
|
|
195
197
|
- `apex push` — synchronize `.drip.config.ts` with Apex.
|
|
196
198
|
- `apex preview` — open a variation QA preview; `--proxy` returns a `qa_run` receipt. Its `automated_evidence_count` counts the normalized `evidenceRecords` across all evidence kinds, matching the list shown by `apex experiments qa status`.
|
|
197
199
|
- `apex roadmap` — consume approved roadmap ideas and handoffs.
|
|
198
200
|
- `apex harness` — develop AB Test Harness projects with live QA sessions.
|
|
199
201
|
- `apex workspace` — check out, preview, and publish draft workspace files.
|
|
200
|
-
- `apex goals` — manage conversion and revenue goals.
|
|
202
|
+
- `apex goals` — manage conversion and revenue goals. Create/update accept `--page-id <id>` (UUID only, no lookup) or `--page <id-or-key>` (keys need `pages:read` for lookup); use one option.
|
|
201
203
|
- `apex flags` — manage feature flags.
|
|
202
204
|
- `apex personalizations` — manage personalization deliveries.
|
|
203
205
|
- `apex backlog` — manage experiment backlog items.
|
|
@@ -220,7 +222,7 @@ including every subcommand, argument, option, and alias.
|
|
|
220
222
|
### Shop configuration and operations
|
|
221
223
|
|
|
222
224
|
- `apex external-pixels` — manage external pixel snippets.
|
|
223
|
-
- `apex assets` — manage uploaded assets.
|
|
225
|
+
- `apex assets` — manage uploaded assets. Upload returns `delivery_url`; embed that permanent URL in variation code. `public_url` expires after 300 seconds. Delivery is anonymous once the referencing experiment or snippet is published, and resolves through the owning shop's dashboard session or a QA preview before that. Only the absolute https form is recognized as an owned reference; protocol-relative or http forms are not granted at publication.
|
|
224
226
|
- `apex landing-pages` — build landing pages with your own tools, then apply, preview, deploy and roll them back.
|
|
225
227
|
- `apex brand` — manage brand context.
|
|
226
228
|
- `apex shops` — manage shops and active-shop context.
|
|
@@ -238,6 +240,9 @@ command inventory:
|
|
|
238
240
|
| `apex admin customers create` | Create internal, demo or dogfood accounts with a platform user key. Requires `--name`, `--category`, an 8 to 500 character `--reason`, and `--confirm`. |
|
|
239
241
|
| `apex admin shops archive <shopId>` | Archive a shop and disable Apex delivery; use `--force` in non-interactive environments. |
|
|
240
242
|
| `apex admin shops restore <shopId>` | Restore an archived shop while leaving its runtime kill switch unchanged. |
|
|
243
|
+
| `apex admin shops settings list --shop <uuid-or-domain>` | Read every registered per-shop setting, value, override and group with a platform user API key. |
|
|
244
|
+
| `apex admin shops settings get --shop <uuid-or-domain> --key <key>` | Read one setting; unknown keys list the available registry keys. |
|
|
245
|
+
| `apex admin shops settings set --shop <uuid-or-domain> --key <key> --value <value>` | Resolve and pin the shop, then make an audited write. Booleans accept on/off/true/false; numbers must be finite; null clears nullable settings. Sensitive writes require `--confirm`; optional `--reason` and `--expected-version` preserve audit context and concurrency. |
|
|
241
246
|
|
|
242
247
|
## Landing pages built outside Apex
|
|
243
248
|
|
|
@@ -521,6 +526,27 @@ latest/minimum policy is cached for seven days, so offline commands still enforc
|
|
|
521
526
|
known floor. `APEX_NO_UPDATE_CHECK=1` disables the npm lookup and optional update
|
|
522
527
|
notice, but never hides a required server-floor upgrade.
|
|
523
528
|
|
|
529
|
+
### Windows: UTF-8 arguments
|
|
530
|
+
|
|
531
|
+
A Windows console or launcher can decode UTF-8 as Windows-1252, turning `A – B · C`
|
|
532
|
+
into `A – B · C`. On Windows, Apex automatically repairs reversible argument
|
|
533
|
+
values at startup and writes a note to stderr. Set `APEX_ARGV_ENCODING=off` to
|
|
534
|
+
keep arguments unchanged, or `APEX_ARGV_ENCODING=repair` to enable repair on
|
|
535
|
+
another platform.
|
|
536
|
+
|
|
537
|
+
Use UTF-8 in PowerShell:
|
|
538
|
+
|
|
539
|
+
```powershell
|
|
540
|
+
[Console]::InputEncoding = [Console]::OutputEncoding = [Text.Encoding]::UTF8
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
For Git Bash, set `LANG=C.UTF-8` and run `chcp 65001`.
|
|
544
|
+
|
|
545
|
+
A replacement character (`�`, U+FFFD) means the shell already lost a character.
|
|
546
|
+
Apex sends that value as given and warns on stderr. It also warns when stored
|
|
547
|
+
experiment names, descriptions, variation names, or goal names contain U+FFFD.
|
|
548
|
+
These notes leave JSON stdout unchanged.
|
|
549
|
+
|
|
524
550
|
## Usage telemetry
|
|
525
551
|
|
|
526
552
|
Authenticated invocations send a process invocation ID, full command path, explicitly set
|
|
@@ -578,3 +604,7 @@ or `--claim-shop <UUID>`, exclusively. `woo` maps to `woocommerce` and `other` t
|
|
|
578
604
|
`custom`. `--owner <email>` sends an owner invitation and requires a store;
|
|
579
605
|
accounts without a store have no invitations. Output includes the organization ID,
|
|
580
606
|
store ID (or null), invitation results and partial delivery status.
|
|
607
|
+
|
|
608
|
+
## Import past results
|
|
609
|
+
|
|
610
|
+
Upload CSV or JSON exports with `apex results import --file results.csv --dry-run`. Apex suggests column and outcome-value mappings from the file; use repeated `--map 'Column=field'` and `--outcome-value 'Source value=won|lost|inconclusive'` overrides, then pass `--yes` for non-interactive confirmation. Files are inspected and previewed before any rows are written. `--source <name>` applies to the confirmed rows; the preview shows the uploaded file name.
|