{"repo":"minamijoyo/hcledit","free":true,"listed":false,"github":"https://github.com/minamijoyo/hcledit","clone":"git clone https://github.com/minamijoyo/hcledit.git","description":"A command line editor for HCL","language":"Go","stars":552,"topics":["hcl","cli","go"],"license":"MIT","category":"cli-tools","readme_excerpt":"hcledit Features - CLI-friendly: Read HCL from stdin, edit and write to stdout, easily pipe and combine other commands - Token-based edit: You can update lots of existing HCL files with automation scripts without losing comments. - Schemaless: No dependency on specific HCL application binary or schema - Support HCL2 (not HCL1) - Available operations: - attribute append / get / mv / replace / rm / set - block append / get / list / mv / new / rm - body get - fmt The hcledit focuses on editing HCL with command line, doesn't aim for generic query tools. It was originally born for refactoring Terraform configurations, but it's not limited to specific applications. The HCL specification is somewhat generic, so usability takes precedence over strictness if there is room for interpreting meanings in the schemaless approach. Install Homebrew If you are macOS user: Download Download the latest compiled binaries and put it anywhere in your executable path. https://github.com/minamijoyo/hcledit/releases Source If you have Go 1.26+ development environment: Usage attribute Given the following file: block Given the following file: body Given the following file: fmt Given the following file: Address escaping Address escaping is supported for labels that contain . . Given the following file: License MIT","default_branch":null,"files":null,"tree":[],"storefront":"/r/minamijoyo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/minamijoyo/hcledit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}