Skip to content

dgzlopes/install-k6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📦 install-k6

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

F.A.Q

What does this script do?

  • 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.

How do I update k6?

Just run the installation script again! It will download the latest version and replace the existing one.

Can I pick a specific version?

Yes! You can pass the version as an environment variable:

curl -fsSL https://install-k6.com/please.sh | bash -s v0.54.0

Can I disable the updates check?

Yes! You can pass the --no-update-check flag:

curl -fsSL https://install-k6.com/please.sh | bash -s -- --no-update-check

How can I uninstall k6?

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.

Credits

To the bun team - this script is heavily inspired by their bun installer.

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •