# k6 を Homebrew, chocolatey, MacPorts, Nix, zypper, scoop, winget でインストール

k6 のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

## エージェント安全性の回答

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

- **認証情報アクセス:** Reads environment variables, test scripts, and optional cloud tokens.
- **リモート変更:** Can generate traffic against production endpoints or upload cloud results.
- **公開/成果物リスク:** Can publish test results or stress external systems.
- **推奨コントロール:** Gate cloud uploads, production targets, and secret-backed test runs.
- **エージェント利用ガイダンス:** Allow local dry tests; require approval for remote load, cloud output, and tokens.

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install k6
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install k6
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

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

## パッケージ情報

- **パッケージキー:** brew:k6
- **パッケージマネージャ:** Homebrew
- **バージョン:** 2.1.0
- **ソース概要:** Modern load testing tool, using Go and JavaScript
- **ホームページ:** <https://k6.io>
- **リポジトリ:** <https://github.com/grafana/k6>
- **最終更新:** 2026-07-27T21:58:35+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- k6 (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 2.1.0
## プロジェクトの歴史と使われ方

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.

### プロジェクトの歴史

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.

### 採用の歴史

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.

### 使われ方

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.

### パッケージ好きにとっての重要性

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.

### タイムライン

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

### ソース

- <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/>


## セキュリティノート

k6 に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。



## 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
## 他のパッケージマネージャ記録

- 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)


## ソース

- 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
