Automic VaultAutomic Vault

brew

使用 Homebrew, apk, Nix, pacman, zypper, scoop, winget 安装 zls

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install zls

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add zls

Alpine Linux edge package indexes · zls · 来源: dl-cdn.alpinelinux.org

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

nixpkgs package indexes · zls · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S zls

Arch Linux sync databases · zls · 来源: geo.mirror.pkgbuild.com

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

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

Windows

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

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

Windows Package Manager已验证 · 92%
winget install --id zigtools.zls -e

Windows Package Manager source index · zigtools.zls · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Language Server for Zig

历史

项目历史与用法

ZLS is the Zig Language Server, a Zig implementation of the Language Server Protocol that provides editor features such as completion, hover, diagnostics, go-to-definition, formatting integration, semantic tokens, inlay hints, and code actions.

项目历史

The zigtools/zls repository was created in 2020, during Zig's pre-1.0 growth period when editor tooling had to track a moving compiler and standard library. The README describes ZLS as a non-official Language Server Protocol implementation for Zig written in Zig.

ZLS evolved together with the zigtools ecosystem. The zigtools site now groups ZLS with related projects such as the Zig Playground and Zig LSP Kit, the latter explicitly described as building blocks for LSP implementations like ZLS.

采用历史

ZLS became the de facto language-server choice for Zig developers because the Zig language tools page points users to zigtools/zls, and editor documentation focuses on wiring ZLS into everyday development. The official Zig VS Code workflow can install Zig and ZLS automatically, while other editors commonly ask users to install a matching zls binary themselves.

Because Zig changes quickly before 1.0, ZLS adoption is tied to version compatibility. The ZLS installation guide warns that tagged Zig releases should be paired with matching tagged ZLS releases, and nightly Zig builds should be paired with nightly ZLS builds. That makes the package especially relevant for package managers and dev shells.

使用方式

ZLS runs as an editor-launched language server. Users normally configure their editor or LSP client to start zls, then get completion, hover, diagnostics, symbol navigation, formatting via zig fmt, semantic tokens, inlay hints, and code actions inside Zig projects.

The most common operational problem is keeping the Zig compiler and ZLS in sync. Package users often care less about invoking zls directly and more about whether their editor, PATH, and project toolchain resolve compatible Zig and ZLS builds.

为什么软件包爱好者会关心

ZLS is one of the clearest examples of modern language tooling as a package-manager problem. A single executable unlocks editor support across many clients, but it must track a fast-moving compiler closely enough that mismatched packages produce confusing development failures.

For Zig users, installing zls is often the difference between syntax highlighting and a real IDE-like workflow, so it has become part of the standard systems-programming workstation kit.

时间线

  • 2020-04-24: The zigtools/zls GitHub repository is created.
  • 2020s: ZLS becomes the Zig community's primary LSP implementation.
  • 2020s: The Zig tools page links to zigtools/zls under language servers.
  • 2020s: The official Zig VS Code setup path gains automatic Zig and ZLS installation, while the ZLS guide continues to document source and binary installs.

Related projects

  • ziglang/zig is the compiler and standard library that ZLS must track closely.
  • ziglang/vscode-zig is the official VS Code extension path that integrates with ZLS.
  • Zig LSP Kit is a related zigtools project for building LSP implementations in Zig.
  • The Language Server Protocol is the editor-server protocol ZLS implements.

安全态势

风险级别:blue

broad file, network, media, or database tool signal.

风险分类器

blue 风险 · 中 置信度 · tool

原因

  • broad file, network, media, or database tool signal

信号

  • text:server

安装行为

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

Unix
$local_config_dir/zls.json$global_config_dir/zls.json

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-10
管理器版本0.16.0
管理器更新时间2026-06-14
本地数据OK
上游当前
检测到的最新版本0.16.0

https://github.com/zigtools/zls

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

安装元数据

软件包元数据

软件包键brew:zls
版本0.16.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/zls
主页https://zigtools.org/zls/
仓库https://github.com/zigtools/zls
上游文档https://github.com/zigtools/zls#readme
许可证MIT
源码归档https://github.com/zigtools/zls/archive/refs/tags/0.16.0.tar.gz
最后更新2026-06-14T14:04:18-04:00
Pulseupdated
依赖zig
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namezls
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%

zls

nix profile install nixpkgs#zls
  • normalized package name match
  • 匹配方式:Zls
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: zls from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
apk95%

zls 0.15.0-r0

Zig Language Server

https://github.com/zigtools/zls

sudo apk add zls
  • License: MIT
  • Architecture: x86_64
  • Source Package: zls
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Zls
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: zls from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

zls 0.15.1-1

A language server for Zig

https://github.com/zigtools/zls

sudo pacman -S zls
  • License: MIT
  • Architecture: x86_64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Zls
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: zls from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

zls 0.15.0-2.4

Language server implementation for Zig in Zig

https://github.com/zigtools/zls

sudo zypper install zls
  • License: MIT
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: zls
  • 1 提供
  • normalized package name match
  • 匹配方式:Zls
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: zls from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
Scoop95%

main/zls

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

zigtools.zls

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

来源线索

由仓库数据生成

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

使用的来源

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