Automic VaultAutomic Vault

brew

json2hcl を Homebrew, Nix でインストール

json2hcl のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install json2hcl

local Homebrew formula metadata

Linux

Nix確認済み · 92%
nix profile install nixpkgs#json2hcl

nixpkgs package indexes · pkgs/by-name/js/json2hcl/package.nix · ソース: api.github.com

概要

パッケージ概要

Convert JSON to HCL, and vice versa

コマンドとエイリアス

  • json2hcl

履歴

プロジェクトの歴史と使われ方

json2hcl is a small Go command-line converter for moving data between JSON and HashiCorp Configuration Language. Its niche is the Terraform-era need to translate machine-friendly JSON into a more readable HCL form without building a larger configuration system.

プロジェクトの歴史

Kevin van Zonneveld published json2hcl in September 2016 around a workflow for an internal tool named Frey. The README says the authors wanted to store infrastructure recipes as HCL after converting from machine-readable JSON, YAML, or TOML, and it explicitly notes that the tool used existing HashiCorp libraries rather than inventing a parser.

The project soon added reverse conversion with the `-reverse` flag, exposing hcl2json behavior through the same executable. By June 25, 2025, the GitHub repository was archived; its README states that the original author no longer used it, while leaving the code available for forks.

採用の歴史

Adoption appears to have been modest but durable in package-manager terms: the tool was packaged by Homebrew and Nix, and the repository accumulated hundreds of stars and forks before archival. Its presence in Homebrew reflects the small-CLI pattern where a narrow converter remains useful even after upstream development slows.

使われ方

The canonical usage is Unix-pipeline oriented: feed JSON on standard input and receive HCL on standard output, or pass `-reverse` to convert HCL back to JSON. The README examples focus on Terraform-like `.tf.json` input and redirection to `.tf` files.

パッケージ好きにとっての重要性

json2hcl is interesting because it captures a short period when HCL was becoming a preferred human-edited configuration language around HashiCorp tools, while JSON remained the common interchange format. For package collectors, it is a tiny bridge utility whose package-manager value is convenience rather than ecosystem size.

タイムライン

  • 2016-09-05: The GitHub repository was created.
  • 2016-09-05: v0.0.4 changelog entry covered error handling and release cross-compilation.
  • 2016-09-06: v0.0.5 added reverse HCL-to-JSON conversion through `-reverse`.
  • 2024-09-05: GitHub listed v0.2.0 among repository releases.
  • 2025-06-25: The repository was archived by its owner.

Related projects

  • json2hcl is directly tied to HashiCorp HCL and Terraform-style JSON configuration. It also sits near other one-purpose data converters such as hcl2json, JSON-to-YAML tools, and Unix filters used in infrastructure repositories.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 8 個のプラットフォームターゲットで利用できます。
  • ビルドメタデータには 1 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
json2hclcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版0.2.0
マネージャ更新日2026-05-19
ローカルデータOK
上流最新
検出された最新v0.2.0

https://github.com/kvz/json2hcl

  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:json2hcl
バージョン0.2.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/json2hcl
ホームページhttps://github.com/kvz/json2hcl
リポジトリhttps://github.com/kvz/json2hcl
上流ドキュメントhttps://github.com/kvz/json2hcl#readme
ライセンスMIT
ソースアーカイブhttps://github.com/kvz/json2hcl/archive/refs/tags/v0.2.0.tar.gz
最終更新2026-05-19T07:48:50-04:00
Pulseupdated
ビルド依存関係go
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namejson2hcl
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedyes
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Nix95%

json2hcl

nix profile install nixpkgs#json2hcl
  • normalized package name match
  • 一致条件: Json2hcl
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/js/json2hcl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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