@primitivedotdev/cli 0.26.4 → 0.28.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.
Files changed (3) hide show
  1. package/README.md +21 -4
  2. package/dist/oclif/index.js +1174 -111
  3. package/package.json +12 -6
package/README.md CHANGED
@@ -21,15 +21,32 @@ This package wraps the [@primitivedotdev/sdk](https://www.npmjs.com/package/@pri
21
21
  export PRIMITIVE_API_KEY=prim_...
22
22
 
23
23
  primitive whoami
24
- primitive functions:init my-fn
24
+ primitive functions init my-fn
25
25
  cd my-fn && npm install && npm run build
26
- primitive functions:deploy --name my-fn --file ./dist/handler.js
26
+ primitive functions deploy --name my-fn --file ./dist/handler.js
27
27
 
28
28
  primitive send --to alice@example.com --body "Hello!" --wait
29
- primitive emails:latest --limit 5
29
+ primitive emails latest --limit 5
30
30
  ```
31
31
 
32
- Run `primitive --help` for the full command list. Per-command help (`primitive functions:deploy --help`) carries enough detail that an agent can compose any operation without leaving the terminal.
32
+ Run `primitive --help` for the full command list. Per-command help (`primitive functions deploy --help`) carries enough detail that an agent can compose any operation without leaving the terminal.
33
+
34
+ ## Command style
35
+
36
+ Use task-oriented commands for normal workflows:
37
+
38
+ ```bash
39
+ primitive send --to alice@example.com --body "Hello"
40
+ primitive reply --id <inbound-email-id> --body "Thanks"
41
+ primitive emails list
42
+ primitive emails get --id <inbound-email-id>
43
+ primitive sent list
44
+ primitive domains list
45
+ primitive functions logs --id <function-id>
46
+ primitive deliveries replay --id <delivery-id>
47
+ ```
48
+
49
+ Generated API commands remain available for compatibility and full schema parity, for example `primitive emails:list-emails` and `primitive sending:reply-to-email`.
33
50
 
34
51
  ## Migrating from `@primitivedotdev/sdk` CLI
35
52