Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, MacPorts, Nix, zypper, scoop, winget 安装 k6

查看 k6 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

代理安全

代理安全回答

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%
brew install k6

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install k6

MacPorts ports tree · net/k6/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#k6

nixpkgs package indexes · pkgs/by-name/k6/k6/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install k6

openSUSE Tumbleweed package metadata · k6 · 来源: download.opensuse.org

Windows

Chocolatey已验证 · 92%
choco install k6

Chocolatey community package catalog · k6 · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/k6

Scoop official bucket manifest trees · bucket/k6.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id GrafanaLabs.k6 -e

Windows Package Manager source index · GrafanaLabs.k6 · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Modern load testing tool, using Go and JavaScript

历史

项目历史与用法

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.

安全态势

尚未找到受保护工具覆盖

没有找到 k6 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

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

Credential files

Credential-bearing paths to review before unattended agent runs.

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
k6cli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本2.1.0
管理器更新时间2026-06-30
本地数据OK
上游当前
检测到的最新版本v2.1.0

https://github.com/grafana/k6

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:k6
版本2.1.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/k6
主页https://k6.io
仓库https://github.com/grafana/k6
上游文档https://grafana.com/docs/k6/latest
许可证AGPL-3.0-or-later
源码归档https://github.com/grafana/k6/archive/refs/tags/v2.1.0.tar.gz
最后更新2026-06-30T09:51:09Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namek6
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

k6

nix profile install nixpkgs#k6
  • normalized package name match
  • 匹配方式:K6
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/k6/k6/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
zypper95%

k6 2.0.0-1.1

Modern load testing tool, using Go and JavaScript

https://github.com/grafana/k6

sudo zypper install k6
  • License: AGPL-3.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: k6
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:K6
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: k6 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

k6-bash-completion 2.0.0-1.1

Bash Completion for k6

https://github.com/grafana/k6

sudo zypper install k6-bash-completion
  • License: AGPL-3.0
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: k6
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:K6
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: k6-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

k6-fish-completion 2.0.0-1.1

Fish Completion for k6

https://github.com/grafana/k6

sudo zypper install k6-fish-completion
  • License: AGPL-3.0
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: k6
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:K6
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: k6-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

k6-zsh-completion 2.0.0-1.1

Zsh Completion for k6

https://github.com/grafana/k6

sudo zypper install k6-zsh-completion
  • License: AGPL-3.0
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: k6
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:K6
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: k6-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

k6

sudo port install k6
  • normalized package name match
  • 匹配方式:K6
MacPorts ports tree · api.github.com · MacPorts ports tree: net/k6/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

k6

choco install k6
  • normalized package name match
  • 匹配方式:K6
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: k6 from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','jetbrains-rider'
Scoop95%

main/k6

scoop install main/k6
  • normalized package name match
  • 匹配方式:K6
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/k6.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

GrafanaLabs.k6

winget install --id GrafanaLabs.k6 -e
  • normalized package name match
  • 匹配方式:K6
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: GrafanaLabs.k6 from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

Combined YAML source

View the package source record on GitHub.

combined/k6.yml

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated agent safety answer
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment