grafana / k6-docs

The k6 documentation website.
https://grafana.com/docs/k6/latest/
85 stars 216 forks source link

Update running-k6.md - removed extra "run" arg in cloud k6 bash command #1705

Closed sparshrestha closed 2 weeks ago

sparshrestha commented 3 weeks ago

Cloud: the test runs on Grafana Cloud k6 command is incorrect.

What?

k6 cloud run script.js gives following error: ERRO[0000] accepts 1 arg(s), received 2: arg should either be "-", if reading script from stdin, or a path to a script file

correct command to test run on Cloud k6 should exclude the arg run with only: k6 cloud script.js

Checklist

CLAassistant commented 3 weeks ago

CLA assistant check
All committers have signed the CLA.

heitortsergent commented 2 weeks ago

@sparshrestha thanks for opening the PR!

The k6 cloud run command is a new option that was introduced in k6 v0.53. Can you please double-check that that's the version you're running?