If the file isn't in your Go bin folder, try reinstalling it using the official command: go install go.k6.io/xk6/cmd/xk6@latest Use code with caution. Copied to clipboard 3. Alternative: Use Docker
You have installed Go, ran the install command, and updated your PATH, yet xk6 still returns "command not found". Here is a troubleshooting checklist.
If that folder isn't in your system's , your terminal won't know where to find it. How to check:
A simple syntax error can also produce this message. Ensure you are using the correct command structure.
bash: xk6: command not found
./k6 version
If the file isn't in your Go bin folder, try reinstalling it using the official command: go install go.k6.io/xk6/cmd/xk6@latest Use code with caution. Copied to clipboard 3. Alternative: Use Docker
You have installed Go, ran the install command, and updated your PATH, yet xk6 still returns "command not found". Here is a troubleshooting checklist. xk6 command not found
If that folder isn't in your system's , your terminal won't know where to find it. How to check: If the file isn't in your Go bin
A simple syntax error can also produce this message. Ensure you are using the correct command structure. ran the install command
bash: xk6: command not found
./k6 version