CLI Reference¶
Auto-generated reference for all rampa commands.
Command: rampa¶
Rampa — Python load testing framework.
Usage¶
usage: rampa [-h] [--version] {run,check,inspect,doctor} ...
Run Examples¶
$ rampa run load_test.py
$ rampa run load_test.py --vus 20 --duration 1m
$ rampa run load_test.py --scenario smoke
$ rampa run load_test.py --out results.json --quiet
Check Examples¶
$ rampa check load_test.py
Inspect Examples¶
$ rampa inspect load_test.py
$ rampa inspect load_test.py --format json
Doctor Examples¶
$ rampa doctor
Options¶
- --version, -V¶
show program's version number and exit
Sub-commands
run
run a load test script
Execute a load test script.
Examples¶
$ rampa run load_test.py
$ rampa run load_test.py --vus 20 --duration 1m
$ rampa run load_test.py --scenario smoke
Output¶
$ rampa run load_test.py --out results.json --quiet
$ rampa run load_test.py --event-log events.jsonl
Usage¶
usage: rampa run [-h] [--vus VUS] [--duration DURATION] [--scenario SCENARIO] [--out JSON_OUTPUT] [--event-log EVENT_LOG] [--quiet] [--output EXTRA_OUTPUTS] [--progress] [--tui] script
Positional Arguments¶
- script¶
path to the test script
Options¶
- --vus¶
override VU count
- --duration¶
override duration (e.g. `30s`, `1m`)
- --scenario¶
run a specific scenario only
- --out¶
JSON output file path
- --event-log¶
JSONL event log file path
- --quiet¶
suppress console summary
- --output, -O¶
output backend (e.g. csv=results.csv, influxdb=http://...)
- --progress¶
show single-line progress during execution
- --tui¶
launch interactive TUI dashboard (requires rampa[tui])
check
validate a test script without running it
Validate a test script without running it.
Examples¶
$ rampa check load_test.py
Usage¶
usage: rampa check [-h] script
Positional Arguments¶
- script¶
path to the test script
inspect
show resolved test configuration
Show the fully resolved test configuration without running.
Examples¶
$ rampa inspect load_test.py
$ rampa inspect load_test.py --format json
Usage¶
usage: rampa inspect [-h] [--format {text,json}] script
Positional Arguments¶
- script¶
path to the test script
Options¶
- --format¶
output format (default: text)
Entry Points¶
-
rampa.cli.create_parser()¶rampa.cli.create_parser()¶
Build the rampa CLI argument parser.
- Returns:
Configured parser with run, check, and doctor subcommands.
- Return type:
Examples
>>> parser = create_parser() >>> parser.prog 'rampa'