Automic VaultAutomic Vault

brew

Install hcledit with Homebrew, Nix

Command-line editor for HCL. Version 0.2.18 via Homebrew; verified 2026-05-05.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install hcledit

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#hcledit

nixpkgs package indexes · pkgs/by-name/hc/hcledit/package.nix · source: api.github.com

overview

Package summary

Command-line editor for HCL

Commands and aliases

  • hcledit

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2020: GitHub repository created.
  • 2020: alpha and v0.0.1 releases published.
  • 2020: v0.1.0 release published after the early alpha series.
  • 2021: v0.2.0 release published.

Related projects

  • HashiCorp HCL supplies the syntax and Go libraries behind HCL2-aware tooling.
  • Terraform is the origin use case named by the README.
  • hcl2json solves a neighboring conversion problem rather than in-place editing.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
hcleditcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version0.2.18
manager updated2026-05-05
local dataok
upstreamcurrent
latest detectedv0.2.18

https://github.com/minamijoyo/hcledit

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:hcledit
Version0.2.18
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/hcledit
Homepagehttps://github.com/minamijoyo/hcledit
Repositoryhttps://github.com/minamijoyo/hcledit
Upstream docshttps://github.com/minamijoyo/hcledit#readme
LicenseMIT
Source archivehttps://github.com/minamijoyo/hcledit/archive/refs/tags/v0.2.18.tar.gz
Last updated2026-05-05T18:52:16Z
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

hcledit

nix profile install nixpkgs#hcledit
  • normalized package name match
  • Matched by: Hcledit
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/hc/hcledit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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