@drip-apex/apex-cli 0.2.0 → 0.3.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 CHANGED
@@ -20,7 +20,21 @@ Use `apex` as the canonical command name. `drip` is a compatibility alias.
20
20
  - JSON output is a stable contract: top level is `{ ok, version, command, data | error }`.
21
21
  - Diagnostics, prompts, progress, and update notices go to stderr.
22
22
  - Do not parse human tables. Use `apex schema --json` first if you need flags.
23
- - Keep command names exact. Do not infer fuzzy suggestions.
23
+ - Keep command names exact. Do not infer or guess names from the CLI's
24
+ "did you mean" hints — those are stderr diagnostics for humans; machine
25
+ callers resolve names via `apex schema --json`.
26
+
27
+
28
+ ## Zero-Experiment Shop Bootstrap
29
+
30
+ CLI-only bootstrap is supported for a fresh shop before any experiments exist.
31
+ External tools should prove identity with the user credential only: run
32
+ `apex org get --json`, then `apex shops get <shop-id> --json` (or
33
+ `apex shops list --json` to select the shop). Do not invent separate identity
34
+ proofs or infer access from experiment reads on an empty shop. After the user
35
+ credential confirms the organization and shop, the shop credential can perform
36
+ the first writes: `apex experiments create`, `apex goals create`,
37
+ `apex workspace checkout`, and `apex workspace publish`.
24
38
 
25
39
  ## Exit Codes
26
40
 
package/README.md CHANGED
@@ -28,12 +28,17 @@ DRIP_API_KEY=apx_your_key_here apex experiments list --json
28
28
 
29
29
  ```bash
30
30
  apex experiments list
31
- apex experiments pull <id-or-slug> --dir ./my-test
31
+ apex experiments list --include-archived
32
+ apex experiments create --name "Redirect test" --type redirect \
33
+ --source-url "https://shop.example/products/source" \
34
+ --destination "https://landing.example/products/treatment"
35
+ apex experiments pull <id-or-slug> --out ./my-test
32
36
  apex experiments plan ./my-test --json
33
37
  apex experiments apply ./my-test --json
34
38
  apex experiments qa status ./my-test --json
39
+ apex experiments screenshots <id-or-slug> --out ./screenshots
35
40
 
36
- apex workspace checkout <experimentId> --variation <variationId> --dir ./workspace
41
+ apex workspace checkout <experimentId> --variation <variationId> --out ./workspace
37
42
  apex workspace dev ./workspace --no-open
38
43
  apex workspace publish ./workspace
39
44
 
@@ -43,6 +48,72 @@ apex schema --json
43
48
 
44
49
  Use `apex` as the canonical command name. `drip` is a compatibility alias.
45
50
 
51
+ `apex experiments list` hides archived experiments by default. Pass
52
+ `--include-archived` to include them; archived rows display their archive date
53
+ when the API provides `archived_at`.
54
+
55
+ ## Command index
56
+
57
+ Use `apex schema --json` to emit the complete machine-readable command surface,
58
+ including every subcommand, argument, option, and alias.
59
+
60
+ ### Authentication and account
61
+
62
+ - `apex login` — authenticate with a shop or user API key.
63
+ - `apex logout` — remove stored credentials.
64
+ - `apex whoami` — inspect the current credential and its validity.
65
+ - `apex account` — manage the current user profile.
66
+ - `apex keys` — manage shop API keys.
67
+ - `apex org` — inspect and manage the organization.
68
+ - `apex team` — manage organization members and invitations.
69
+
70
+ ### Experiments and delivery
71
+
72
+ - `apex experiments` — create, inspect, operate, and synchronize experiments.
73
+ Use `apex experiments screenshots <id-or-slug>` to force-assign every capture, including control, to its variation server-side for deterministic screenshots; choose devices with `--devices`, filter treatments with `--variations`, and use `--json` for the signed result payload.
74
+ - `apex push` — synchronize `.drip.config.ts` with Apex.
75
+ - `apex preview` — open a variation QA preview.
76
+ - `apex roadmap` — consume approved roadmap ideas and handoffs.
77
+ - `apex harness` — develop AB Test Harness projects with live QA sessions.
78
+ - `apex workspace` — check out, preview, and publish draft workspace files.
79
+ - `apex goals` — manage conversion and revenue goals.
80
+ - `apex flags` — manage feature flags.
81
+ - `apex personalizations` — manage personalization deliveries.
82
+ - `apex backlog` — manage experiment backlog items.
83
+ - `apex signals` — inspect research and opportunity signals.
84
+
85
+ ### Analytics, targeting, and tracking
86
+
87
+ - `apex tracking` — diagnose storefront tracking.
88
+ - `apex environments` — inspect delivery environments.
89
+ - `apex analytics` — read shop analytics.
90
+ - `apex pages` — manage page targeting resources.
91
+ - `apex segments` — manage audience segments.
92
+ - `apex exclusion-groups` — manage mutually exclusive experiment groups.
93
+ - `apex targeting` — inspect targeting evaluation and coverage.
94
+ - `apex audit-log` — inspect auditable account activity.
95
+ - `apex inbox` — use the operator inbox.
96
+
97
+ ### Shop configuration and operations
98
+
99
+ - `apex external-pixels` — manage external pixel snippets.
100
+ - `apex assets` — manage uploaded assets.
101
+ - `apex landing-pages` — discover landing pages.
102
+ - `apex brand` — manage brand context.
103
+ - `apex sos` — run operational diagnostics.
104
+ - `apex shops` — manage shops and active-shop context.
105
+ - `apex skills` — inspect agent skill guidance.
106
+ - `apex admin` — run authorized administrative operations.
107
+ - `apex schema` — emit the machine-readable CLI schema.
108
+
109
+ ## Which local format am I in?
110
+
111
+ Inspect the marker under `.apex/`: `experiment-filesystem.json` means the
112
+ folder belongs to `apex experiments pull/plan/apply`, while `session.json`
113
+ means it is an `apex workspace checkout/status/publish` workspace. Keep the two
114
+ formats in different folders; when the wrong command is run, Apex points to the
115
+ matching status command.
116
+
46
117
  ## Full documentation
47
118
 
48
119
  Read the CLI reference on the docs site: