Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, Nix, scoop, winget 安装 terraform-ls

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install terraform-ls

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install terraform-ls

MacPorts ports tree · devel/terraform-ls/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#terraform-ls

nixpkgs package indexes · pkgs/by-name/te/terraform-ls/package.nix · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install main/terraform-ls

Scoop official bucket manifest trees · bucket/terraform-ls.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id Hashicorp.TerraformLanguageServer -e

Windows Package Manager source index · Hashicorp.TerraformLanguageServer · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Terraform Language Server

命令和别名

  • terraform-ls

历史

项目历史与用法

terraform-ls is HashiCorp's official Terraform language server. It implements IDE features for LSP-compatible editors, including Terraform-oriented completion, diagnostics, formatting-related editor flows, go-to-definition, and workspace indexing.

项目历史

The hashicorp/terraform-ls repository was created on GitHub in February 2020. The README identifies it as the official Terraform language server maintained by HashiCorp and says it provides IDE features to any editor compatible with the Language Server Protocol.

The project followed an incremental release model from the beginning. Its README says not all language features are available at any one time and describes the project as actively delivering smaller updates. It also credits prior research and language-server implementation work, including Julio Sueiras's terraform-lsp.

采用历史

terraform-ls became the common packaged binary behind Terraform editor integrations. Its installation docs say some editors install and update the server automatically, including HashiCorp's Terraform VS Code extension and Sublime Text LSP-terraform, while manual installation is available through Homebrew, HashiCorp's apt/RPM repositories, and release archives.

The input package facts list Homebrew, MacPorts, Nix, Scoop, and winget packaging. That multi-platform packaging matters because language servers must be discoverable by editors on developer workstations, not only by Terraform users inside a single operating-system or language package ecosystem.

使用方式

The normal interaction is through an IDE or editor plugin rather than by running ad hoc commands. The usage guide documents Terraform-related language IDs for `.tf`, `.tfvars`, Terraform Stack, Terraform Deploy, and Terraform Search files, and recommends opening folders so the server can index the workspace.

Manual editor configurations commonly invoke `terraform-ls serve`. The official usage guide includes examples for VS Code, Sublime Text, Vim, Neovim, coc.nvim, vim-lsp, YouCompleteMe, LanguageClient-neovim, and nvim-lspconfig.

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

terraform-ls is important to package-manager users because it turns Terraform editor support into a separately versioned, installable binary. That matches the broader LSP model: editors can remain thin clients while the domain-specific intelligence ships as a command-line server.

For infrastructure developers, having terraform-ls in Homebrew, Nix, MacPorts, Scoop, winget, and HashiCorp package repositories means editor setups can be made reproducible in dotfiles, devcontainers, and workstation bootstrap scripts.

时间线

  • 2020: GitHub repository created.
  • 2020: Early v0.5.x through v0.11.0 releases published.
  • 2020: Installation docs documented Homebrew and HashiCorp-maintained Linux packages.
  • 2026: v0.38.8 listed as the latest GitHub release during research.
  • 2026: v0.39.0 beta releases were also listed during research.

Related projects

  • The README ties terraform-ls to Terraform, HCL, the Language Server Protocol, HashiCorp's Terraform VS Code extension, Sublime Text LSP-terraform, and the earlier terraform-lsp implementation credited in the project.

安全态势

风险级别: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 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-26
管理器版本0.39.0
管理器更新时间2026-07-23
本地数据OK
上游当前
检测到的最新版本v0.39.0

https://github.com/hashicorp/terraform-ls

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

安装元数据

软件包元数据

软件包键brew:terraform-ls
版本0.39.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/terraform-ls
主页https://github.com/hashicorp/terraform-ls
仓库https://github.com/hashicorp/terraform-ls
上游文档https://github.com/hashicorp/terraform-ls#readme
许可证MPL-2.0
源码归档https://github.com/hashicorp/terraform-ls/archive/refs/tags/v0.39.0.tar.gz
最后更新2026-07-23T14:59:21Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

terraform-ls

nix profile install nixpkgs#terraform-ls
  • normalized package name match
  • 匹配方式:Terraform Ls
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/te/terraform-ls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

terraform-ls

sudo port install terraform-ls
  • normalized package name match
  • 匹配方式:Terraform Ls
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/terraform-ls/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/terraform-ls

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

Hashicorp.TerraformLanguageServer

winget install --id Hashicorp.TerraformLanguageServer -e
  • normalized package name match
  • 匹配方式:Terraform Ls
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Hashicorp.TerraformLanguageServer 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 package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment