Heckle reads an existing GitHub, GitLab, Gitea or Forgejo namespace and generates maintainable Infrastructure as Code.
Install Heckle, provide the forge token through your environment, and generate HCL into a new directory for use with OpenTofu or Terraform.
Full installation and credential setup →$ pipx install heckle $ export GITHUB_TOKEN='...' $ heckle generate github --org myorg # Terraform and Forgejo instead of Github and the default OpenTofu: $ export FORGEJO_API_TOKEN='...' $ heckle generate forgejo --me --url https://code.example.org --tf terraform
Heckle gets an existing forge under Infrastructure as Code. Once adoption is complete, you should maintain the generated HCL directly.
Read the namespace, repositories, memberships and supported forge settings.
Compile discovered state into normal .tf files and local modules.
Rehearse imports, classify known provider behaviour and stop on unrecognised changes.
Edit and run the resulting Terraform/OpenTofu project normally. Heckle is no longer required.
| Command | Purpose |
|---|---|
| generate | Discover a forge and produce a standalone Terraform/OpenTofu project. |
| inventory | Save discovery results and coverage without generating HCL. |
| coverage | Read a saved report without network access. |
| validate | Run init with no backend and validate the generated project. |
| compatibility | Show the audited provider pins and known upstream behaviours for this Heckle release. |