grafana / k6-docs

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

Update Windows commands #1582

Open sabi0 opened 4 months ago

sabi0 commented 4 months ago

What?

The k6 executable from the latest .msi installer says it does not know the init parameter:

C:\>k6 init
ERRO[0000] unknown command "init" for "k6.exe"

I suppose new should be used instead, like on Linux.

Also I changed Windows commands to run k6 executable directly instead of via Docker.

Checklist

Related PR(s)/Issue(s)

CLAassistant commented 4 months ago

CLA assistant check
All committers have signed the CLA.

PontusMagnusson commented 4 months ago

I encountered the same issue, but I cannot use k6 new if I've installed via winget. It would probably require configuring the PATH environment variable, but that is not reflected in the documentation.

Running docker run --rm -i -v ${PWD}:/app -w /app grafana/k6 new works though.