Load Testing · Junior · Question 25 of 75

How do you run a k6 script from the command line?

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.

Further reading

Problem with a question

Load Testing · Junior · question 25

Test yourself

Take the Load Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz