@primitivedotdev/cli
Advanced tools
+4
-1
| { | ||
| "name": "@primitivedotdev/cli", | ||
| "version": "1.15.0", | ||
| "version": "1.16.0", | ||
| "description": "Official Primitive CLI: deploy Primitive Functions, send and inspect mail, manage endpoints, all from the terminal. Wraps the @primitivedotdev/sdk runtime client with one-shot commands.", | ||
@@ -104,2 +104,5 @@ "type": "module", | ||
| }, | ||
| "memories": { | ||
| "description": "Store durable JSON memories by key. Use `primitive memories set|get|delete|search`; pass `--function <function-id>` for function-scoped memories." | ||
| }, | ||
| "org": { | ||
@@ -106,0 +109,0 @@ "description": "Manage org-level (global) resources shared across functions" |
+22
-0
@@ -71,2 +71,4 @@ # @primitivedotdev/cli | ||
| primitive functions logs --id <function-id> | ||
| primitive memories set thread:latest '{"email_id":"em_123"}' | ||
| primitive memories get thread:latest | ||
| primitive deliveries replay --id <delivery-id> | ||
@@ -77,2 +79,22 @@ ``` | ||
| ## Primitive Memories | ||
| Memories are durable JSON key-value records scoped to your org by default. Use | ||
| `--function <function-id>` to read or write the same key under a function scope; | ||
| the value is the function id UUID, not the function name. | ||
| ```bash | ||
| primitive memories set thread:latest '{"email_id":"em_123"}' | ||
| primitive memories set greeting '"hello"' | ||
| primitive memories get thread:latest | ||
| primitive memories search thread: --metadata-only | ||
| primitive memories delete thread:latest | ||
| primitive memories set state '{"step":2}' --function <function-id> | ||
| primitive memories get state --function <function-id> | ||
| ``` | ||
| Values must be valid JSON. Strings must be quoted as JSON strings, so use | ||
| `'"hello"'`, not `hello`. | ||
| ## Recipient routing | ||
@@ -79,0 +101,0 @@ |
Sorry, the diff of this file is too big to display
1333176
4.55%36523
4.93%191
13.02%