A simple and polite way to setup Grafana k6 on Linux, macOS, and WSL
You run:
curl -fsSL https://install-k6.com/please.sh | bash
And... 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/bin
to your PATH. If it fails, it will suggest you do it manually. - Sets up a small wrapper script in
~/.k6/bin/k6
that:- Shows a getting started when you run
k6
for 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.0
Yes! You can pass the --no-update-check
flag:
curl -fsSL https://install-k6.com/please.sh | bash -s -- --no-update-check
Just remove the ~/.k6
directory:
rm -rf ~/.k6
Also, 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.