Install Netherframe
This guide shows how to install netherframe.cli, generate or install typed provider
bindings, add optional backend or lint packages, or work from a source checkout.
Requirement: Python 3.15 or later. Keep netherframe.cli, netherframe.core, and
any generated provider bindings installed in the same Python environment.
All 20 Netherframe workspace packages are published on PyPI (pre-1.0:
netherframe.cli 0.5.0,netherframe.core 0.13.0,netherframe.sdk 0.3.0,netherframe.testing 0.3.0). See the package catalogue and release notes.
Install the CLI in a project
Initialize a new project (or use an existing pyproject.toml) and add netherframe.cli:
uv init --python 3.15
uv add netherframe.cli
Activate the environment once per shell (or prefix commands with uv run):
source .venv/bin/activate
nf --version
uv init --python 3.15
uv add netherframe.cli
.venv\Scripts\Activate.ps1
nf --version
Inside an activated Python 3.15+ virtual environment:
python -m pip install netherframe.cli
nf --version
netherframe.cli brings the nf command, netherframe.sdk, netherframe.core,
netherframe.generation, and the Terraform function catalogue. For hybrid execution, you
do not need Terraform or OpenTofu installed.
Inspect the CLI without installing (uvx)
uvx --python 3.15 --from netherframe.cli nf --help
Because nf plan and nf apply import your project's Python modules and provider bindings,
install netherframe.cli inside the project's virtual environment for day-to-day work so
everything shares one lockfile.
Library-only installation
If you embed Netherframe without the CLI:
uv add netherframe.core # authoring & execution engine
uv add netherframe.sdk # programmatic Python API for nf commands
Add typed provider bindings
Install a published provider package, or generate bindings locally for any Terraform registry/mirror provider:
# Example: generate and install local Random bindings
nf generate providers hashicorp/random --version 3.9.1 --yes
uv add --editable ./providers/hashicorp/random
# Or install a published AWS binding package when available on your index
uv add netherframe.providers.hashicorp.aws
- Distribution names are dotted (
netherframe.providers.hashicorp.aws), while Python code importsnf.providers.hashicorp.aws(nf.*is a permanent alias fornetherframe.*). - Generated AWS bindings automatically bring
netherframe.ext.aws(state normalization and qualified graph-state contracts). If you use rawResource(nf_type="aws_...")without generated AWS bindings, installnetherframe.core[aws]. - Provider binaries are downloaded and verified automatically on first use into
~/.nf/providers(configurable via--provider-cache-dirand mirrors). See Install providers from registries and mirrors.
Add optional packages
Install only the backends, test harnesses, or policy packs your project uses, into the same environment:
# Remote state backends
uv add netherframe.backends.aws # S3 state backend
uv add netherframe.backends.postgresql # PostgreSQL document + graph state backend
uv add netherframe.backends.gcp # GCS state backend
uv add netherframe.backends.azure # Azure Blob state backend
# Offline AWS policy linting (explicitly invoked via `nf lint` or `app.lint()`)
uv add netherframe.lint.hashicorp.aws
# Testing harnesses, in-memory graph backend, and FakeCloud pytest plugin
uv add --dev netherframe.testing
See the package catalogue for the complete list of distributions including discovery packages.
Work from a source checkout
From the root of the repository checkout:
uv sync --locked --inexact
uv run poe proto-generate
uv run poe ci-prepare # generates and installs pinned AWS and Random bindings
source .venv/bin/activate
nf --version
Verify your environment
| Symptom | Cause and fix |
|---|---|
nf: command not found |
Activate .venv (source .venv/bin/activate) or run uv run nf. |
ModuleNotFoundError: nf.providers... |
Install the provider binding package into the same environment as nf, or generate it with nf generate providers. |
| Provider binary fails to start | Check the host OS/architecture and network/mirror access; binaries are separate from Python wheels. |
terraform binary not found |
You targeted an explicit synthesized stack directory (--stack .nf.out/...). Use --app <selector> for hybrid execution without Terraform. |
Next steps
- New to Netherframe? Follow Tutorial 1: Run your first hybrid app.
- Behind a corporate proxy or Artifactory? Configure provider mirrors.
- Ready to structure your project? See Project structure and Configuration reference.