# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/jq-lsp>
- **版本:** 0.1.18
- **来源摘要:** Jq language server
- **主页:** <https://github.com/wader/jq-lsp>
- **仓库:** <https://github.com/wader/jq-lsp>
- **许可证:** MIT
- **源码归档:** <https://github.com/wader/jq-lsp/archive/refs/tags/v0.1.18.tar.gz>
- **最后更新:** 2026-07-26T04:08:07+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- jq-lsp (cli)
- jq-lsp (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.1.18
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/wader/jq-lsp
- 检测到的最新版本: v0.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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** jq-lsp
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [gopls](https://pkg.so/zh-hans/brew/gopls/) - Shares pkgdb curated category or tags: cli, developer-tools, editor-integration, language-server, lsp.
- [python-lsp-server](https://pkg.so/zh-hans/brew/python-lsp-server/) - Shares pkgdb curated category or tags: cli, developer-tools, editor-integration, language-server, lsp.
- [expert](https://pkg.so/zh-hans/brew/expert/) - Shares pkgdb curated category or tags: cli, developer-tools, editor-integration, language-server, lsp.
- [actions-languageserver](https://pkg.so/zh-hans/brew/actions-languageserver/) - Shares pkgdb curated category or tags: cli, developer-tools, editor-integration, language-server, lsp.
- [ansible-language-server](https://pkg.so/zh-hans/brew/ansible-language-server/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, lsp.
- [fish-lsp](https://pkg.so/zh-hans/brew/fish-lsp/) - Shares pkgdb curated category or tags: cli, developer-tools, editor-integration, language-server, lsp.
- [ruby-lsp](https://pkg.so/zh-hans/brew/ruby-lsp/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, lsp.
- [codebook-lsp](https://pkg.so/zh-hans/brew/codebook-lsp/) - Shares pkgdb curated category or tags: cli, developer-tools, editor-integration, language-server, lsp.

## 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
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
