Installation Guide
Get StructKit installed and ready to use.
Using pip
Install StructKit with pip:
pip install structkit💡 Enable Auto-Completion
After installation, enable command-line auto-completion. Bash, Zsh, and Tcsh scripts are generated by shtab; Fish scripts are generated by StructKit itself. See the Command-Line Completion guide for per-shell instructions.
Using Homebrew
StructKit is published through its own tap, httpdss/homebrew-structkit (it is not a core Homebrew formula, so the tap is required):
brew tap httpdss/structkit
brew install structkitstructkit --helpUsing Docker
Run StructKit without installing it, using the official image ghcr.io/httpdss/structkit:main:
docker run --rm -v "$(pwd):/workdir" ghcr.io/httpdss/structkit:main \
generate --vars module_name=my-terraform-module terraform/modules/generic ./my-terraform-moduleRefer to the Quick Start guide for more options.
Linux packages (.deb / .rpm)
.deb and .rpm packages (amd64 and arm64) are built by the build-linux-packages workflow on each release. Download them from that workflow run's artifacts on GitHub Actions (kept for 90 days), or build them locally with packaging/README.md.
Artifacts: structkit-VERSION-amd64-deb, structkit-VERSION-arm64-deb, structkit-VERSION-amd64-rpm, structkit-VERSION-arm64-rpm.
Debian / Ubuntu
sudo dpkg -i structkit_VERSION_amd64.deb
# if needed: sudo apt-get install -fFedora / RHEL
sudo dnf install ./structkit-VERSION-1.x86_64.rpm
# or: sudo rpm -ivh structkit-VERSION-1.x86_64.rpmBoth packages ship a vendored virtual environment at /usr/lib/structkit/venv/ and a shim at /usr/bin/structkit, so no system Python packages are touched.
structkit --helpEditor & CI integrations
- Pre-commit hooks — validate and lint StructKit YAML on every commit.
- VS Code / Cursor extension — schema validation and autocomplete for
*.structkit.yaml. - GitHub Actions — install with
httpdss/structkit-setup@v0, then runvalidateor drift detection withhttpdss/structkit-action@v0.
From Source
Clone the repository and install locally. See the Development page for details.
git clone https://github.com/httpdss/structkit.git
cd structkit
pip install -e .Related
- Quick Start — Scaffold your first project from a YAML config in under 2 minutes.
- Usage — Core StructKit commands: generate, dry-run, validate, list, and chain templates.
- Shell Completion — Enable tab auto-completion for StructKit in bash, zsh, and fish.
- Pre-commit Hooks — Validate and lint StructKit YAML on every commit with structkit-validate and structkit-lint.
- VS Code / Cursor Extension — Schema validation, custom schema generation, and autocomplete for *.structkit.yaml files.