-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Windows commands #1582
base: main
Are you sure you want to change the base?
Update Windows commands #1582
Conversation
1. 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.
I encountered the same issue, but I cannot use Running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sabi0 thanks for the opening the PR, and sorry about the delay!
Based on @PontusMagnusson feedback, it seems that keeping the Docker commands for now would help most users, I left some comments to revert that and just changing the init
command to new
.
@@ -37,7 +37,7 @@ To run a simple local script: | |||
``` | |||
|
|||
```windows | |||
PS C:\> docker run --rm -i -v ${PWD}:/app -w /app grafana/k6 init | |||
PS C:\> k6 new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PS C:\> k6 new | |
PS C:\> docker run --rm -i -v ${PWD}:/app -w /app grafana/k6 new |
@@ -64,7 +64,7 @@ To run a simple local script: | |||
``` | |||
|
|||
```windows | |||
PS C:\> cat script.js | docker run --rm -i grafana/k6 run - | |||
PS C:\> k6 run script.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PS C:\> k6 run script.js | |
PS C:\> cat script.js | docker run --rm -i grafana/k6 run - |
@@ -84,7 +84,7 @@ $ docker run --rm -i grafana/k6 run --vus 10 --duration 30s - <script.js | |||
``` | |||
|
|||
```windows | |||
PS C:\> cat script.js | docker run --rm -i grafana/k6 run --vus 10 --duration 30s - | |||
PS C:\> k6 run --vus 10 --duration 30s script.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PS C:\> k6 run --vus 10 --duration 30s script.js | |
PS C:\> cat script.js | docker run --rm -i grafana/k6 run --vus 10 --duration 30s - |
@@ -155,7 +155,7 @@ $ docker run --rm -i grafana/k6 run - <script.js | |||
``` | |||
|
|||
```windows | |||
PS C:\> cat script.js | docker run --rm -i grafana/k6 run - | |||
PS C:\> k6 run script.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PS C:\> k6 run script.js | |
PS C:\> cat script.js | docker run --rm -i grafana/k6 run - |
What?
The k6 executable from the latest .msi installer says it does not know the
init
parameter: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
npm start
command locally and verified that the changes look good.docs/sources/next
folder of the documentation.docs/sources/v{most_recent_release}
folder of the documentation.Related PR(s)/Issue(s)