# 使用 Homebrew, Nix 安装 jq-lsp

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

## 安装

```sh
sudo av install brew:jq-lsp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jq-lsp
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#jq-lsp
```

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

## 软件包事实

- **软件包键:** brew:jq-lsp
- **软件包管理器:** Homebrew
- **版本:** 0.1.18
- **来源摘要:** Jq language server
- **主页:** <https://github.com/wader/jq-lsp>
- **仓库:** <https://github.com/wader/jq-lsp>
- **最后更新:** 2026-07-26T04:08:07+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- jq-lsp (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.1.18
## 项目历史与用法

jq-lsp is Mattias Wadman's language server for jq, bringing editor features to jq filters and scripts. Its README lists syntax checking, missing function and binding diagnostics, goto definition, completion, import support, hover information, document symbols, and project-specific builtins through `.jq-lsp.jq`.

### 项目历史

The project belongs to jq's later ecosystem rather than jq's original 2010s command-line history. It uses a modified version of itchyny's gojq parser and bases builtin documentation on jq manual data, making it a bridge between jq the CLI language and modern Language Server Protocol editor workflows.

Public release artifacts began with the 0.1 series. The November 2025 releases added IntelliJ/LSP4IJ support, import-search behavior, jq 1.8 builtins and docs, parser fixes, and packaged binaries. January and February 2026 releases refined server internals and parser traversal.

### 采用历史

jq-lsp is surfaced through editor integrations rather than as a standalone end-user data tool. The README points users toward vscode-jq, Neovim lspconfig and mason.nvim, Emacs lsp-mode, Helix, and IntelliJ with LSP4IJ, matching how language servers are usually adopted.

### 使用方式

Developers install `jq-lsp` with Go or a package manager and let an editor launch it for `.jq` files. The `.jq-lsp.jq` file lets a project declare additional builtin functions or variables so diagnostics and completion match the environment where jq code actually runs.

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

jq-lsp is package-nerd notable because it turns jq from a terse shell pipeline language into something editors can understand. It also shows a common LSP pattern: reuse an existing language parser, ship one small server binary, and let many editors share the same intelligence.

### 时间线

- 2025-11-18: v0.1.2 and v0.1.14 release artifacts were published in the 0.1 line.
- 2025-11-18: v0.1.14 added IntelliJ with LSP4IJ support, jq 1.8 builtins and docs, import search-path support, and related parser fixes.
- 2025-11-27: v0.1.15 fixed parsing of binary operators with binding.
- 2026-01-01: v0.1.16 updated gojq, moved more server CLI behavior into jq, and fixed position handling.
- 2026-02-12: v0.1.17 corrected suffix-list traversal.

### Related projects

- Related projects include jq, gojq, vscode-jq, Neovim lspconfig, mason.nvim, Emacs lsp-mode, Helix, and IntelliJ LSP4IJ.

### 来源

- <https://github.com/jqlang/awesome-jq>
- <https://github.com/wader/jq-lsp>
- <https://github.com/wader/jq-lsp/releases>
- <https://github.com/wader/vscode-jq>
- <https://raw.githubusercontent.com/wader/jq-lsp/master/README.md>


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


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

- Unix: .jq-lsp.jq
## 其他软件包管理器记录

- Nix - jq-lsp: normalized package name match | nixpkgs package indexes: pkgs/by-name/jq/jq-lsp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/jq-lsp.yml](https://github.com/mxcl/pkgdb/blob/main/combined/jq-lsp.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
