Automic VaultAutomic Vault

brew

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

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

安装

其他安装命令

macOS

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

local Homebrew formula metadata

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

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

Linux

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

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

Windows

Chocolatey已验证 · 92%
choco install Terraform-Docs

Chocolatey community package catalog · Terraform-Docs · 来源: community.chocolatey.org

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

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

Windows Package Manager已验证 · 92%
winget install --id Terraform-docs.Terraform-docs -e

Windows Package Manager source index · Terraform-docs.Terraform-docs · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Tool to generate documentation from Terraform modules

命令和别名

  • terraform-docs

历史

项目历史与用法

terraform-docs is a Terraform module documentation generator. It reads module inputs, outputs, providers, requirements, and related metadata, then renders that information into Markdown, AsciiDoc, JSON, YAML, XML, TOML, or other output formats for README files and automation workflows.

项目历史

The terraform-docs/terraform-docs repository was created on GitHub in June 2016, during the period when Terraform modules were becoming a common unit of infrastructure reuse. Its own README describes the project as a utility to generate documentation from Terraform modules in various output formats, and the dedicated terraform-docs.io documentation site grew into the primary user guide.

The project published v0.0.1 in June 2016 and continued as a Go CLI distributed through GitHub releases, Homebrew, Scoop, Chocolatey, Docker images, and `go install`. Later releases added a formal YAML configuration file, recursive module support, output injection, and richer formatter behavior, turning the tool from a README helper into a standard module-maintenance step.

采用历史

terraform-docs became widely adopted because Terraform modules need documentation that stays synchronized with code. The official README documents direct binary use, Docker use, a GitHub Action, and a pre-commit hook, which reflects its common adoption path in teams that gate infrastructure pull requests on generated README changes.

The package-manager footprint is broad for a Terraform adjunct CLI: the input package facts list Homebrew, Chocolatey, MacPorts, Nix, Scoop, and winget packaging. That breadth is consistent with a tool used by both local developers and CI systems rather than only by one language ecosystem.

使用方式

The usual workflow is to run `terraform-docs` against a module directory and write or inject generated documentation into README.md. The README example uses `terraform-docs markdown table --output-file README.md --output-mode inject /path/to/module`, while the configuration guide documents `.terraform-docs.yml` discovery from the module root, `.config` subdirectories, the current directory, and `$HOME/.tfdocs.d/`.

In package-manager culture, terraform-docs is often installed as a single binary and pinned in pre-commit or CI. Its value is not only the rendered docs, but the reproducibility: maintainers can regenerate module docs from source and detect drift during review.

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

terraform-docs is significant because it sits at the boundary between infrastructure-as-code and documentation-as-build-artifact. It gives Terraform module authors the kind of generated reference material that language package maintainers expect from API-doc tools, but in a standalone CLI that system package managers can distribute.

For Homebrew and other package-manager users, it is a classic small Go tool with high leverage: one executable, no service dependency, and obvious CI/pre-commit use. That makes it a common companion to Terraform, tflint, checkov, and other infrastructure review tools.

时间线

  • 2016: GitHub repository created.
  • 2016: v0.0.1 released.
  • 2017: v0.1.0 and v0.3.0 released.
  • 2020: Configuration options documented as available since v0.10.0.
  • 2021: `.config` lookup paths documented as available since v0.15.0.
  • 2026: v0.24.0 listed as the latest GitHub release during research.

Related projects

  • The official README documents a companion terraform-docs GitHub Action and pre-commit hook integration. It also fits into the wider Terraform module ecosystem, where generated README sections are commonly checked alongside Terraform source.

安全态势

尚未找到受保护工具覆盖

没有找到 terraform-docs 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

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

local files

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

Config paths the tool may read or write during local use.

Unix
<module-root>/.terraform-docs.yml<module-root>/.config/.terraform-docs.yml./.terraform-docs.yml./.config/.terraform-docs.yml~/.tfdocs.d/.terraform-docs.yml

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://github.com/terraform-docs/terraform-docs

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

安装元数据

软件包元数据

软件包键brew:terraform-docs
版本0.24.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/terraform-docs
主页https://terraform-docs.io/
仓库https://github.com/terraform-docs/terraform-docs
上游文档https://terraform-docs.io/
许可证MIT
源码归档https://github.com/terraform-docs/terraform-docs/archive/refs/tags/v0.24.0.tar.gz
最后更新2026-05-11T00:44:30Z
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-docs
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

terraform-docs

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

terraform-docs

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

Terraform-Docs

choco install Terraform-Docs
  • normalized package name match
  • 匹配方式:Terraform Docs
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: Terraform-Docs from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','telegram.install'
Scoop95%

main/terraform-docs

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

Terraform-docs.Terraform-docs

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