locust -f locustfile.py --headless -u 100 -r 10 -t 60s

Category: Web App Development

locust -f locustfile.py --headless -u 100 -r 10 -t 60s

Run a locust load test headlessly

Executes the load test defined in locustfile.py with 100 simulated users spawning at 10 per second, for 60 seconds. The --headless flag skips the web UI and prints results to the terminal. Press Ctrl+C early to stop and see partial metrics.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.