macOS
brew install hcl2jsonlocal Homebrew formula metadata
sudo port install hcl2jsonMacPorts ports tree · textproc/hcl2json/Portfile · ソース: api.github.com
brew
hcl2json のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install hcl2jsonlocal Homebrew formula metadata
sudo port install hcl2jsonMacPorts ports tree · textproc/hcl2json/Portfile · ソース: api.github.com
nix profile install nixpkgs#hcl2jsonnixpkgs package indexes · pkgs/by-name/hc/hcl2json/package.nix · ソース: api.github.com
概要
Convert HCL2 to JSON
履歴
hcl2json is a small Go command-line converter for turning HashiCorp Configuration Language version 2 input into JSON. Its niche is not general Terraform evaluation; it is a bridge for scripts and non-Go programs that need to inspect HCL-shaped configuration without embedding a full HCL-aware application.
The repository was created in July 2019 and framed itself around HCL2 conversion at a time when HCL was becoming the shared configuration substrate for Terraform and other HashiCorp-style tools. The README says the tool was created because there were few direct schemaless converters, while later HashiCorp HCL tooling such as hcldec offered a more specification-driven path.
Adoption stayed in the small-utility lane: Homebrew, MacPorts, Nix, prebuilt GitHub release binaries, Docker images, and tool-version-manager installs made it easy to drop into shell pipelines. The project matters most where HCL is data to inspect or transform rather than configuration to execute.
Typical use is piping an HCL file or stdin through hcl2json and redirecting JSON output for downstream tools. The README also documents a simplify mode and an HCL pack-format mode, while warning that some HCL constructs cannot be converted with exact semantic equivalence.
Package maintainers care about hcl2json because it is a single-purpose, Go-built CLI with no runtime service, no credentials, and obvious test fixtures: feed HCL in, compare JSON out. It fills the awkward gap between plain text processing and linking a whole HCL application stack.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
hcl2json | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/tmccombs/hcl2json
インストールメタデータ
| パッケージキー | brew:hcl2json |
|---|---|
| バージョン | 0.6.9 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/hcl2json |
| ホームページ | https://github.com/tmccombs/hcl2json |
| リポジトリ | https://github.com/tmccombs/hcl2json |
| 上流ドキュメント | https://github.com/tmccombs/hcl2json#readme |
| ライセンス | Apache-2.0 |
| ソースアーカイブ | https://github.com/tmccombs/hcl2json/archive/refs/tags/v0.6.9.tar.gz |
| 最終更新 | 2026-07-25T20:56:30-04:00 |
| 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 | hcl2json |
| 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 パッケージリンクとは分けて表示されます。
hcl2json
nix profile install nixpkgs#hcl2jsonhcl2json
sudo port install hcl2jsonソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.