k6-docs
k6-docs copied to clipboard
Update Windows commands
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 startcommand locally and verified that the changes look good.
- [ ] I have made my changes in the
docs/sources/nextfolder 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)
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.