# 使用 Homebrew, Nix 安装 terraform-lsp

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install terraform-lsp
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## 软件包事实

- **软件包键:** brew:terraform-lsp
- **软件包管理器:** Homebrew
- **版本:** 0.0.12
- **来源摘要:** Language Server Protocol for Terraform
- **主页:** <https://github.com/juliosueiras/terraform-lsp>
- **仓库:** <https://github.com/juliosueiras/terraform-lsp>
- **最后更新:** 2026-07-26T00:50:35+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- terraform-lsp (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

terraform-lsp is an experimental Terraform Language Server Protocol implementation packaged as a command-line editor integration tool.

### 项目历史

The project repository was created in May 2019 and describes itself as a Language Server Protocol implementation for Terraform. Its README explicitly places it beside HashiCorp's terraform-ls, saying the two Terraform LSP repositories existed concurrently, with this repository focused on more experimental features while terraform-ls targeted stability.

The project shipped early 0.0.x releases in 2019 and reached Homebrew stable version 0.0.12. Its README lists editor support for Visual Studio Code, Atom, Vim, Sublime Text 3, IntelliJ, and Emacs, showing the project was aimed at the cross-editor LSP ecosystem rather than a single IDE plugin.

### 采用历史

Adoption appears to have been concentrated among Terraform users who wanted completion and diagnostics in editors before or alongside the more stable HashiCorp terraform-ls path. Homebrew and Nix packaging made the binary easy to install for package-manager users, but current Homebrew analytics show low recent install volume, consistent with a niche or legacy role.

### 使用方式

The README describes Terraform-specific completion, provider configuration completion, dynamic error checking, module variable completion, and provider-binary communication. Users install the binary and configure their editor's LSP client to launch terraform-lsp.

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

For package nerds, terraform-lsp is mostly interesting as an early Terraform LSP formula: a small Go binary distributed through Homebrew and Nix for editor automation, later living in the shadow of the more official terraform-ls ecosystem.

### 时间线

- 2019: GitHub repository created and v0.0.1 released.
- 2021: v0.0.12 published, the version currently packaged by Homebrew.
- 2026: Homebrew formula remains available, with low recent install counts.

### Related projects

- terraform-ls is the HashiCorp Terraform language server named by the terraform-lsp README as the stable counterpart.
- tfschema is credited by the README as an influence for provider communication.

### 来源

- <https://api.github.com/repos/juliosueiras/terraform-lsp>
- <https://api.github.com/repos/juliosueiras/terraform-lsp/releases>
- <https://formulae.brew.sh/api/formula/terraform-lsp.json>
- <https://github.com/juliosueiras/terraform-lsp#readme>


## 安全说明

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

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

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

- Nix - terraform-lsp: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/terraform-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/terraform-lsp.yml](https://github.com/mxcl/pkgdb/blob/main/combined/terraform-lsp.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
