# 使用 Homebrew, MacPorts, Nix 安装 cmake-language-server

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

## 安装

```sh
sudo av install brew:cmake-language-server
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cmake-language-server
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cmake-language-server
```

  证据: MacPorts ports tree: devel/cmake-language-server/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cmake-language-server
```

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

## 软件包事实

- **软件包键:** brew:cmake-language-server
- **软件包管理器:** Homebrew
- **版本:** 0.1.11
- **来源摘要:** Language Server for CMake
- **主页:** <https://github.com/regen100/cmake-language-server>
- **仓库:** <https://github.com/regen100/cmake-language-server>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cmake-language-server (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

cmake-language-server is a Python language server for CMake files. Its own README calls it an alpha-stage CMake LSP implementation with completion, hover documentation, and formatting support through cmake-format.

### 项目历史

The GitHub repository was created in November 2019 and the PyPI metadata points back to the same repository. The project has remained small and focused, with GitHub releases visible from v0.1.7 in 2023 through v0.1.11 in February 2025.

### 采用历史

The README documents installation with pip and tested Neovim client setups for coc.nvim and vim-lsp. The batch input also lists Homebrew, MacPorts, and Nix package names, indicating package-manager distribution beyond Python packaging.

### 使用方式

Editors run the cmake-language-server executable as an LSP server for CMake filetypes. The README's configuration examples pass a buildDirectory initialization option; the server uses CMake's file API under <buildDirectory>/.cmake/api after the user has configured a build tree with cmake.

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

Its significance is mostly practical: it packages CMake editor intelligence as a standalone LSP binary that package managers can expose consistently. That matters for users wiring Neovim, coc.nvim, vim-lsp, or other LSP clients without vendoring editor-specific plugins.

### 时间线

- 2019: GitHub repository created and first PyPI distribution published.
- 2023: v0.1.7 appears in GitHub releases.
- 2025: v0.1.11 is published as the latest GitHub release checked.

### Related projects

- The project depends conceptually on CMake, the CMake file API, LSP clients, and cmake-format. The README specifically names coc.nvim and vim-lsp as tested Neovim clients.

### 来源

- <https://github.com/regen100/cmake-language-server#readme>
- <https://api.github.com/repos/regen100/cmake-language-server>
- <https://api.github.com/repos/regen100/cmake-language-server/releases>
- <https://pypi.org/pypi/cmake-language-server/json>


## 安全说明

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

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

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

- Nix - cmake-language-server: normalized package name match | nixpkgs package indexes: pkgs/by-name/cm/cmake-language-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - cmake-language-server: normalized package name match | MacPorts ports tree: devel/cmake-language-server/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/cmake-language-server.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cmake-language-server.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
