macOS
brew install hcleditlocal Homebrew formula metadata
brew
Command-line editor for HCL. Version 0.2.18 via Homebrew; verified 2026-05-05.
install
brew install hcleditlocal Homebrew formula metadata
nix profile install nixpkgs#hcleditnixpkgs package indexes · pkgs/by-name/hc/hcledit/package.nix · source: api.github.com
overview
Command-line editor for HCL
history
hcledit is a command-line editor for HCL2 files. It is aimed at automation-friendly edits of attributes, blocks, bodies, and formatting while preserving the token stream well enough to avoid discarding comments.
The repository was created on January 1, 2020, after HCL2 had become the dominant syntax for Terraform-era infrastructure configuration. The README describes the tool as originally born for refactoring Terraform configurations, but deliberately schemaless so it is not bound to Terraform itself.
The tool found a narrow audience among infrastructure engineers who needed repeatable HCL rewrites in shell scripts and CI tasks. Its distribution history is similarly compact: GitHub releases, a Homebrew tap/formula path, source builds with Go, and Nix packaging recorded in the batch input.
hcledit reads from stdin or a file, writes to stdout or updates in place, and exposes subcommands for attribute get/set/move/remove, block listing and mutation, whole-body extraction, and formatting. Its value is token-based mutation rather than evaluation of a provider or Terraform module.
For package-manager users, hcledit is the HCL counterpart to focused text-structure tools such as jq or yq, but constrained to HCL syntax and Terraform-style refactoring chores. It is useful precisely because it avoids a dependency on a specific application's schema.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
hcledit | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/minamijoyo/hcledit
install metadata
| Package key | brew:hcledit |
|---|---|
| Version | 0.2.18 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/hcledit |
| Homepage | https://github.com/minamijoyo/hcledit |
| Repository | https://github.com/minamijoyo/hcledit |
| Upstream docs | https://github.com/minamijoyo/hcledit#readme |
| License | MIT |
| Source archive | https://github.com/minamijoyo/hcledit/archive/refs/tags/v0.2.18.tar.gz |
| Last updated | 2026-05-05T18:52:16Z |
| Pulse | updated |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | hcledit |
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
hcledit
nix profile install nixpkgs#hcleditsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.