A simple and polite way to setup Grafana k6 on Linux, macOS, and WSL
You run:
curl -fsSL https://install-k6.com/please.sh | bashAnd... that's it ✨
k6-install-demo.mp4
- Detects your OS & architecture
- Downloads the latest k6 release and installs it in
~/.k6/bin - Tries to add
~/.k6/binto your PATH. If it fails, it will suggest you do it manually. - Sets up a small wrapper script in
~/.k6/bin/k6that:- Shows a getting started when you run
k6for the first time. - Checks if there are new k6 versions available and prompts you to update from time to time.
- Shows a getting started when you run
Just run the installation script again! It will download the latest version and replace the existing one.
Yes! You can pass the version as an environment variable:
curl -fsSL https://install-k6.com/please.sh | bash -s v0.54.0Yes! You can pass the --no-update-check flag:
curl -fsSL https://install-k6.com/please.sh | bash -s -- --no-update-checkJust remove the ~/.k6 directory:
rm -rf ~/.k6Also, you might want to remove lines from your shell configuration file that add ~/.k6/bin to your PATH.
To the bun team - this script is heavily inspired by their bun installer.