macOS
brew install terraform-lslocal Homebrew formula metadata
sudo port install terraform-lsMacPorts ports tree · devel/terraform-ls/Portfile · ソース: api.github.com
brew
terraform-ls のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install terraform-lslocal Homebrew formula metadata
sudo port install terraform-lsMacPorts ports tree · devel/terraform-ls/Portfile · ソース: api.github.com
nix profile install nixpkgs#terraform-lsnixpkgs package indexes · pkgs/by-name/te/terraform-ls/package.nix · ソース: api.github.com
scoop install main/terraform-lsScoop official bucket manifest trees · bucket/terraform-ls.json · ソース: api.github.com
winget install --id Hashicorp.TerraformLanguageServer -eWindows Package Manager source index · Hashicorp.TerraformLanguageServer · ソース: cdn.winget.microsoft.com
概要
Terraform Language Server
履歴
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.
セキュリティ状態
broad file, network, media, or database tool signal.
リスク blue · 信頼度 中 · tool
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
terraform-ls | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/hashicorp/terraform-ls
インストールメタデータ
| パッケージキー | 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 |
| Pulse | updated |
| ビルド依存関係 | go |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | terraform-ls |
| 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 |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
terraform-ls
nix profile install nixpkgs#terraform-lsterraform-ls
sudo port install terraform-lsmain/terraform-ls
scoop install main/terraform-lsHashicorp.TerraformLanguageServer
winget install --id Hashicorp.TerraformLanguageServer -eソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.