@primitivedotdev/cli 0.26.4 → 0.29.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 +24 -4
- package/dist/oclif/index.js +2629 -212
- package/package.json +12 -6
package/README.md
CHANGED
|
@@ -21,15 +21,35 @@ 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
|
|
24
|
+
primitive functions templates
|
|
25
|
+
primitive functions init my-fn
|
|
25
26
|
cd my-fn && npm install && npm run build
|
|
26
|
-
primitive functions
|
|
27
|
+
primitive functions deploy --name my-fn --file ./dist/handler.js
|
|
27
28
|
|
|
28
29
|
primitive send --to alice@example.com --body "Hello!" --wait
|
|
29
|
-
primitive emails
|
|
30
|
+
primitive emails latest --limit 5
|
|
30
31
|
```
|
|
31
32
|
|
|
32
|
-
Run `primitive --help` for the full command list. Per-command help (`primitive functions
|
|
33
|
+
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.
|
|
34
|
+
|
|
35
|
+
## Command style
|
|
36
|
+
|
|
37
|
+
Use task-oriented commands for normal workflows:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
primitive send --to alice@example.com --body "Hello"
|
|
41
|
+
primitive reply --id <inbound-email-id> --body "Thanks"
|
|
42
|
+
primitive emails list
|
|
43
|
+
primitive emails get --id <inbound-email-id>
|
|
44
|
+
primitive sent list
|
|
45
|
+
primitive domains list
|
|
46
|
+
primitive functions templates
|
|
47
|
+
primitive functions init my-fn --template email-reply
|
|
48
|
+
primitive functions logs --id <function-id>
|
|
49
|
+
primitive deliveries replay --id <delivery-id>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Generated API commands remain available for compatibility and full schema parity, for example `primitive emails:list-emails` and `primitive sending:reply-to-email`.
|
|
33
53
|
|
|
34
54
|
## Migrating from `@primitivedotdev/sdk` CLI
|
|
35
55
|
|