k6-docs icon indicating copy to clipboard operation
k6-docs copied to clipboard

Update Windows commands

Open sabi0 opened this issue 1 year ago • 2 comments

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

  • [x] I have used a meaningful title for the PR.
  • [x] I have described the changes I've made in the "What?" section above.
  • [x] I have performed a self-review of my changes.
  • [ ] I have run the npm start command locally and verified that the changes look good.
  • [ ] I have made my changes in the docs/sources/next folder of the documentation.
  • [x] I have reflected my changes in the docs/sources/v{most_recent_release} folder of the documentation.
  • [ ] I have reflected my changes in the relevant folders of the two previous k6 versions of the documentation (if still applicable to previous versions).

Related PR(s)/Issue(s)

sabi0 avatar May 08 '24 11:05 sabi0

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar May 08 '24 11:05 CLAassistant

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.

PontusMagnusson avatar May 21 '24 13:05 PontusMagnusson