Skip to content

Commit 88b75b1

Browse files
Update cli-usage.md
1 parent 79df769 commit 88b75b1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

docs/cli-usage.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ Validate a prompt for completeness and token safety.
2828
promptstream validate --template "./examples/summary.txt" --var topic=AI
2929
```
3030

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+
3143
Outputs:
3244
```
3345
✅ Valid prompt (37 tokens)

0 commit comments

Comments
 (0)