k6 Command Examples

Open source load testing tool and SaaS for engineering teams. More information: https://k6.io.

k6 run {{script.js}}

k6 run {{[-u|--vus]}} {{10}} {{[-d|--duration]}} {{30s}} {{script.js}}

k6 run {{[-e|--env]}} {{HOSTNAME=example.com}} {{script.js}}

k6 run {{[-o|--out]}} influxdb={{http://localhost:8086/k6db}} {{script.js}}

k6 run --discard-response-bodies {{script.js}}

k6 run --compatibility-mode=base {{script.js}}

k6 login cloud --token {{secret}}

k6 cloud {{script.js}}