# k6 mit Homebrew, chocolatey, MacPorts, Nix, zypper, scoop, winget installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für k6 in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:k6
```

## Antwort zur Agent-Sicherheit

k6 runs load tests that can hit local or remote systems with scripted traffic.

- **Credential-Zugriff:** Reads environment variables, test scripts, and optional cloud tokens.
- **Änderungen an Remote-Zustand:** Can generate traffic against production endpoints or upload cloud results.
- **Publish-/Artefakt-Risiko:** Can publish test results or stress external systems.
- **Empfohlene Kontrolle:** Gate cloud uploads, production targets, and secret-backed test runs.
- **Hinweise für Agent-Nutzung:** Allow local dry tests; require approval for remote load, cloud output, and tokens.

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install k6
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install k6
```

  Evidenz: MacPorts ports tree: net/k6/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#k6
```

  Evidenz: nixpkgs package indexes: pkgs/by-name/k6/k6/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install k6
```

  Evidenz: openSUSE Tumbleweed package metadata: k6 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install k6
```

  Evidenz: Chocolatey community package catalog: k6 from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','java7u13x86'

- Scoop (92%):

```sh
scoop install main/k6
```

  Evidenz: Scoop official bucket manifest trees: bucket/k6.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id GrafanaLabs.k6 -e
```

  Evidenz: Windows Package Manager source index: GrafanaLabs.k6 from https://cdn.winget.microsoft.com/cache/source.msix

## Paketfakten

- **Paketschlüssel:** brew:k6
- **Paketmanager:** Homebrew
- **Version:** 2.1.0
- **Quellzusammenfassung:** Modern load testing tool, using Go and JavaScript
- **Homepage:** <https://k6.io>
- **Repository:** <https://github.com/grafana/k6>
- **Zuletzt aktualisiert:** 2026-07-27T21:58:35+02:00
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- k6 (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 2.1.0
## Projektgeschichte und Nutzung

Grafana k6 is an open source load and performance testing tool written in Go with test scripts authored in JavaScript or TypeScript, designed for developer-friendly reliability testing from local runs through cloud and CI workflows.

### Projektgeschichte

k6 began as an open source load-testing tool from Load Impact, with public releases visible from 2017. It combined a Go runtime with JavaScript test scripts, aiming to make load tests feel like code that developers could keep with application projects.

Load Impact rebranded around k6 in 2020, including the GitHub repository move from `loadimpact/k6` to `k6io/k6`. Grafana Labs acquired the Stockholm-based k6 company in June 2021 and folded the project into Grafana's observability stack.

In 2025, Grafana announced k6 1.0 as a general-availability milestone with Semantic Versioning, stability guarantees, TypeScript support, native extensibility, and a stronger long-term support story.

### Adoptionsgeschichte

k6 adoption grew from teams wanting scripted, automatable load testing without older GUI-heavy workflows. Its JavaScript API, CLI-first design, thresholds, CI integrations, and Grafana/Prometheus-friendly metrics made it attractive to developers, SREs, QA engineers, and platform teams.

After the Grafana acquisition, k6 became part of a broader observability loop: generate load with k6, observe behavior in Grafana-backed systems, and use cloud or Kubernetes execution when local tests are not enough.

### Wie es verwendet wird

Users write test scenarios in JavaScript or TypeScript and run them with `k6 run`, often checking thresholds in CI. More advanced setups send metrics to observability backends, run distributed tests, use extensions, or execute tests through Grafana Cloud k6.

### Warum Paket-Nerds sich dafür interessieren

k6 is significant because it made load testing feel like a normal developer CLI dependency: install a binary, commit scripts, run in CI, and export metrics. Its Go-plus-JavaScript architecture also makes it an interesting packaging target: a single executable with an embedded scripting engine and extension ecosystem.

### Zeitleiste

- 2017: k6 public releases were published under the Load Impact era.
- 2020: Load Impact rebranded to k6 and moved the GitHub repository to the k6 organization.
- 2021: Grafana Labs acquired k6 on June 17.
- 2025: Grafana announced k6 1.0 with stability guarantees and Semantic Versioning.

### Related projects

- k6 is related to Grafana, Grafana Cloud k6, Prometheus-style metrics workflows, xk6 extensions, the k6 Kubernetes operator, and older load-testing tools such as JMeter, Gatling, and Locust.

### Quellen

- <https://community.grafana.com/t/k6-v0-31-0-is-out/95803>
- <https://github.com/grafana/k6>
- <https://github.com/grafana/k6/releases/tag/v0.6.0>
- <https://grafana.com/blog/grafana-k6-1-0-release/>
- <https://grafana.com/oss/k6/>
- <https://grafana.com/press/2021/06/17/grafana-labs-brings-modern-open-source-load-testing-to-observability-with-acquisition-of-k6/>
- <https://k6.io/about/>


## Sicherheitshinweise

Für k6 wurde kein passendes lokales Secret-Handling-Manifest gefunden. Nucleus-Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- macOS: ~/Library/Application Support/k6/config.json
- Unix: ~/.config/k6/config.json

## Credential files

- macOS: ~/Library/Application Support/k6/config.json
- Unix: ~/.config/k6/config.json
## Andere Paketmanager-Einträge

- Nix - k6: normalized package name match | nixpkgs package indexes: pkgs/by-name/k6/k6/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - k6 - 2.1.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: k6 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Modern load testing tool, using Go and JavaScript | https://github.com/grafana/k6
- zypper - k6-bash-completion - 2.1.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: k6-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for k6 | https://github.com/grafana/k6
- zypper - k6-fish-completion - 2.1.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: k6-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish Completion for k6 | https://github.com/grafana/k6
- zypper - k6-zsh-completion - 2.1.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: k6-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Zsh Completion for k6 | https://github.com/grafana/k6
- MacPorts - k6: normalized package name match | MacPorts ports tree: net/k6/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - k6: normalized package name match | Chocolatey community package catalog: k6 from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','java7u13x86'
- Scoop - main/k6: normalized package name match | Scoop official bucket manifest trees: bucket/k6.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - GrafanaLabs.k6: normalized package name match | Windows Package Manager source index: GrafanaLabs.k6 from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/k6.yml](https://github.com/mxcl/pkgdb/blob/main/combined/k6.yml)


## Quellen

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
