Load Testing · Junior · Question 25 of 75
How do you run a k6 script from the command line?
- 1
k6 run script.js - 2
k6 exec script.js - 3
k6 start script.js
Show the answer
Correct answer: k6 run script.js
Explanation
k6 run executes the script locally. Options such as --vus and --duration can override the values in the script.