How vmvarela/gh-tofu works
gh-tofu distributes a pinned OpenTofu build with an ORAS backend for storing state, locks, and optional retained history in an OCI registry. The main workflow is gh tofu init: an interactive assistant can write backend configuration, after which OpenTofu performs its normal initialization and migration; users then run the usual plan/apply workflow. README statements support these relationships, but the tree exposes patch files rather than the full CLI or backend implementation, so those components are represented only where a path is supported.
Main entry points: backend.patch ORAS backend · init-assistant.patch Init assistant · history.patch State history · oras-purge.patch Tag deletion
Components 10
CLI setup
- gh-tofu CLI
- Init assistant
patches/init-assistant.patch - Backend config
patches/init-assistant.patch
ORAS backend
- OpenTofu runtime
- ORAS backend
patches/backend.patch
State lifecycle
- OCI registry
- State history
patches/history.patch - Tag deletion
patches/oras-purge.patch - Workspace support
patches/workspace-exists.patch
Other components
- CLI user
Connections 11
- CLI user → gh-tofu CLI: runs commands
README.md - gh-tofu CLI → Init assistant: offers setup
README.md - Init assistant → Backend config: writes config
README.md - gh-tofu CLI → OpenTofu runtime: runs init
README.md - OpenTofu runtime → ORAS backend: uses backend
README.md - ORAS backend → OCI registry: stores state
README.md - ORAS backend → OCI registry: stores locks
README.md - ORAS backend → State history: retains versions
README.md - ORAS backend → Tag deletion: deletes tags
README.md - OpenTofu runtime → Workspace support: supports workspaces
- CLI user → gh-tofu CLI: runs plan/apply
README.md