We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79df769 commit 88b75b1Copy full SHA for 88b75b1
1 file changed
docs/cli-usage.md
@@ -28,6 +28,18 @@ Validate a prompt for completeness and token safety.
28
promptstream validate --template "./examples/summary.txt" --var topic=AI
29
```
30
31
+---
32
+
33
+## 📊 Analyze
34
35
+The **`analyze`** command estimates token usage and cost for a given prompt.
36
37
+```bash
38
+promptstream analyze --template "<path or text>" [--var key=value ...] [--model <modelId>] [--output json|table]
39
+```
40
41
42
43
Outputs:
44
45
✅ Valid prompt (37 tokens)
0 commit comments