API Reference4 min read•Updated July 2026
Command Line Interface (CLI)
Compress prompts, run batch telemetry, and calculate cost ROI from terminal.
CLI Command Reference
Below are standard terminal commands supported by `llmslim`:
terminal
# Compress a prompt file and save output
llmslim compress system_prompt.txt --ratio 0.5 --output slim_prompt.txt
# Analyze content density profile
llmslim analyze document.md
# Estimate annual token cost savings
llmslim cost --original-tokens 10000000 --compressed-tokens 4000000 --model gpt-4oFrequently Asked Questions
Can I pipe CLI output directly to curl or jq?
Yes. Use the --quiet or -q flag to output raw compressed text straight to stdout.