🍺 BREW Explorer

← all formulae

hcledit

brew install hcledit v0.2.18 MIT

Command-line editor for HCL

73
30-day installs · #3942
350
90-day · #3315
911
365-day · #3991
550
★ GitHub stars · updated 3mo ago

Build dependencies

go

GitHub topics

cli go hcl

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "go"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Command-line editor for HCL",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:38:34+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "hcledit",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-05-05T15:32:45Z",
  "github_readme_excerpt": "# hcledit\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n[![GitHub release](https://img.shields.io/github/release/minamijoyo/hcledit.svg)](https://github.com/minamijoyo/hcledit/releases/latest)\n[![GoDoc](https://godoc.org/github.com/minamijoyo/hcledit/hcledit?status.svg)](https://godoc.org/github.com/minamijoyo/hcledit)\n\n## Features\n\n- CLI-friendly: Read HCL from stdin, edit and write to stdout, easily pipe and combine other commands\n- Token-based edit: You can update lots of existing HCL files with automation scripts without losing comments.\n- Schemaless: No dependency on specific HCL application binary or schema\n- Support HCL2 (not HCL1)\n- Available operations:\n  - attribute append / get / mv / replace / rm / set\n  - block append / get / list / mv / new / rm\n  - body get\n  - fmt\n\nThe hcledit focuses on editing HCL with command line, doesn\u0027t aim for generic query tools. It was originally born for refactoring Terraform configurations, but it\u0027s not limited to specific applications.\nThe HCL specification is somewhat generic, so usability takes precedence over strictness if there is room for interpreting meanings in the schemaless approach.\n\n## Install\n\n### Homebrew\n\nIf you are macOS user:\n\n```\n$ brew install minamijoyo/hcledit/hcledit\n```\n\n### Download\n\nDownload the latest compiled binaries and put it anywhere in your executable path.\n\nhttps://github.com/minamijoyo/hcledit/releases\n\n### Source\n\nIf you have Go 1.26+ development environment:\n\n```\n$ git clone https://github.com/minamijoyo/hcledit\n$ cd hcledit/\n$ make install\n$ hcledit version\n```\n\n## Usage\n\n```\n$ hcledit --help\nA command line editor for HCL\n\nUsage:\n  hcledit [command]\n\nAvailable Commands:\n  attribute   Edit attribute\n  block       Edit block\n  body        Edit body\n  fmt         Format file\n  help        Help about any command\n  version     Print version\n\nFlags:\n  -f, --file string   A path of input file (default \"-\")\n  -h, --help          help for hcledit\n  -u, --update   ",
  "github_repo": "minamijoyo/hcledit",
  "github_stars": 550,
  "github_topics": [
    "cli",
    "go",
    "hcl"
  ],
  "homepage": "https://github.com/minamijoyo/hcledit",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 73,
  "installs_365d": 911,
  "installs_90d": 350,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "hcledit",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 3942,
  "rank_365d": 3991,
  "rank_90d": 3315,
  "raw_hash": "f1c87a2dbad71f8a",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/h/hcledit.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "0.2.18",
  "versioned_formulae": [],
  "why_use_this": null
}