The Cruel CLI provides a powerful command-line interface for chaos testing your APIs and services. Run tests, benchmarks, and predefined scenarios directly from your terminal.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/visible/cruel/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Install Cruel globally to use the CLI:Quick Start
Available Commands
test
Test endpoints with chaos injection
benchmark
Benchmark endpoint performance
scenarios
Run predefined chaos scenarios
stats
View chaos testing statistics
Global Options
These options work across all commands:Failure rate between 0 and 1 (e.g., 0.1 = 10% failure rate)
Delay in milliseconds or min-max range (e.g., 100 or “100-500”)
Timeout rate between 0 and 1 (e.g., 0.05 = 5% timeout rate)
Use a predefined chaos configuration presetAvailable presets: development, staging, production, harsh, nightmare, apocalypse
Number of retry attempts for failed requests
Circuit breaker failure threshold before opening circuit
Chaos Presets
Cruel includes several built-in presets for different testing scenarios:- development - Light chaos for local development
- staging - Moderate chaos for staging environments
- production - Realistic production chaos patterns
- harsh - High chaos for stress testing
- nightmare - Extreme chaos conditions
- apocalypse - Maximum chaos for worst-case scenarios
Usage Examples
Output Format
The CLI provides visual feedback with colored output:.- Successful request (green)X- Failed request (red)T- Timed out request (yellow)
Statistics
View accumulated chaos statistics:- Total calls made
- Number of failures injected
- Number of timeouts
- Number of delays
- Corrupted responses
- Rate limited requests
- Streams cut