@primitivedotdev/cli
Advanced tools
+4
-1
| { | ||
| "name": "@primitivedotdev/cli", | ||
| "version": "0.31.2", | ||
| "version": "0.31.3", | ||
| "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.", | ||
@@ -49,2 +49,5 @@ "type": "module", | ||
| }, | ||
| "signin": { | ||
| "description": "Sign in to an existing Primitive account" | ||
| }, | ||
| "sent": { | ||
@@ -51,0 +54,0 @@ "description": "Short aliases for outbound sent-email history: `primitive sent list` and `primitive sent get`." |
+9
-2
@@ -21,4 +21,3 @@ # @primitivedotdev/cli | ||
| ```bash | ||
| export PRIMITIVE_API_KEY=prim_... | ||
| primitive signin | ||
| primitive whoami | ||
@@ -36,2 +35,10 @@ primitive functions templates | ||
| ## Authentication | ||
| Use `primitive signin` for existing accounts. It defaults to browser approval; `primitive signin browser` is the explicit form and `primitive login` remains available for compatibility. | ||
| Use `primitive signin otp <email> --signup-code <code> --accept-terms`, then `primitive signin otp confirm <email> <code>` for email-code sign-in. | ||
| Use `primitive signup <email>` for new account creation, then `primitive signup confirm <email> <code>` with the emailed verification code. Non-interactive signup is available with `--signup-code` and `--accept-terms`. | ||
| ## Command style | ||
@@ -38,0 +45,0 @@ |
Sorry, the diff of this file is too big to display
659556
1.22%17729
1.05%75
10.29%